You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tracked from review of #2526 (Rename OrderBook to Raindex).
After #2526 merges, the `@rainlanguage/orderbook` package is gone from the repo and will stop receiving updates. Pinned consumers keep working, but anyone running `npm install` against an unpinned dep or auto-updates won't discover the rename.
Goal
Publish one final `@rainlanguage/orderbook@0.0.1-alpha.239` (or whatever's next) that throws at import time with the new package name in the error message. Forces consumers to migrate explicitly; no silent broken state.
```js
throw new Error(
'@rainlanguage/orderbook has been renamed to @rainlanguage/raindex. ' +
'Update your package.json and imports: ' +
'#2526'
);
```
The TypeScript declarations (`*.d.ts`) should be replaced with an empty module so type-check failures are immediate at the import site too.
Order of operations
Publish the stub from `main` (where `packages/orderbook/` still exists). Bump version, publish, confirm on npm.
Then merge Rename OrderBook to Raindex #2526. The rename PR removes the package directory; the npm record stays with the stub as the last published version.
If #2526 lands first the stub publish has to be reconstructed from history — doable but more friction.
Out of scope
Any version range or compatibility shim that lets old consumers keep importing without changes. We want a hard break with a clear message.
Tracked from review of #2526 (Rename OrderBook to Raindex).
After #2526 merges, the `@rainlanguage/orderbook` package is gone from the repo and will stop receiving updates. Pinned consumers keep working, but anyone running `npm install` against an unpinned dep or auto-updates won't discover the rename.
Goal
Publish one final `@rainlanguage/orderbook@0.0.1-alpha.239` (or whatever's next) that throws at import time with the new package name in the error message. Forces consumers to migrate explicitly; no silent broken state.
Stub content
`packages/orderbook/dist/cjs/index.js` (and esm) replaced with:
```js
throw new Error(
'@rainlanguage/orderbook has been renamed to @rainlanguage/raindex. ' +
'Update your package.json and imports: ' +
'#2526'
);
```
The TypeScript declarations (`*.d.ts`) should be replaced with an empty module so type-check failures are immediate at the import site too.
Order of operations
If #2526 lands first the stub publish has to be reconstructed from history — doable but more friction.
Out of scope
Any version range or compatibility shim that lets old consumers keep importing without changes. We want a hard break with a clear message.
🤖 Generated with Claude Code