@kollors/deep-json-server 1.0.0-rc.8 → 1.0.0-rc.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/CHANGELOG.md +5 -0
- package/MIGRATION.md +4 -4
- package/MIGRATION.ru.md +4 -4
- package/README.md +1 -1
- package/README.ru.md +1 -1
- package/dist/package.json +4 -3
- package/package.json +4 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.0.0-rc.9
|
|
4
|
+
|
|
5
|
+
- Update vulnerable Fastify, fast-uri and brace-expansion versions within compatible ranges.
|
|
6
|
+
- Check runtime dependencies with npm audit before the full verification and publication pipeline. RC9 includes all RC8 storage, auth, query and cross-platform fixes.
|
|
7
|
+
|
|
3
8
|
## 1.0.0-rc.8
|
|
4
9
|
|
|
5
10
|
- Persist hashed auth sessions with users in file storage so valid tokens survive restarts, with atomic logout and password-change revocation.
|
package/MIGRATION.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
# Migrating from 0.9.0 to 1.0.0-rc.
|
|
1
|
+
# Migrating from 0.9.0 to 1.0.0-rc.9
|
|
2
2
|
|
|
3
3
|
[Русский](MIGRATION.ru.md) · [Current README](README.md)
|
|
4
4
|
|
|
5
|
-
This guide compares `v0.9.0` with `1.0.0-rc.
|
|
5
|
+
This guide compares `v0.9.0` with `1.0.0-rc.9` and also covers the relation changes since RC6. Update configuration and clients together. Node.js 22 or newer is still required. Back up the database, config, schema, uploaded files and metadata before migrating.
|
|
6
6
|
|
|
7
7
|
## 1. Choose whether you need a schema
|
|
8
8
|
|
|
@@ -14,7 +14,7 @@ export default { database: { path: './database.json' } };
|
|
|
14
14
|
```
|
|
15
15
|
|
|
16
16
|
```js
|
|
17
|
-
// 1.0.0-rc.
|
|
17
|
+
// 1.0.0-rc.9
|
|
18
18
|
export default { storage: 'file', database: { source: './database.json' } };
|
|
19
19
|
```
|
|
20
20
|
|
|
@@ -22,7 +22,7 @@ This keeps schemaless REST and relations inferred from stored `...Id` / `...Ids`
|
|
|
22
22
|
|
|
23
23
|
## 2. Convert configuration
|
|
24
24
|
|
|
25
|
-
| 0.9.0 | 1.0.0-rc.
|
|
25
|
+
| 0.9.0 | 1.0.0-rc.9 |
|
|
26
26
|
|---|---|
|
|
27
27
|
| `database.path` | `storage: 'file'` and `database.source` |
|
|
28
28
|
| `database.data` | `storage: 'memory'` and `database.source` |
|
package/MIGRATION.ru.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
# Переход с 0.9.0 на 1.0.0-rc.
|
|
1
|
+
# Переход с 0.9.0 на 1.0.0-rc.9
|
|
2
2
|
|
|
3
3
|
[English](MIGRATION.md) · [Актуальный README](README.ru.md)
|
|
4
4
|
|
|
5
|
-
Руководство сравнивает релиз `v0.9.0` с `1.0.0-rc.
|
|
5
|
+
Руководство сравнивает релиз `v0.9.0` с `1.0.0-rc.9` и также описывает изменения связей после RC6. Конфигурацию и клиентов нужно обновлять вместе. Требование Node.js 22 или новее сохраняется. Перед переходом скопируйте базу, конфигурацию, схему, загруженные файлы и их метаданные.
|
|
6
6
|
|
|
7
7
|
## 1. Выберите режим со схемой или без неё
|
|
8
8
|
|
|
@@ -14,7 +14,7 @@ export default { database: { path: './database.json' } };
|
|
|
14
14
|
```
|
|
15
15
|
|
|
16
16
|
```js
|
|
17
|
-
// 1.0.0-rc.
|
|
17
|
+
// 1.0.0-rc.9
|
|
18
18
|
export default { storage: 'file', database: { source: './database.json' } };
|
|
19
19
|
```
|
|
20
20
|
|
|
@@ -22,7 +22,7 @@ REST без схемы и связи по именам хранимых поле
|
|
|
22
22
|
|
|
23
23
|
## 2. Обновите конфигурацию
|
|
24
24
|
|
|
25
|
-
| В 0.9.0 | В 1.0.0-rc.
|
|
25
|
+
| В 0.9.0 | В 1.0.0-rc.9 |
|
|
26
26
|
|---|---|
|
|
27
27
|
| `database.path` | `storage: 'file'` и `database.source` |
|
|
28
28
|
| `database.data` | `storage: 'memory'` и `database.source` |
|
package/README.md
CHANGED
|
@@ -14,7 +14,7 @@ A JSON mock server with REST, GraphQL, related records, file uploads and schema
|
|
|
14
14
|
npm install @kollors/deep-json-server@rc
|
|
15
15
|
```
|
|
16
16
|
|
|
17
|
-
To install this release candidate, use `@1.0.0-rc.
|
|
17
|
+
To install this release candidate, use `@1.0.0-rc.9`.
|
|
18
18
|
|
|
19
19
|
## Quick start
|
|
20
20
|
|
package/README.ru.md
CHANGED
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kollors/deep-json-server",
|
|
3
|
-
"version": "1.0.0-rc.
|
|
3
|
+
"version": "1.0.0-rc.9",
|
|
4
4
|
"description": "JSON mock server with schema-driven REST, GraphQL, OpenAPI generation and file uploads",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -41,6 +41,7 @@
|
|
|
41
41
|
"examples"
|
|
42
42
|
],
|
|
43
43
|
"scripts": {
|
|
44
|
+
"audit": "npm audit --omit=dev",
|
|
44
45
|
"build": "node scripts/clean-dist.js && tsc && node scripts/prepare-dist.js",
|
|
45
46
|
"lint": "biome check . --error-on-warnings",
|
|
46
47
|
"lint:fix": "biome check --write .",
|
|
@@ -50,7 +51,7 @@
|
|
|
50
51
|
"test": "npm run build && node --test",
|
|
51
52
|
"test:coverage": "npm run build && node scripts/run-coverage.js",
|
|
52
53
|
"typecheck": "tsc --noEmit && tsc -p tsconfig.type-tests.json",
|
|
53
|
-
"verify": "npm run typecheck && npm run lint && npm run test:coverage && npm run pack:check"
|
|
54
|
+
"verify": "npm run audit && npm run typecheck && npm run lint && npm run test:coverage && npm run pack:check"
|
|
54
55
|
},
|
|
55
56
|
"engines": {
|
|
56
57
|
"node": ">=22"
|
|
@@ -58,7 +59,7 @@
|
|
|
58
59
|
"dependencies": {
|
|
59
60
|
"ajv": "^8.20.0",
|
|
60
61
|
"ajv-formats": "^3.0.1",
|
|
61
|
-
"fastify": "^5.12.
|
|
62
|
+
"fastify": "^5.12.5",
|
|
62
63
|
"fs-native-extensions": "^1.5.1",
|
|
63
64
|
"graphql": "^16.14.2",
|
|
64
65
|
"lowdb": "^7.0.1",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kollors/deep-json-server",
|
|
3
|
-
"version": "1.0.0-rc.
|
|
3
|
+
"version": "1.0.0-rc.9",
|
|
4
4
|
"description": "JSON mock server with schema-driven REST, GraphQL, OpenAPI generation and file uploads",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -41,6 +41,7 @@
|
|
|
41
41
|
"examples"
|
|
42
42
|
],
|
|
43
43
|
"scripts": {
|
|
44
|
+
"audit": "npm audit --omit=dev",
|
|
44
45
|
"build": "node scripts/clean-dist.js && tsc && node scripts/prepare-dist.js",
|
|
45
46
|
"lint": "biome check . --error-on-warnings",
|
|
46
47
|
"lint:fix": "biome check --write .",
|
|
@@ -50,7 +51,7 @@
|
|
|
50
51
|
"test": "npm run build && node --test",
|
|
51
52
|
"test:coverage": "npm run build && node scripts/run-coverage.js",
|
|
52
53
|
"typecheck": "tsc --noEmit && tsc -p tsconfig.type-tests.json",
|
|
53
|
-
"verify": "npm run typecheck && npm run lint && npm run test:coverage && npm run pack:check"
|
|
54
|
+
"verify": "npm run audit && npm run typecheck && npm run lint && npm run test:coverage && npm run pack:check"
|
|
54
55
|
},
|
|
55
56
|
"engines": {
|
|
56
57
|
"node": ">=22"
|
|
@@ -58,7 +59,7 @@
|
|
|
58
59
|
"dependencies": {
|
|
59
60
|
"ajv": "^8.20.0",
|
|
60
61
|
"ajv-formats": "^3.0.1",
|
|
61
|
-
"fastify": "^5.12.
|
|
62
|
+
"fastify": "^5.12.5",
|
|
62
63
|
"fs-native-extensions": "^1.5.1",
|
|
63
64
|
"graphql": "^16.14.2",
|
|
64
65
|
"lowdb": "^7.0.1",
|