@svelte-vitals/core 0.6.0 → 0.7.0

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 +2 -0
  2. package/package.json +4 -3
package/README.md CHANGED
@@ -9,6 +9,8 @@ This package is **mode-independent** and contains no I/O — it operates on a no
9
9
 
10
10
  > Most users don't depend on this directly — install [`svelte-vitals`](https://www.npmjs.com/package/svelte-vitals) instead. This package is for building tools on top of the shared engine.
11
11
 
12
+ > **ESM-only** (Node 18+). Ships ES modules only; `require()` is unsupported by design.
13
+
12
14
  ## License
13
15
 
14
16
  [MIT](https://github.com/oekazuma/svelte-vitals/blob/main/LICENSE.md) © [Kazuma Oe](https://github.com/oekazuma)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@svelte-vitals/core",
3
- "version": "0.6.0",
3
+ "version": "0.7.0",
4
4
  "description": "Shared, runtime-agnostic core for svelte-vitals (types, rule engine, scorer, reporter).",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -20,6 +20,9 @@
20
20
  "url": "https://github.com/oekazuma/svelte-vitals/issues"
21
21
  },
22
22
  "homepage": "https://github.com/oekazuma/svelte-vitals#readme",
23
+ "engines": {
24
+ "node": ">=18"
25
+ },
23
26
  "sideEffects": false,
24
27
  "exports": {
25
28
  ".": {
@@ -27,8 +30,6 @@
27
30
  "import": "./dist/index.js"
28
31
  }
29
32
  },
30
- "main": "./dist/index.js",
31
- "types": "./dist/index.d.ts",
32
33
  "files": [
33
34
  "dist"
34
35
  ],