Registry / web-framework / reshow-runtime

reshow-runtime

JSON →
library0.17.15jsnpmunverified

Babel runtime alternative designed to replace @babel/runtime in projects using the Reshow ecosystem. Current stable version: 0.17.15. Release cadence: irregular; major breaking changes in v0.16.0 (switched to createReducer for all stores) and v0.13-beta (moved urlDispatch/UrlReturn to reshow-url). Key differentiators: lighter footprint, supports optional chaining (?.) and nullish coalescing (??), and provides helper functions for React/Redux-like patterns. Not recommended for projects outside the Reshow framework.

npm install reshow-runtime
INSTALL
IMPORT
SIG · RESHOW-RUNTIME
R
reshow-runtime
web-frameworkjavascriptv0.17.15
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

createReducer
import { createReducer } from 'reshow-runtime';
const { createReducer } = require('reshow-runtime');
Package is ESM-only since v0.16.0. Use import syntax in Node.js with { "type": "module" } or bundler.
toMap
import { toMap } from 'reshow-runtime';
import toMap from 'reshow-runtime';
toMap is a named export, not default. Converts all first-level immutable object keys to JS.
connect-hook
import { connectHook } from 'reshow-runtime';
import connectHook from 'reshow-runtime';
connectHook is a named export for connecting React hooks to stores. Available since v0.13-beta.

Demonstrates use of createReducer and toMap from reshow-runtime with a simple counter reducer.

import { createReducer, toMap } from 'reshow-runtime'; const initialState = { count: 0 }; const reducer = createReducer({ increment: (state) => ({ count: state.count + 1 }), decrement: (state) => ({ count: state.count - 1 }), }, initialState); const state = { count: 0 }; const newState = reducer(state, { type: 'increment' }); console.log(newState); // { count: 1 } const immutableObject = { a: { b: 1 } }; const jsObject = toMap(immutableObject); console.log(jsObject.a.b); // 1 (JS object instead of immutable Map)
Debug
Known issues
breakingIn v0.16.0, all stores must now use createReducer. Old store patterns (e.g., createStore with handlers) are removed.
fix
Migrate store definitions to use createReducer with handler maps.
affects: >=0.16.0
breakingIn v0.13-beta, urlDispatch and UrlReturn moved from reshow-runtime to reshow-url.
fix
Install reshow-url and import urlDispatch/UrlReturn from there instead.
affects: >=0.13.0 <0.16.0
deprecatedCommonJS require() is no longer supported; package is ESM-only from v0.16.0.
fix
Use import syntax. If using Node.js, ensure "type": "module" or use .mjs extension.
affects: >=0.16.0
Errors
Common errors & fixes
Error: Cannot find module 'reshow-runtime'
Package not installed or not in node_modules.
fix
Run npm install reshow-runtime or yarn add reshow-runtime.
TypeError: createReducer is not a function
Importing createReducer incorrectly, likely as default export.
fix
Use import { createReducer } from 'reshow-runtime';
SyntaxError: Unexpected identifier
Using CommonJS require() in ESM-only version (v0.16.0+).
fix
Switch to import { ... } from 'reshow-runtime';
Upgrade
Version history
0.17.15latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
reshow-runtime — npm install reshow-runtime · libregistry