Skip to content

feat: target the published ReRune SDK 1.9.0 - #2

Merged
rubinbasha merged 1 commit into
mainfrom
feat/sdk-1.9.0
Nov 9, 2026
Merged

rubinbasha merged 1 commit into
mainfrom
feat/sdk-1.9.0

Conversation

@rubinbasha

Copy link
Copy Markdown
Contributor

Summary

Moves every example from the published @rerune/* 1.8.0 to 1.9.0, following the 1.9.0 migration notes.

 React and Expo
-  const client = await ReRune.setup(ota, { ..., cacheStore: createReRune...CacheStore({ prefix }) })
-  render after the startup promise ("Could not initialize translations.")
+  export const client = ReRune.setup(ota, nativeOptions)   // synchronous, module scope, default store
+  <ReRuneProvider client={client}> renders at once
 Angular
-  ReRune.provide(ota, nativeOptions)
+  ReRune.setup(ota, nativeOptions)                          // root providers; types no longer from @rerune/core
-  variant save and staging error alerts                    // unreachable in 1.9.0
 Expo
+  "@formatjs/intl-pluralrules": "6.3.16" + locale data     // Hermes plural rules, as the 1.9.0 notes ask
   first screen waits for the fonts and the remembered-language read
 angular-shared
-  "@rerune/core"                                            // internal since 1.9.0
 examples/shared/refresh.ts
+  no empty language list in partial feedback               // 1.9.0: removals and renames also set hasUpdates

The remembered language from #1 keeps its behavior. Returning visitors download translations once more, because the React and Expo apps now use the SDK's default cache keys; the READMEs say so.

Evidence

  • Before: with 1.9.0 installed, the old code failed pnpm typecheck (createReRuneBrowserCacheStore not exported, then on the client) and all four consumer tests (createReRuneBrowserCacheStore is not a function).
    After: pnpm check:dependencies (public SDK 1.9.0, registry integrity, aligned pins), pnpm lint, pnpm typecheck, pnpm test (13/13), CI=true pnpm build, pnpm test:browser (32 passed), pnpm test:parity (2 passed), pnpm export:android, and pnpm export:ios pass.
  • tests/browser/ota.spec.ts now expects 1.9.0 language loading: a check downloads only the shown language and its fallback, so the partial-update step shows French first. The new scripts/refresh.test.mjs case failed before the refresh.ts change ('Partially updated: ' with an empty list).
  • Browser runs used Chromium locally; this PR's CI runs the pinned revision. The Expo app was exported for Android and iOS, not run on a device.

Merge Danger

Door: two-way

Example code, tests, docs, and dependencies. Revert the commit to undo.

Blast Radius: examples

Visitors of earlier builds download translations once more and start at the Main edition, because the cache keys changed.

🤖 Generated with Claude Code

Every example moves from @rerune/* 1.8.0 to 1.9.0. React and Expo call the
synchronous ReRune.setup at module scope with the default cache store and
render ReRuneProvider at once; Angular registers ReRune.setup (renamed from
ReRune.provide) and imports no type from the internal @rerune/core, which
angular-shared no longer declares. The Angular apps drop the variant save and
staging error alerts that 1.9.0 made unreachable. Expo adds the
@formatjs/intl-pluralrules polyfill that the 1.9.0 notes ask for on Hermes,
and its first screen waits for the remembered-language read. Partial refresh
feedback shows no empty language list, the consumer and browser tests follow
1.9.0 behavior, and the READMEs and CONTRIBUTING describe the 1.9.0 API.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@rubinbasha
rubinbasha merged commit 5e9c114 into main Nov 9, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant