nodblite 0.6.7 → 0.6.9

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
@@ -41,7 +41,12 @@ npm install nodblite
41
41
 
42
42
  需要 Node.js 18+。底层通过 [koffi](https://www.npmjs.com/package/koffi) 调用预编译动态库,**不需要 node-gyp、不需要 Python、不需要 C++ 编译器**。
43
43
 
44
- 支持平台:macOS(arm64/x64)、Linux(x64)、Windows(x64)。
44
+ 支持平台:macOS(arm64)、Linux(x64)、Windows(x64)。
45
+
46
+ > 本包是 **纯 ESM**(`"type": "module"`),请用 `import` 引入。CommonJS 项目可改用动态 `import()`:
47
+ > ```js
48
+ > const { Database } = await import('nodblite');
49
+ > ```
45
50
 
46
51
  ## 快速上手
47
52
 
package/package.json CHANGED
@@ -1,26 +1,38 @@
1
1
  {
2
2
  "name": "nodblite",
3
- "version": "0.6.7",
3
+ "version": "0.6.9",
4
4
  "description": "单文件 NoSQL 文档数据库 —— MongoDB 风格查询,零配置,无需服务进程",
5
- "keywords": ["database", "nosql", "embedded", "document", "mongodb", "sqlite"],
5
+ "keywords": [
6
+ "database",
7
+ "nosql",
8
+ "embedded",
9
+ "document",
10
+ "mongodb",
11
+ "sqlite"
12
+ ],
6
13
  "license": "Apache-2.0",
7
14
  "repository": {
8
15
  "type": "git",
9
- "url": "https://github.com/Titor-Z/nosqlite"
16
+ "url": "git+https://github.com/Titor-Z/nosqlite.git"
10
17
  },
11
18
  "homepage": "https://titor-z.github.io/nosqlite/",
12
19
  "type": "module",
13
- "main": "./dist/index.cjs",
20
+ "main": "./dist/index.js",
14
21
  "module": "./dist/index.js",
15
22
  "types": "./dist/index.d.ts",
16
23
  "exports": {
17
24
  ".": {
18
25
  "types": "./dist/index.d.ts",
19
26
  "import": "./dist/index.js",
20
- "require": "./dist/index.cjs"
27
+ "default": "./dist/index.js"
21
28
  }
22
29
  },
23
- "files": ["dist", "prebuilds", "README.md", "LICENSE"],
30
+ "files": [
31
+ "dist",
32
+ "prebuilds",
33
+ "README.md",
34
+ "LICENSE"
35
+ ],
24
36
  "engines": {
25
37
  "node": ">=18"
26
38
  },
Binary file
Binary file