@coherent.js/client 1.0.0-beta.3 → 1.0.0-beta.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.
Files changed (2) hide show
  1. package/README.md +19 -0
  2. package/package.json +2 -1
package/README.md CHANGED
@@ -23,6 +23,25 @@ Requirements:
23
23
  - Node.js >= 20
24
24
  - ESM module system
25
25
 
26
+
27
+ ## Exports
28
+
29
+ Client-side hydration and HMR utilities
30
+
31
+ ### Modular Imports (Tree-Shakable)
32
+
33
+ - Hydration utilities: `@coherent.js/client`
34
+ - Client router: `@coherent.js/client/router`
35
+ - HMR support: `@coherent.js/client/hmr`
36
+
37
+ ### Example Usage
38
+
39
+ ```javascript
40
+ import { hydrateComponent } from '@coherent.js/client';
41
+ import { createClientRouter } from '@coherent.js/client/router';
42
+ ```
43
+
44
+ > **Note**: All exports are tree-shakable. Import only what you need for optimal bundle size.
26
45
  ## Quick start
27
46
 
28
47
  The client package pairs with server-rendered HTML produced by `@coherent.js/core`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coherent.js/client",
3
- "version": "1.0.0-beta.3",
3
+ "version": "1.0.0-beta.5",
4
4
  "description": "Client-side hydration/HMR utilities for Coherent.js",
5
5
  "type": "module",
6
6
  "main": "src/hydration.js",
@@ -32,6 +32,7 @@
32
32
  "access": "public",
33
33
  "registry": "https://registry.npmjs.org/"
34
34
  },
35
+ "sideEffects": false,
35
36
  "scripts": {
36
37
  "build": "node build.mjs",
37
38
  "clean": "rm -rf dist/",