@jsonresume/core 0.3.1 → 0.3.3

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/README.md +12 -0
  2. package/package.json +6 -6
package/README.md CHANGED
@@ -25,6 +25,18 @@ yarn add @jsonresume/core
25
25
  pnpm add @jsonresume/core
26
26
  ```
27
27
 
28
+ > **Requires a bundler.** The package ships its React source (`.jsx`), not
29
+ > compiled JavaScript, so `import '@jsonresume/core'` in plain Node.js fails
30
+ > with `ERR_UNKNOWN_FILE_EXTENSION` / `ERR_MODULE_NOT_FOUND`. Use it from a
31
+ > build that transpiles dependencies:
32
+ >
33
+ > - **Vite** (how the themes in this repo build): works as-is.
34
+ > - **Next.js**: add it to `transpilePackages: ['@jsonresume/core']`.
35
+ > - **esbuild**: `esbuild theme.jsx --bundle --platform=node --loader:.js=jsx --jsx=automatic`.
36
+ >
37
+ > Themes should bundle it into their published `dist/` so their own users
38
+ > don't need a bundler.
39
+
28
40
  **Peer Dependencies:**
29
41
 
30
42
  This package requires React 18 or 19 and styled-components:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsonresume/core",
3
- "version": "0.3.1",
3
+ "version": "0.3.3",
4
4
  "description": "Framework-agnostic resume component core - design tokens, primitives, and validators",
5
5
  "main": "./src/index.js",
6
6
  "types": "./src/index.d.ts",
@@ -24,10 +24,10 @@
24
24
  "@storybook/react-vite": "8.6.15",
25
25
  "react": "^19.2.0",
26
26
  "react-dom": "^19.2.0",
27
- "storybook": "8.6.15",
27
+ "storybook": "8.6.17",
28
28
  "typescript": "^5.9.3",
29
- "vite": "5.4.21",
30
- "vitest": "^2",
29
+ "vite": "6.4.3",
30
+ "vitest": "^3.2.6",
31
31
  "@repo/eslint-config-custom": "^0.0.0"
32
32
  },
33
33
  "peerDependencies": {
@@ -36,8 +36,8 @@
36
36
  },
37
37
  "dependencies": {
38
38
  "styled-components": "^6.1.19",
39
- "@jsonresume/types": "0.2.1",
40
- "@jsonresume/utils": "0.2.1"
39
+ "@jsonresume/types": "0.3.0",
40
+ "@jsonresume/utils": "0.3.0"
41
41
  },
42
42
  "keywords": [
43
43
  "resume",