chore: no-issue: replace deprecated react-beautiful-dnd and shortid#10077
Draft
passcod wants to merge 2 commits into
Draft
chore: no-issue: replace deprecated react-beautiful-dnd and shortid#10077passcod wants to merge 2 commits into
passcod wants to merge 2 commits into
Conversation
|
🦸 Review Hero Summary No issues found. Looks good! |
ff698f3 to
e87c273
Compare
fb6d91d to
6870031
Compare
e87c273 to
d09f203
Compare
6870031 to
0397729
Compare
d09f203 to
41fe9bb
Compare
0397729 to
7c462dd
Compare
41fe9bb to
49cfd9e
Compare
7c462dd to
940babd
Compare
49cfd9e to
d743013
Compare
940babd to
b7b9f70
Compare
d743013 to
3725671
Compare
11f73ae to
e93abb9
Compare
b7734d6 to
8967f3b
Compare
e93abb9 to
b63ea5f
Compare
8967f3b to
ed40f75
Compare
b63ea5f to
4b2a49d
Compare
ed40f75 to
b63e3b1
Compare
57872b2 to
a0a9338
Compare
b63e3b1 to
9e4bcc2
Compare
a0a9338 to
81ff903
Compare
9e4bcc2 to
47898f7
Compare
81ff903 to
507bf14
Compare
21bf2af to
def43fd
Compare
507bf14 to
b87bafb
Compare
def43fd to
ea1eb5b
Compare
15c8c2f to
3014246
Compare
ea1eb5b to
2a7f3d1
Compare
3014246 to
896b1ac
Compare
811c2d3 to
593b819
Compare
896b1ac to
37825b6
Compare
593b819 to
e0e8ee7
Compare
822524c to
e5bcf2d
Compare
e0e8ee7 to
a5d13aa
Compare
e5bcf2d to
fe43a7b
Compare
a5d13aa to
d4596e1
Compare
Run servers/packages build-less under the tsx loader: - lodash -> lodash-es, case -> es-toolkit - scoped __cjs_ codemod for CJS-only deps (date-fns-tz, express, bcrypt, umzug, inflection) - exports point at src (extension-less); type:module; build scripts dropped Fixes surfaced by native ESM strictness (latent under CJS): - transformAnswers: formatShort imported from wrong subpath (dateFormatters, not dateTime) - hl7fhir/search: jsonFromBase64 never existed; use base64ToJson (was silently undefined) - __dirname -> import.meta.dirname in 6 node-run files Build-less tests (run jest from source, no build step): - common.jest.config: transform .tsx? with TS parser, whitelist ESM deps (lodash-es, es-toolkit, @tamanu) for transform, map .js->.ts resolution - server tests run from __tests__ source (not __disttests__); drop test-build - codemod rewrites test imports ../dist/* -> ../app/* (incl jest.mock family) - drop globalTeardown magic (runs outside the jest sandbox, where tsx's CJS resolver can't resolve extension-less exports subpaths); close the db in an in-sandbox afterAll instead. tests need no loader. Verified: facility+central migrate (107 from .ts) and boot build-less; central reaches 'Server is running on port 3000'; shared jest suite (71) green; central integration tests (basics/translation/health) green from source, multi-file. Adds check-internal-named-imports.mjs and codemod-test-dist-to-app.mjs.
Both are deprecated and unmaintained: - react-beautiful-dnd -> @hello-pangea/dnd, a maintained drop-in fork with an identical API (one import site). - shortid -> nanoid for unique id generation (device/process/run ids). nanoid 5 is ESM-only, which is why this rides on the build-less branch. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
fe43a7b to
f9d1f0d
Compare
a782bf5 to
7c594fa
Compare
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.
Changes
🤖 Replace two deprecated, unmaintained packages:
react-beautiful-dnd→@hello-pangea/dnd(maintained drop-in fork, same API; pinned to ^16 for React-18 / react-redux-8 compatibility).shortid→nanoid(already a dependency) for unique id generation.shortidis only ever called with no input (random ids — device/process/run ids, form keys), never as a deterministic hash, so there are no id-format or matching concerns; existing stored ids stay valid. Rides on the build-less branch but the changes are independent.Stacked on build/loader-approach-wip.
Auto-Deploy
Options
Tests
Review Hero
.github/review-hero/suppressions.yml. Also runs automatically at the end of any auto-fix run.Remember to...