Repository navigation
feat!: move dcmjs 1.0 to master - #649
Closed
wayfarer3130 wants to merge 232 commits into
Closed
wayfarer3130 wants to merge 232 commits into
wayfarer3130 wants to merge 232 commits into
Conversation
Supersedes the 2026-08-07 plan. Describes the package split, the 1.0-beta release branch, per-package staging branches, the test-first sequence for core, routing of the 33 review findings, and lockstep publishing with semantic-release. Co-Authored-By: Claude Fable 5 <[email protected]>
Two trivial assertions on the committed sample-sr.dcm fixture. The purpose is to exercise the CI checks on the 1.0-beta branch and prove they run and report on pull requests. See RELEASE_PLAN.md section 6, step 0. Co-Authored-By: Claude Fable 5 <[email protected]>
…e 24 fs.readFileSync can return a small file inside a larger shared memory pool. Taking .buffer on that result hands the parser the whole pool, with the file sitting at a nonzero offset, and the DICM marker check then fails. Node 24 pools more aggressively, which is why anonymizer.test.js and data.test.js fail there today (7 tests) while Node 22 passes by luck of alignment. This adds readFileAsArrayBuffer() to testUtils and routes all 22 file-read sites through it. Typed-array .buffer uses are untouched. Same class of problem as issue #311. Co-Authored-By: Claude Fable 5 <[email protected]>
…ware helper The first pass converted single-line fs.readFileSync(...).buffer sites. CI on Node 24 then failed in a second population: reads assigned to a variable first, with .buffer taken on a later line. This converts those sites in data.test.js, data-options.test.js, lossless-read-write.test.js and normalizers.test.js, and drops the imports that became unused. Sites that already handle byteOffset correctly are untouched. Co-Authored-By: Claude Fable 5 <[email protected]>
ensureTestDataDir checked for the directory and then created it. Two parallel jest workers can both pass the check, and the slower mkdir then fails with EEXIST, which failed test_multiframe_1 on one CI leg. mkdirSync with recursive:true succeeds whether or not the directory exists, so the check goes away. Co-Authored-By: Claude Fable 5 <[email protected]>
Three process documents the release plan calls for. The style guide defines the audience (healthcare-literate, no assumed programming or imaging jargon) and bans machine-flavored prose. The PR template requires plain-language descriptions, runnable examples, test evidence, and fixture citations. DATACITATION.md records the origin and license of every committed DICOM test file, with the legacy files honestly marked as provenance-pending. Co-Authored-By: Claude Fable 5 <[email protected]>
semantic-release computes one version from conventional commits; stamp-workspace-versions.mjs writes it into every publishable workspace package.json, and pnpm -r publish releases them together under the npm beta tag. The publish workflow now also fires on 1.0-beta and release/0.5x, and passes NODE_AUTH_TOKEN for pnpm publish. Nothing publishes until the repository owner adds 1.0-beta to the publish environment allowlist. See RELEASE_PLAN.md sections 9 and 12. Co-Authored-By: Claude Fable 5 <[email protected]>
Adapts the rules from Cursor's unslop skill: the fuller AI-vocabulary list, filler phrases, fancy synonyms for is, vague attributions, synonym cycling, false ranges, punctuation and formatting rules (em dashes, colons, bold, sentence-case headings, straight quotes), abstract metaphor nouns, and a plain-speech section that includes the rule against over-compressed arrow-speak. Also states the boundary this guide draws that unslop does not: metaphors that teach a concept to a non-technical reader stay, metaphors that decorate go. The guide's own prose now follows its own em-dash rule. Source: https://github.com/cursor/plugins/blob/main/pstack/skills/unslop/SKILL.md Co-Authored-By: Claude Fable 5 <[email protected]>
Adopts wayfarer3130's review comments: the engines split from the data types (core = building blocks only; legacy = today's readers and writers; parser = the new streaming reader; generator = the new writers). The vendored dicom-parser tokenizer is dropped from the 1.0 stream entirely, and about 300 tests retire with it. @dcmjs/media is added as a bundle over dicomdir, pdfs, and video, which all remain individually installable. The wrapper publishes as @dcmjs/dcmjs during the beta so the real dcmjs name stays untouched until the team is ready. FHIR stays in the plan with its landing order marked as an open question. Section 7 is rewritten to the simpler tests-travel-with-code approach discussed since the first draft. Co-Authored-By: Claude Fable 5 <[email protected]>
Co-Authored-By: Claude Fable 5 <[email protected]>
…s sequencing Co-Authored-By: Claude Fable 5 <[email protected]>
Co-Authored-By: Claude Fable 5 <[email protected]>
…e git mv) Co-Authored-By: Claude Fable 5 <[email protected]>
…hrough fixturePath() Co-Authored-By: Claude Fable 5 <[email protected]>
Co-Authored-By: Claude Fable 5 <[email protected]>
Co-Authored-By: Claude Fable 5 <[email protected]>
refactor: move committed test DICOM fixtures into packages/fixtures
…regression bank Co-Authored-By: Claude Fable 5 <[email protected]>
test: add the issue triage catalog and part10 walker for the regression bank
…avior Co-Authored-By: Claude Fable 5 <[email protected]>
…gth behavior Co-Authored-By: Claude Fable 5 <[email protected]>
…rdering Co-Authored-By: Claude Fable 5 <[email protected]>
…d strict-write Co-Authored-By: Claude Fable 5 <[email protected]>
… value-handling behaviors Co-Authored-By: Claude Fable 5 <[email protected]>
test: pin round-trip integrity, UUID-derived UIDs, and UN padding behavior
test: pin encapsulated write, latin1 fallback, and CS multi-value length behavior
test: pin private tag handling, undefined value writes, and element ordering
Use the semantic-release maintenance branch style (N.x) in place of release/0.5x, and publish 0.x fixes to the npm dist-tag 0.x. Co-Authored-By: Claude Opus 5.5 <[email protected]>
✅ Deploy Preview for dcmjs2 ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
master publishes 1.x to npm latest. Remove the 1.0-beta prerelease branch from the semantic-release configuration and from the workflow triggers, and remove the beta wording from the install documentation. Co-Authored-By: Claude Opus 5.5 <[email protected]>
1.0 publishes only the @dcmjs-org packages, so the unscoped dcmjs package has only the 0.x line. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…VR (#638) DicomDict.write() threw "Cannot read properties of undefined (reading 'length')" for a string element with no Value, which is the DICOM JSON form of an empty element (NAT-U-RT-7). Tag.write now gives each VR writer an empty list for an absent, null, "" or all-undefined value, and turns another undefined entry into a null entry. A null sequence item is written as an empty item. Co-authored-by: Claude Opus 5.5 <[email protected]>
…ore): a single PN value is array-like (#646) * docs(migration): add codemod descriptions for the upgrade from 0.x to 1.0 Phase 1: change the package name to @dcmjs/dcmjs (CM-1), and adapt the code to the naturalized values of 1.0 (CM-2). Phase 2: read Part 10 directly to a naturalized dataset (CM-3), and write a naturalized dataset directly to Part 10 (CM-4), with the event stream. Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(migration): the 1.0 release keeps the name @dcmjs-org/dcmjs Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(core): a single PN value is array-like, as a single-item sequence A single PN value is the component object, and now also has a hidden [0] (the object), a length of 1 and an iterator (NAT-U-VAL-5, NAT-U-SQ-1). So the 0.x form ds.PatientName[0].Alphabetic keeps working, and ds.PatientName[0] === ds.PatientName. Co-Authored-By: Claude Opus 5.5 <[email protected]> * feat(codemods): runnable codemods for the upgrade to dcmjs 1.0 Replace the codemod descriptions in docs/codemods with packages of the Codemod registry, in the layout of the Cornerstone3D codemods. Each package has a codemod.yaml, a workflow.yaml, an ast-grep transform, the fixture tests and a README: - @dcmjs-org/dcmjs-1: runs the two packages below. - @dcmjs-org/dcmjs-1-package-name: package.json and the module name. - @dcmjs-org/dcmjs-1-naturalized-values: the naturalized values of 1.0. - @dcmjs-org/dcmjs-1-event-stream: optional, the read and the write with the event stream. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
…sets; options-object streams (#650) This is a re-base of some 0.x work for 1.0 beta * feat(core): options-object stream constructors, little endian default new ReadBufferStream(buffer, { littleEndian, start, stop, noCopy, clearBuffers }) and new WriteBufferStream({ defaultSize, littleEndian }). Little endian is the default. The 0.x positional forms still work, keep every argument (including the 3rd options argument of ReadBufferStream), and warn once per class. All internal callers use the options form. Co-authored-by: Luis Miguel Santos <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]> * feat(core): Vrs/registerVr and SopClasses/registerSopClass registries The VR classification is stored once (constants/vrs.js flags), copied to each VR instance, and singleVRs and BINARY_VRS are computed from it and follow registerVr. Vrs replaces the private VRinstances table; createByTypeString reads it, so a registered VR decodes without the "Invalid vr type" warning. Members are unchanged (UV stays binary and length32; OL/OV have only the byte-stream flag). SopClasses (name -> UID), registerSopClass(name, uid) and sopClassName(uid) replace the hand-kept sopClassNamesByUID table. DicomMetaDictionary.sopClassUIDsByName and sopClassNamesByUID are the registry's plain objects, and _generateUIDMap() still picks up direct edits of sopClassNamesByUID. Co-authored-by: Luis Miguel Santos <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]> * feat(core): registerCharacterSet; the writer encodes the declared charset registerCharacterSet(term, { label, createDecoder, encode }) adds or replaces a SpecificCharacterSet defined term for read and write. The registry is seeded from encodingMapping (read at lookup time) and keeps it in step. resolveCharsetDecoder looks terms up in the registry, so all read paths decode a registered term. writeDataSet sets the stream encoder when it writes (0008,0005) and restores the caller's encoder at the end of the dataset or item; Tag.write gives each child stream its parent's encoder. StreamingPart10Writer keeps the same scope per item. Single-byte charsets get a reverse-table encoder (unencodable characters throw, or write "?" with writeOptions.ignoreErrors); UTF-8 uses TextEncoder; multi-byte and ISO 2022 charsets keep UTF-8 bytes with a one-time warning. Co-authored-by: Luis Miguel Santos <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]> * test(bundle-size): raise the ceilings for the core registries The VR, SOP class and character-set registries and the stream constructor shim add about 9 KB to the dcmjs.js bundle and 8 KB to the dcmjs.es.js consumer bundle (ratios 1.079 and 1.061). Co-authored-by: Luis Miguel Santos <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs: registries specification and migration notes docs/specs/registries.md (user requirements REG-U-n) and registries-implementation.md (REG-I-n), and MIGRATION.md entries for the stream constructors and for the write in the declared character set. Co-authored-by: Luis Miguel Santos <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(core): review fixes for the registries - writeUTF8String encodes String(value): a number in a text VR no longer crashes the single-byte encoder (B1). - writeDataSet restores the stream encoder in a finally block (N6). - the charset warn-once key is the normalized term, so registerCharacterSet clears it (N1). - registerSopClass drops the old reverse entry of a renamed UID (N4). - bundle-size ceiling comment matches the ceilings (N8). - MIGRATION.md lists every constructor whose byte order changed and rewords the intro about the writer (S4). - tests: the unencodable character and "?" under ignoreErrors (REG-U-13), StreamingPart10Writer item scoping (REG-I-19), and a number in an LO under ISO_IR 100 (B1). Co-authored-by: Luis Miguel Santos <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(core): legacy stream form by argument count; document charset decisions - ReadBufferStream treats any explicit non-object 2nd argument (undefined, 0, ...) as the 0.x byte order, and WriteBufferStream any explicit non-object 1st argument, so those calls stay big endian as in 0.x and warn once. DeflatedReadBufferStream passes an options object. - REG-U-12: an empty (0008,0005) or ISO 2022 IR 6 writes with the windows-1252 table, the common handling of an unspecified repertoire. - REG-U-13: ISO_IR 100 keeps the windows-1252 table (symmetric with the read), so 0x80-0x9F characters write without an error. - MIGRATION.md: the note is about the 0.x-compatible DicomDict.write and DicomMessage.write, which now delegate to writePart10. Co-authored-by: Luis Miguel Santos <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Luis Miguel Santos <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
Copy of PR merged to 0.x stream * build(deps): move adm-zip to devDependencies 1.0 port of #642 (commit d0c6da2). adm-zip is only imported by test/testUtils.js, and test/ is not in the published files, but the root package.json listed adm-zip 0.5.17 under dependencies. The pnpm-workspace.yaml override resolves 0.6.1 inside this repository only, so a project that installs @dcmjs-org/dcmjs still got 0.5.17. Move it to devDependencies at 0.6.1. pnpm install also adds the empty packages/codemods importer that the lockfile on 1.0-beta did not list. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(deps): override undici to patched 6.x and 7.x releases pnpm audit --audit-level=high fails on 1.0-beta-based branches because of GHSA-2m5v-pch6-74hx, GHSA-qrxm-fqhp-jwvm, GHSA-4w7w-5xrc-9h26 and GHSA-xjj6-f33q-929c in undici, a dev-only dependency of semantic-release. Caret ranges keep each line on its own major version. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
…7g-rm36) (#652) * fix: release the bound on reads past the end of the data 1.0 port of commit 6da1c81 (merged by 559a20a), for GHSA-xwvm-687g-rm36. SplitDataView.slice in packages/core clamps the end to the bytes held, the way ArrayBuffer.prototype.slice does, and returns an empty buffer when the start is at or after the end. BinaryRepresentation.readBytes reads only the bytes present when the declared value length is longer, and logs a validationLog warning. The 0.x test test/declared-length-bounds.test.js moves to test/issues/GHSA-xwvm-687g-rm36-declared-length-bounds.test.js. Co-Authored-By: Claude Opus 5.5 <[email protected]> * test: assert the validation warning for a declared length past the data Review item S1 of the 1.0 port of GHSA-xwvm-687g-rm36. The SplitDataView.slice clamp alone makes the readBytes tests pass, so the readBytes tests now also expect the validationLog.warn call. Without the readBytes clamp, 5 tests fail. Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs: record the declared length clamp in the beta 1 release notes Maintainer decision on the review of the 1.0 port of GHSA-xwvm-687g-rm36 (commit 6da1c81): one bullet for the warning and for the RangeError of a truncated header field (review N3). Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
…ster # Conflicts: # docs/MIGRATION.md
Merge from 0.x * fix(colors): convert DICOM CIELab relative to the D50 white point 1.0 port of #598 (commit 3843de7). src/colors.js and src/adapters/VTKjs/Segmentation.js on 1.0-beta were the same as on master before #598, so this takes the #598 versions of both files: sRGB -> XYZ (D65) -> Bradford -> XYZ (D50) -> CIELab and the reverse, per channel gamut clipping, and the new dicomlab2RGB8, rgb82DICOMLAB and d50WhitePointXYZ. The VTKjs adapter uses dicomlab2RGB8. The changelog entry is the same as on master. The 0.x test test/colors.test.js moves to test/issues/pr598-colors-d50.test.js. The test file changes of #598 for readFileAsArrayBuffer were a backport from 1.0-beta and are not needed here. Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs: record the D50 CIELab conversion in the beta 1 release notes Maintainer decision Q1 of the review of the 1.0 port of #598. The changelog.md entry stays as it is. Co-Authored-By: Claude Opus 5.5 <[email protected]> * test(bundle-size): raise the ceilings to 1.083 and 1.065 for the D50 CIELab conversion On the current 1.0-beta, the #598 colors code takes dcmjs.js to x1.0825 and dcmjs.es.js to x1.0649. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
|
🎉 This PR is included in version 1.0.0-beta.17 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
SequenceOfItems.readBytes skipped an item with no bytes, so later items
moved to a lower index. It now pushes {} for an empty item. The async
reader, fromPart10 and fromPart10Stream already kept empty items; a new
test checks all four readers in both VR modes with defined and
undefined lengths.
Co-authored-by: Claude Opus 5.5 <[email protected]>
…e (port of #602) (#661) flipMatrix2D.h, flipMatrix2D.v and rotateMatrix902D always allocated a Uint8Array, so 16-bit input lost its high byte ([300, 513] -> [44, 1]). Allocate the output with the constructor of the input data. Co-authored-by: Claude Opus 5.5 <[email protected]>
…oups (port of #603) (#662) * fix(normalizers): normalize multiframe datasets missing functional groups (port of #603) normalizeMultiframe dereferenced a missing SharedFunctionalGroupsSequence and threw a TypeError. When the groups are missing, fill the shared PlaneOrientationSequence / PixelMeasuresSequence and the per-frame PlanePositionSequence from the top-level attributes, through the static ImageNormalizer.sharedImagePlaneGroups and planePositionGroup that convertToMultiframe now also uses. Lower NumberOfFrames to the whole frames PixelData holds (never raise it), with a warning. A per-frame sequence that is already an array is no longer wrapped again, so a one-frame item is an object and not [[item]]. log.error becomes log.warn. Raise the bundle-size ceilings to 1.084 and 1.067 for the ~1.7 KB added. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(normalizers): keep the declared NumberOfFrames when functional groups are missing The normalizer no longer lowers NumberOfFrames to the frames that PixelData appears to hold. Encapsulated PixelData can have more or fewer fragments than frames, so a byte count says nothing about the frame count. framesInPixelData is removed. A dataset with no PerFrameFunctionalGroupsSequence now gets one per-frame item for each declared frame, each with PlanePositionSequence from the top-level ImagePositionPatient and its own FrameContentSequence. Co-Authored-By: Claude Opus 5.5 <[email protected]> * test(bundle-size): set the ceilings from a build with #660, #659 and #662 The combined build measures x1.0841 (dcmjs.js) and x1.0665 (dcmjs.es.js). The ceiling comment is now one line. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
…E (port of #496) (#658) * fix(legacy): read a UN element that holds a sequence as Implicit VR LE (port of #496) PS3.5 §6.2.2: an Explicit VR element with VR UN and a defined length, whose value starts with the item tag (FFFE,E000), holds a sequence in Implicit VR Little Endian. - legacy DicomMessage._readTag and AsyncDicomReader read such a value as SQ (shared isUnSequenceValue). - parser fromPart10Stream (and fromPart10) emit it as a sequence. - core Tag.write writes a UN whose values are all item objects as SQ with undefined length. - bundle-size ceilings 1.085 and 1.067. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix: narrow the PS3.5 §6.2.2 UN sequence rule; BE sync read; writer item check - core: isUnSequenceValue (dictionary VR SQ or no entry, item tag, first item length undefined or within the value) and isItemDictLike, one copy for the legacy sync, legacy async and event-stream readers. - legacy sync reader: read the items as little endian in an Explicit VR Big Endian body (the items were lost). - Tag.write: a UN is written as SQ only when every value is an item dataset; { InlineBinary } and { BulkDataURI } stay UN. - parser: JSDoc and AD-1 text name the §6.2.2 exception. - docs: NAT-U-BIN-6 and NAT-I-BIN-3. - tests: Explicit VR Big Endian, bad item length, dictionary VR OB, binary references on write. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
…t (port of #609) (#659) PS3.5 7.5.3: items use the character set of the data set that contains them, and a character set declared in an item applies only to that item and the items nested in it. - ReadBufferStream takes a `decoder` option; BufferStream.more() and ParsedUnknownValue.read() pass the decoder of the parent stream, so the sync reader and the UN re-read decode items with the data set charset. - AsyncDicomReader.readSequence restores the decoder after each item. - The event-stream reader already scopes the charset per item; it had only the UN re-read bug, which the ParsedUnknownValue change fixes. - Tests run the sync, async and event-stream readers on Explicit and Implicit VR, with undefined and defined lengths. - bundle-size ceilings 1.084 and 1.066 for the added source. Co-authored-by: Claude Opus 5.5 <[email protected]>
…656) Follow-up to #651 (maintainer decision: 1.0-beta matches master) Co-authored-by: Claude Opus 5.5 <[email protected]>
…ted (#647) The adapters moved to @cornerstonejs/adapters. Keep the export for 0.x compatibility, and point users to the new package. Co-authored-by: Claude Opus 5.5 <[email protected]>
…e exponent (#654) * fix(VR): format DS numbers to 16 characters instead of cutting off the exponent 1.0 port of #610 (commit aee06e4), with the round trip test of #624. denaturalizeDataset in packages/core now formats each number of a DS array with DecimalString.convertToString before denaturalizeValue, so 3.5163338899999997e-10 is written as 3.5163338900e-10 and not cut to 3.51633388999999. Both tests go in test/issues/issue531-ds-exponent.test.js (#610 fixes #531). Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(VR): format a single DS number and a Number object to 16 characters Review items S1 and N1 of the 1.0 port of #610. The 1.x port now also formats the scalar case: a VM 1 DS attribute, for example SliceThickness or SliceLocation, is a single number in a 1.x naturalized dataset, and it went through String() and was cut to 16 characters. A Number object (new Number(...)) is formatted the same way. One formatDs function serves the scalar and the list form. master (0.x) has the same scalar gap after #610. The JSDoc of denaturalizeDataset cites PS3.5 Table 6.2-1. The bundle-size ceilings move to 1.081 and 1.063 for this change. Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs: record the DS formatting in NAT-U-RT-8 and the release notes Maintainer decision Q2 of the review of the 1.0 port of #610: NAT-U-RT-8 in docs/specs/naturalized-dataset.md, with the PS3.5 Section 6.2, Table 6.2-1 reference and the test file, and one bullet in beta-1-release-notes.md. No NAT-I rule covers the DS write, so no NAT-I rule changes. Co-Authored-By: Claude Opus 5.5 <[email protected]> * test(bundle-size): raise the dcmjs.es.js ceiling to 1.064 after #652 The rebase onto 1.0-beta adds the declared length clamp of #652 to the DS formatting of this branch: dcmjs.es.js is x1.0632. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
…ster Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
🎉 This PR is included in version 1.0.0-beta.19 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
Contributor
Author
|
Replaced by #668: 1.0 releases from main, and master is now 0.x. |
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.
Summary
This PR moves the 1.0 code from
1.0-betatomaster. After the merge,masteris the 1.x line, and the publish job onmasterreleases1.0.0to npmlatest. The 0.x line continues on the0.xbranch (#648).How the PR is made
1.0-beta(2b74aa3, after feat(core): private blocks of a DICOM JSON dict by block key (1.0 port of #626) #641).master(9368b00) as a parent withgit merge -s ours. The merge keeps the tree of1.0-betaunchanged. Thus this PR has no conflicts, and GitHub shows only the changes frommasterto1.0-beta.release/0.5xto0.xin.releaserc.json, in the five workflows, and inRELEASE_PLAN.md..releaserc.jsonno longer has the1.0-betaprerelease branch. The release branches are0.x(maintenance) andmaster(npmlatest).1.0-beta.README.mdanddocs/MIGRATION.mdinstall@dcmjs-org/dcmjswithout the@betatag.packages/core,packages/generatorandpackages/legacyREADMEs no longer say that the package is private. Theirpackage.jsonfiles are already public..github/PULL_REQUEST_TEMPLATE.mdstill describes the staging process into1.0-beta. A later PR can update that template.Use Create a merge commit for this PR. A squash or a rebase removes the link to the history of
master.Version
The history of
1.0-betahasfeat!commits (for example11dd755). The last release onmasterisv0.53.0. semantic-release onmasterthus calculates1.0.0.Fixes on master that 1.0-beta does not have
The
-s oursmerge does not bring the changes ofmasterinto 1.0. These commits are onmasterand are not ported to1.0-beta. Each one needs a port before this merge:6da1c81(ported as fix: clamp a declared value length to the bytes present (GHSA-xwvm-687g-rm36) #652) "fix: release the bound on reads past the end of the data" (security advisory GHSA-xwvm-687g-rm36). The clamp of the declared value length inValueRepresentation.jsis not inpackages/core.adm-ziptodevDependencies.1.0-betahasadm-zip0.5.17 independencies(CVE-2026-39244).#626 (port #641) and #597 (port #640) are already on
1.0-beta.Order of the merge
1.0-beta, then update this branch with a merge of1.0-beta.masterpublish1.0.0.0.x.npm names
dcmjs 1.0 publishes only the
@dcmjs-org/*packages. The unscopeddcmjspackage keeps the 0.x line, and #648 publishes it to npmlatest. This PR sets the0.xentry of.releaserc.jsontochannel: falsefor the same reason. Adcmjsalias of@dcmjs-org/dcmjsis a possible step after the release, and is not part of this PR.Tests
No code change. The changes are release configuration and documentation only.
prettier --checkgives the same 6 warnings on the changed files before and after this change.🤖 Generated with Claude Code