Skip to content

chore: bump pluggable-widgets-tools to 11.12.0 - #2304

Open
samuelreichert wants to merge 11 commits into
mainfrom
chore/bump-pluggable-widgets-tools-11.12.0
Open

chore: bump pluggable-widgets-tools to 11.12.0#2304
samuelreichert wants to merge 11 commits into
mainfrom
chore/bump-pluggable-widgets-tools-11.12.0

Conversation

@samuelreichert

Copy link
Copy Markdown
Contributor

Pull request type

Dependency changes (any modification to dependencies in package.json)


Description

  • Bump @mendix/pluggable-widgets-tools 11.11.0 → 11.12.0
  • Regenerate patch for 11.12.0 (versioned filename, updated context lines)
  • rich-text-web: remove preset: "ts-jest" incompatible with new @swc/jest runner
  • dropdown-sort-web: remove pinned jest@29 devDep (conflicts with pwt jest@30), rename jest.config.cjs → jest.config.js, fix test script to use --projects flag

@github-actions

This comment has been minimized.

gjulivan
gjulivan previously approved these changes Jul 3, 2026
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@samuelreichert
samuelreichert force-pushed the chore/bump-pluggable-widgets-tools-11.12.0 branch from 7629994 to cce94cb Compare July 29, 2026 13:43
@github-actions

This comment has been minimized.

@github-actions github-actions Bot removed the maps-web label Jul 29, 2026
samuelreichert and others added 6 commits August 10, 2026 15:59
- Bump @mendix/pluggable-widgets-tools 11.11.0 → 11.12.0
- Regenerate patch for 11.12.0 (versioned filename, updated context lines)
- rich-text-web: remove preset: "ts-jest" incompatible with new @swc/jest runner
- dropdown-sort-web: remove pinned jest@29 devDep (conflicts with pwt jest@30),
  rename jest.config.cjs → jest.config.js, fix test script to use --projects flag

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Remove unused @types/enzyme devDependency from dropdown-sort-web and
drop redundant testEnvironment override from rich-text-web jest config.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@samuelreichert
samuelreichert force-pushed the chore/bump-pluggable-widgets-tools-11.12.0 branch from 0a9bc04 to 76a0f0b Compare August 10, 2026 14:02
@github-actions

This comment has been minimized.

@swc/jest hoists the jest.mock factory ahead of the outer const it
referenced, throwing before initialization. Mock with an inline
jest.fn() and pull the reference from the mocked import instead.
`declare const enum DocumentStatus` relied on cross-file const-enum
inlining that ts-jest performed but @swc/jest does not, leaving
DocumentStatus undefined at runtime. Use a regular enum instead.

Also move PDFViewer's cMap/font URL options into a useMemo instead of
computing them at module load time, so the spec can exercise different
window.mx states via re-render instead of jest.resetModules() + a
fresh require() of react-pdf/RTL, which registers global hooks
mid-test and jest-circus rejects.
A beforeEach lived in a describe block with no test of its own, with
the intended test declared as a sibling instead. jest-circus (used
since the pluggable-widgets-tools bump) rejects that structure
outright. Move the test inside the correct describe block.
… parent state

TableToolbar and TableClipboard declared class fields (container,
handlers, controls, update, convert) without initializers, intending
them as type annotations only. Under swc's ES2019 target these compile
to real `this.x = undefined` assignments run right after super(),
wiping out values the parent Toolbar/Clipboard constructor had just
set — crashing table init on querySelectorAll of an undefined
container. ts-jest did not emit these assignments. Mark the fields
`declare` so no initializer is emitted.

Also updates the RichText snapshot, which had captured a duplicate-menu
artifact from the crash/remount cycle prior to this fix.
Comment on lines 19 to 34
@@ -28,7 +28,7 @@ index 4998ce2d2bedd449b0fdaa400368df116e1d4f46..d8e70107c4cde83908324b69b1031ad9
allowAllFormats: true
},
external: outputFormat === "es" ? [] : webExternal,
@@ -166,7 +166,7 @@ export default async args => {
@@ -157,7 +157,7 @@ export default async args => {
sourceMaps: !production,
extensions,
transpile: production,

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

this part of the patch looks unnecessary, I see no changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants