Skip to content
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

Migrate off deprecated ID APIs #2014

Merged
merged 3 commits into from
Dec 16, 2024
Merged

Migrate off deprecated ID APIs #2014

merged 3 commits into from
Dec 16, 2024

Conversation

somewhatabstract
Copy link
Member

Summary:

This migrates Perseus off the deprecated ID APIs and onto the useId-based approach.

The lint rules remain in place until Wonder Blocks is released without the old APIs and Perseus has been updated to that version of Wonder Blocks. This won't happen until webapp has been migrated off the old APIs.

Issue: WB-1812

Test plan:

yarn typecheck
yarn lint
yarn test

@somewhatabstract somewhatabstract self-assigned this Dec 16, 2024
@somewhatabstract somewhatabstract requested a review from a team December 16, 2024 17:25
Copy link
Contributor

github-actions bot commented Dec 16, 2024

npm Snapshot: Published

Good news!! We've packaged up the latest commit from this PR (684fad6) and published it to npm. You
can install it using the tag PR2014.

Example:

yarn add @khanacademy/perseus@PR2014

If you are working in Khan Academy's webapp, you can run:

./dev/tools/bump_perseus_version.sh -t PR2014

Copy link
Contributor

github-actions bot commented Dec 16, 2024

Size Change: -515 B (-0.04%)

Total Size: 1.27 MB

Filename Size Change
packages/perseus-editor/dist/es/index.js 688 kB -248 B (-0.04%)
packages/perseus/dist/es/index.js 416 kB -267 B (-0.06%)
ℹ️ View Unchanged
Filename Size
packages/kas/dist/es/index.js 39 kB
packages/keypad-context/dist/es/index.js 760 B
packages/kmath/dist/es/index.js 4.27 kB
packages/math-input/dist/es/index.js 78 kB
packages/math-input/dist/es/strings.js 1.79 kB
packages/perseus-core/dist/es/index.js 1.48 kB
packages/perseus-linter/dist/es/index.js 22.2 kB
packages/perseus/dist/es/strings.js 4.12 kB
packages/pure-markdown/dist/es/index.js 3.67 kB
packages/simple-markdown/dist/es/index.js 12.5 kB

compressed-size-action

Copy link
Contributor

@mark-fitzgerald mark-fitzgerald left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for doing this conversion!

Copy link
Member

@catandthemachines catandthemachines left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! Thank you for this migration. ❤️

@somewhatabstract somewhatabstract merged commit 763d2d0 into main Dec 16, 2024
8 checks passed
@somewhatabstract somewhatabstract deleted the wb1812.2.migrating branch December 16, 2024 19:07
somewhatabstract added a commit that referenced this pull request Dec 16, 2024
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## @khanacademy/[email protected]

### Patch Changes

- [#2014](#2014)
[`763d2d0f1`](763d2d0)
Thanks [@somewhatabstract](https://github.com/somewhatabstract)! -
Migrate off deprecated ID generation APIs


- [#2009](#2009)
[`b09d19b7b`](b09d19b)
Thanks [@catandthemachines](https://github.com/catandthemachines)! -
Fixing bug in creating concave shapes in unlimited polygons.


- [#1978](#1978)
[`81632c326`](81632c3)
Thanks [@nishasy](https://github.com/nishasy)! - [Polygon] Remove
duplicate points when determining if a polygon can be closed


- [#1999](#1999)
[`278527b08`](278527b)
Thanks [@catandthemachines](https://github.com/catandthemachines)! -
Fixing open polygon scoring issues within exercises and editors.

## @khanacademy/[email protected]

### Patch Changes

- [#2014](#2014)
[`763d2d0f1`](763d2d0)
Thanks [@somewhatabstract](https://github.com/somewhatabstract)! -
Migrate off deprecated ID generation APIs


- [#1978](#1978)
[`81632c326`](81632c3)
Thanks [@nishasy](https://github.com/nishasy)! - [Polygon] Remove
duplicate points when determining if a polygon can be closed


- [#1999](#1999)
[`278527b08`](278527b)
Thanks [@catandthemachines](https://github.com/catandthemachines)! -
Fixing open polygon scoring issues within exercises and editors.

- Updated dependencies
\[[`763d2d0f1`](763d2d0),
[`b09d19b7b`](b09d19b),
[`81632c326`](81632c3),
[`278527b08`](278527b)]:
    -   @khanacademy/[email protected]

## @khanacademy/[email protected]

### Patch Changes

- [#2014](#2014)
[`763d2d0f1`](763d2d0)
Thanks [@somewhatabstract](https://github.com/somewhatabstract)! -
Migrate off deprecated ID generation APIs
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.

3 participants