-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[wb1812.1.deprecate] Mark ID stuff as deprecated #2388
Conversation
🦋 Changeset detectedLatest commit: d448bd5 The changes in this PR will be included in the next version bump. This PR includes changesets to release 27 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
GeraldRequired Reviewers
Don't want to be involved in this pull request? Comment |
npm Snapshot: Published🎉 Good news!! We've packaged up the latest commit from this PR (4d1418d) and published all packages with changesets to npm. You can install the packages in webapp by running: ./services/static/dev/tools/deploy_wonder_blocks.js --tag="PR2388" Packages can also be installed manually by running: yarn add @khanacademy/wonder-blocks-<package-name>@PR2388 |
Size Change: 0 B Total Size: 97.3 kB ℹ️ View Unchanged
|
A new build was pushed to Chromatic! 🚀https://5e1bf4b385e3fb0020b7073c-ypvzrdjrrl.chromatic.com/ Chromatic results:
|
The parent pull-request (#2387) has been merged into |
8560759
to
d0bad9d
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2388 +/- ##
============================
============================
Continue to review full report in Codecov by Sentry.
|
Summary:
This is the first step in removing our custom ID utilities in favour of using the
useId
hook from React's API. This PR is not going to be merged/released on its own. Another PR will be coming to add anId
component that wrapsuseId
so that there's an easier path for consumers to migrate.The difficult bit is moving from the provider architecture that gives an ID factory, to the
useId
/Id
approach. However, long term, it should simplify things greatly.Upgrade note:
Upgrading to this will cause deprecation notices in consuming code. If a lint rule is set up to block deprecated usage (which it probably is), then those errors will have to be suppressed. A find/replace may help in some circumstances, but this may also be a manual process. The alternative, of course, is to actually modify stuff to the new approach.
Issue: WB-1812
Test plan:
yarn test
yarn lint