zen-fs-config 0.5.23 → 0.5.24

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/README.md CHANGED
@@ -28,10 +28,10 @@ npm install zen-fs-config @zenfs/core @zenfs/dom zen-fs-sync
28
28
 
29
29
  ## Usage via `<script>` tag (no build step)
30
30
 
31
- A self-contained browser bundle is published at `dist/index.browser.js`. It bundles **all** dependencies (`@zenfs/core`, `@zenfs/dom`, `zen-fs-sync`, `zen-fs-cache`) and exposes the library on the global `window.ZenFSConfig`. No npm install, no bundler — just drop it into any HTML page:
31
+ A self-contained browser bundle is published at `dist/zen-fs-config.js`. It bundles **all** dependencies (`@zenfs/core`, `@zenfs/dom`, `zen-fs-sync`, `zen-fs-cache`) and exposes the library on the global `window.ZenFSConfig`. No npm install, no bundler — just drop it into any HTML page:
32
32
 
33
33
  ```html
34
- <script src="https://unpkg.com/zen-fs-config/dist/index.browser.js"></script>
34
+ <script src="https://unpkg.com/zen-fs-config/dist/zen-fs-config.js"></script>
35
35
  <script>
36
36
  (async () => {
37
37
  const { createConfigRepo } = window.ZenFSConfig;
package/README.zh-CN.md CHANGED
@@ -16,10 +16,10 @@ npm install zen-fs-config @zenfs/core @zenfs/dom zen-fs-sync
16
16
 
17
17
  ## 通过 `<script>` 标签直接使用(无需构建)
18
18
 
19
- 包内置了一个自包含的浏览器构建 `dist/index.browser.js`,它把**所有**依赖(`@zenfs/core`、`@zenfs/dom`、`zen-fs-sync`、`zen-fs-cache`)打包在一起,并将库挂载到全局变量 `window.ZenFSConfig`。无需 npm install、无需打包工具,直接放入任意 HTML 页面即可:
19
+ 包内置了一个自包含的浏览器构建 `dist/zen-fs-config.js`,它把**所有**依赖(`@zenfs/core`、`@zenfs/dom`、`zen-fs-sync`、`zen-fs-cache`)打包在一起,并将库挂载到全局变量 `window.ZenFSConfig`。无需 npm install、无需打包工具,直接放入任意 HTML 页面即可:
20
20
 
21
21
  ```html
22
- <script src="https://unpkg.com/zen-fs-config/dist/index.browser.js"></script>
22
+ <script src="https://unpkg.com/zen-fs-config/dist/zen-fs-config.js"></script>
23
23
  <script>
24
24
  (async () => {
25
25
  const { createConfigRepo } = window.ZenFSConfig;
@@ -24748,8 +24748,8 @@ var ZenFSConfig = (() => {
24748
24748
  });
24749
24749
 
24750
24750
  // src/index.ts
24751
- var index_exports = {};
24752
- __export(index_exports, {
24751
+ var src_exports = {};
24752
+ __export(src_exports, {
24753
24753
  ConfigRepo: () => ConfigRepo,
24754
24754
  DataSyncGroup: () => DataSyncGroup,
24755
24755
  LOCAL_IDB_BACKEND_ID: () => LOCAL_IDB_BACKEND_ID,
@@ -28445,7 +28445,7 @@ var ZenFSConfig = (() => {
28445
28445
  });
28446
28446
  return { groupType: "config-sync", repo };
28447
28447
  }
28448
- return __toCommonJS(index_exports);
28448
+ return __toCommonJS(src_exports);
28449
28449
  })();
28450
28450
  /*! Bundled license information:
28451
28451
 
package/package.json CHANGED
@@ -1,9 +1,10 @@
1
1
  {
2
2
  "name": "zen-fs-config",
3
- "version": "0.5.23",
3
+ "version": "0.5.24",
4
4
  "description": "Distributed config management library built on ZenFS, zen-fs-cache, and zen-fs-sync",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
7
+ "browser": "dist/zen-fs-config.js",
7
8
  "types": "dist/index.d.ts",
8
9
  "exports": {
9
10
  ".": {