Repository navigation
fix: publish registry-compatible SDK dependencies - #811
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The published v2 prereleases cannot be installed outside this monorepo: Node ships
@reflag/flag-evaluation: workspace:*, React/Vue ship@reflag/browser-sdk: workspace:^, and React Native ships@reflag/react-sdk: workspace:^.Changesets publishes package directories through npm, which does not perform Yarn's workspace-range rewriting. Successful workspace builds and
yarn packchecks therefore missed the broken published manifests.Changes
2.0.0and the existing v1 OpenFeature dependencies.workspace:ranges in dependency, optional, peer and development dependency sections; private examples can keep them.2.0.0-next.2for Node, React, Vue and React Native; Browser's existing prerelease needs no packaging change.Verification
yarn install --immutableyarn test:release: 17 passing release safeguardsyarn lerna run test:ci --stream --concurrency 1: 1,015 passing tests plus 48 Browser E2E cases across Chromium, Firefox and WebKityarn docs,yarn fmt,yarn lint:fix, and whitespace checks. Lint has no errors and retains the existing generated Next.js triple-slash-reference warning.pacotedirectory packer, without Yarn manifest rewriting. Installed the candidate artifacts through a temporary loopback registry into a fresh external Yarn consumer, using registry dependencies without workspace links or resolutions. Strict direct-value TypeScript checks pass for all five SDKs; Node/evaluator/Browser/React/Vue runtime imports pass. These are locally packed current-version candidates, not newly published releases.Local build limitation: the root
yarn buildstops at Management SDK generation because Java is not installed. All package builds listed above, the Management TypeScript build, docs and the full test target pass; the full generator-backed build remains for CI.Scope and rollout
No package publication, npm-tag changes, deployment, live flag/configuration changes or application migration is included. A reviewed version/release PR and corrected prerelease publication are still required; already published versions cannot be overwritten. The separate, uncommitted CLI v2 generator work is intentionally not bundled into this packaging fix and remains an application-migration prerequisite.