@qoretechnologies/reqore 0.76.0-pr.673.g960750c → 0.76.0-pr.673.gfcc9a9f

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/.claude/CLAUDE.md CHANGED
@@ -136,8 +136,13 @@ Rules that fall out of this:
136
136
  - Requiring a *leaf* module directly in Node (`require('.../dist/components/Tag/index.cjs')`)
137
137
  fails on a circular import through the root index. It always has with the CJS dist;
138
138
  bundlers resolve the cycle. Require the root.
139
- - One dependency (`react-hotkeys-hook`) is ESM-only, so requiring the CJS entry needs Node
140
- 20.19+ / 22.12+ (`require(esm)`). That predates the dual build.
139
+ - **No ESM-only dependency may sit on the CommonJS path.** `nanoid` is pinned to 3.x and
140
+ `react-hotkeys-hook` to 4.x because 5.x of both ship ESM only, and a CJS file that
141
+ `require()`s them throws `ERR_REQUIRE_ESM` on any Node without `require(esm)` (older than
142
+ 20.19 / 22.12). HubSpot's EU render runtime is such a Node: it installs the package's own
143
+ dependency graph and ignores consumer `overrides`/`resolutions`, so the graph itself has to
144
+ be clean. `build:verify` loads the CJS entry with `--no-experimental-require-module` to
145
+ catch a regression before publish; run it with the same flag when adding a dependency.
141
146
 
142
147
  ### Pre-commit Checks
143
148
  - `yarn precheck` runs: lint → test → build (production).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qoretechnologies/reqore",
3
- "version": "0.76.0-pr.673.g960750c",
3
+ "version": "0.76.0-pr.673.gfcc9a9f",
4
4
  "description": "ReQore is a highly theme-able and modular UI library for React",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",
@@ -24,7 +24,7 @@
24
24
  "docs:build": "docusaurus build",
25
25
  "docs:api": "typedoc --options typedoc.json",
26
26
  "update-qlip": "yarn add @qoretechnologies/qlip@beta --dev",
27
- "build:verify": "node -e \"const r=require('./dist/index.cjs'); if(!r.ReqoreUIProvider) throw new Error('cjs entry broken'); console.log('cjs entry ok:', Object.keys(r).length, 'exports')\" && esbuild dist/index.js --bundle --format=esm --platform=browser --external:react --external:react-dom --outfile=/dev/null --log-level=error && esbuild dist/components/Panel/index.js --bundle --format=esm --platform=browser --external:react --external:react-dom --outfile=/dev/null --log-level=error && echo 'esm tree ok: root and deep imports bundle'"
27
+ "build:verify": "node --no-experimental-require-module -e \"const r=require('./dist/index.cjs'); if(!r.ReqoreUIProvider) throw new Error('cjs entry broken'); console.log('cjs entry ok without require(esm):', Object.keys(r).length, 'exports')\" && esbuild dist/index.js --bundle --format=esm --platform=browser --external:react --external:react-dom --outfile=/dev/null --log-level=error && esbuild dist/components/Panel/index.js --bundle --format=esm --platform=browser --external:react --external:react-dom --outfile=/dev/null --log-level=error && echo 'esm tree ok: root and deep imports bundle'"
28
28
  },
29
29
  "repository": {
30
30
  "type": "git",
@@ -102,11 +102,11 @@
102
102
  "epoch-timeago": "^1.1.9",
103
103
  "fast-json-stable-stringify": "^2.1.0",
104
104
  "lodash": "^4.17.21",
105
- "nanoid": "^5.1.5",
105
+ "nanoid": "^3.3.11",
106
106
  "polished": "^4.2.2",
107
107
  "re-resizable": "^6.9.0",
108
108
  "react-aria-components": "^1.2.0",
109
- "react-hotkeys-hook": "^5.3.2",
109
+ "react-hotkeys-hook": "^4.6.2",
110
110
  "react-icons": "5.4.0",
111
111
  "react-overflow-list": "^0.5.0",
112
112
  "react-popper": "^2.3.0",