@object-ui/plugin-form 4.0.3 → 4.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,57 @@
1
1
  # @object-ui/plugin-form
2
2
 
3
+ ## 4.0.5
4
+
5
+ ### Patch Changes
6
+
7
+ - 1dc6061: fix(build): inline dynamic imports in library outputs
8
+
9
+ Library `vite build --lib` outputs were emitting separate code-split chunks
10
+ (`rolldown-runtime-*.js`, `LookupField-*.js`, etc.) when source files used
11
+ `React.lazy()` / dynamic `import()`. When consumer apps re-bundled these
12
+ multi-file dists, the library's per-chunk rolldown-runtime collided with the
13
+ consumer's own runtime, causing "TypeError: i is not a function" at runtime
14
+ when lazy components tried to register themselves (e.g. TextField in
15
+ `@object-ui/fields` after 4.0.4).
16
+
17
+ Adding `output.inlineDynamicImports: true` to all `@object-ui/*` library vite
18
+ configs forces a single `dist/index.js` per package, which lets consumer
19
+ bundlers handle the library as an opaque ESM module without identifier
20
+ mismatches across chunks.
21
+
22
+ Affected packages: components, fields, layout, plugin-aggrid, plugin-ai,
23
+ plugin-calendar, plugin-charts, plugin-chatbot, plugin-dashboard,
24
+ plugin-designer, plugin-detail, plugin-editor, plugin-form, plugin-gantt,
25
+ plugin-grid, plugin-kanban, plugin-list, plugin-map, plugin-markdown,
26
+ plugin-report, plugin-timeline, plugin-view, plugin-workflow.
27
+
28
+ - Updated dependencies [1dc6061]
29
+ - @object-ui/components@4.0.5
30
+ - @object-ui/fields@4.0.5
31
+ - @object-ui/types@4.0.5
32
+ - @object-ui/core@4.0.5
33
+ - @object-ui/react@4.0.5
34
+
35
+ ## 4.0.4
36
+
37
+ ### Patch Changes
38
+
39
+ - d2b6ece: fix: externalize all bare imports in library builds
40
+
41
+ Library builds (vite lib mode) now externalize every non-relative import instead of bundling third-party CJS dependencies into the published dist. This avoids inlined `require("react")` / `require("react-dom")` calls that cause `Calling \`require\` for "react" in an environment that doesn't expose the \`require\` function` runtime errors when consumer apps re-bundle the published dist.
42
+
43
+ Specifically fixes:
44
+ - `@object-ui/plugin-dashboard` no longer inlines `react-grid-layout` (and its transitive `react-draggable` / `react-resizable` CJS bundles). `react-grid-layout` is now declared as a peer dependency so consumers install a single ESM-friendly copy.
45
+ - `@object-ui/components`, `@object-ui/plugin-calendar`, `@object-ui/plugin-charts`, `@object-ui/plugin-designer` no longer inline `react-i18next` / `i18next` / `use-sync-external-store` CJS shims.
46
+ - All plugin packages now use a unified `external: (id) => !/^[./]/.test(id) && !id.startsWith(__dirname)` rule, ensuring future additions of CJS deps are automatically externalized.
47
+
48
+ - Updated dependencies [d2b6ece]
49
+ - @object-ui/components@4.0.4
50
+ - @object-ui/fields@4.0.4
51
+ - @object-ui/types@4.0.4
52
+ - @object-ui/core@4.0.4
53
+ - @object-ui/react@4.0.4
54
+
3
55
  ## 4.0.3
4
56
 
5
57
  ### Patch Changes