@nice2dev/ui-display 1.3.13 → 1.3.15

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.
Files changed (2) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/package.json +3 -3
package/CHANGELOG.md CHANGED
@@ -1,5 +1,29 @@
1
1
  # @nice2dev/ui-display
2
2
 
3
+ ## 1.3.15
4
+
5
+ No changes in this release.
6
+
7
+ ## 1.3.14
8
+
9
+ ### Patch Changes
10
+
11
+ - ff59527: Package builds (1.3.14, OmniVerk's list):
12
+
13
+ - **@nice2dev/ui ESM: a module per source file.**
14
+ - Until now `dist/index.mjs` was a single 2.6 MB module, so an app's bundler could not keep controls used only on a lazily loaded page out of the chunk every page loads. Now an app splits the library like its own code.
15
+ - Entry paths, the `exports` map, the CommonJS build and `style.css` (byte-identical) do not change.
16
+ - `country-flag-icons`, already a dependency, is no longer bundled.
17
+ - Note: an app rule that sends every `@nice2dev/ui/` module to one manual chunk undoes the split.
18
+ - **Only `style.css` ships:** the chunk CSS files it inlines are no longer published next to it, which halves the CSS in the package.
19
+ - **ui-audio workers:** their URLs are relative. They were addressed from the site root (`/assets/pitchWorker-….js`), where an app that installs the package has no such file. Test and benchmark declarations are no longer published.
20
+ - **ui-buildings:** no longer ships an import worker that nothing refers to.
21
+ - **Clean builds:** ui-core, ui-display and ui-tools empty `dist` before building, so stale hashed chunks cannot be packed.
22
+ - **Release pipeline:**
23
+ - The publish job takes the builds from a folder emptied after every job. Old builds' files had piled up in its previous folder and were published (e.g. @nice2dev/ui 1.3.10: 793 files instead of 337).
24
+ - It checks each package against the file list the build recorded before anything goes to npm.
25
+ - The contents audit also lists published files that no entry reaches.
26
+
3
27
  ## 1.3.13
4
28
 
5
29
  No changes in this release.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nice2dev/ui-display",
3
- "version": "1.3.13",
3
+ "version": "1.3.15",
4
4
  "description": "Nice2Dev UI Display — Badge, Avatar, Progress, Skeleton, Timeline, Carousel, Buttons, QRCode, Barcode",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -22,7 +22,7 @@
22
22
  ],
23
23
  "scripts": {
24
24
  "test": "vitest run --passWithNoTests",
25
- "build": "tsc -p tsconfig.build.json && vite build",
25
+ "build": "node -e \"require('fs').rmSync('dist',{recursive:true,force:true})\" && tsc -p tsconfig.build.json && vite build",
26
26
  "clean": "rimraf dist",
27
27
  "typecheck": "tsc --noEmit",
28
28
  "prepublishOnly": "npm run build"
@@ -33,7 +33,7 @@
33
33
  "react-dom": ">=17.0.0"
34
34
  },
35
35
  "devDependencies": {
36
- "@nice2dev/ui": "^1.3.13",
36
+ "@nice2dev/ui": "^1.3.15",
37
37
  "@types/react": "^19.2.18",
38
38
  "@types/react-dom": "^19.2.7",
39
39
  "@vitejs/plugin-react": "^4.7.0",