@rljson/io 0.0.7 → 0.0.8

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.
@@ -1,244 +1,32 @@
1
1
  <!--
2
- // @license
3
- // Copyright (c) 2025 Rljson
4
- //
5
- // Use of this source code is governed by terms that can be
6
- // found in the LICENSE file in the root of this package.
2
+ @license
3
+ Copyright (c) 2025 Rljson
4
+
5
+ Use of this source code is governed by terms that can be
6
+ found in the LICENSE file in the root of this package.
7
7
  -->
8
8
 
9
9
  # Contributors Guide
10
10
 
11
- - [Install](#install)
12
- - [Check out](#check-out)
13
- - [Install pnpm](#install-pnpm)
14
- - [Install dependencies](#install-dependencies)
15
- - [Install Vscode extensions](#install-vscode-extensions)
16
- - [Uninstall Jest and Jasmine](#uninstall-jest-and-jasmine)
17
- - [Install GitHub CLI](#install-github-cli)
11
+ - [Prepare](#prepare)
18
12
  - [Develop](#develop)
19
- - [Read architecture doc](#read-architecture-doc)
20
- - [Debug](#debug)
21
- - [Update goldens](#update-goldens)
22
- - [Test and Build](#test-and-build)
23
- - [Workflow](#workflow)
24
- - [Checkout main](#checkout-main)
25
- - [Create a branch](#create-a-branch)
26
- - [Commit](#commit)
27
- - [Update dependencies](#update-dependencies)
28
- - [Increase version](#increase-version)
29
- - [Create a pull request](#create-a-pull-request)
30
- - [Wait until PR is merged](#wait-until-pr-is-merged)
31
- - [Delete feature branch](#delete-feature-branch)
32
- - [Publish to NPM](#publish-to-npm)
33
- - [Troubleshooting](#troubleshooting)
34
- - [Checkout README.trouble.md](#checkout-readmetroublemd)
35
- - [File issues on GitHub](#file-issues-on-github)
36
-
37
- <!-- ........................................................................-->
38
-
39
- ## Install
40
-
41
- ### Check out
42
-
43
- ```bash
44
- mkdir io
45
- cd io
46
- git clone https://github.com/rljson/io.git
47
- cd db
48
- ```
49
-
50
- ### Install pnpm
51
-
52
- Windows:
53
-
54
- ```bash
55
- corepack enable pnpm
56
- ```
57
-
58
- Mac:
59
-
60
- ```bash
61
- sudo corepack enable pnpm
62
- ```
63
-
64
- ### Install dependencies
65
-
66
- ```bash
67
- pnpm install
68
- ```
69
-
70
- ### Install Vscode extensions
71
-
72
- Open this project in `vscode`.
73
-
74
- Press `Cmd+Shift+P`.
75
-
76
- Type `Extensions: Show Recommended Extensions` and press `Enter`.
77
-
78
- The recommended extensions will be shown.
13
+ - [Tools](#tools)
14
+ - [Superheros](#superheros)
79
15
 
80
- Make sure, all recommended extensions are shown.
16
+ ## Prepare
81
17
 
82
- ### Uninstall Jest and Jasmine
83
-
84
- Jest or Jasmine extensions conflict with the `Vitest` extension used for this
85
- project.
86
-
87
- Uninstall them, if you have installed them.
88
-
89
- ### Install GitHub CLI
90
-
91
- Install GitHub CLI on Mac
92
-
93
- ```bash
94
- brew install gh
95
- ```
96
-
97
- Login
98
-
99
- ```bash
100
- gh auth login
101
- ```
18
+ Read [prepare.md](doc/workflows/prepare.md)
102
19
 
103
20
  <!-- ........................................................................-->
104
21
 
105
22
  ## Develop
106
23
 
107
- ### Read architecture doc
108
-
109
- Read [README.architecture.md](./README.architecture.md) to get an overview
110
- of the package's architecture.
111
-
112
- ### Debug
113
-
114
- In Vscode: At the `left side bar` click on the `Test tube` icon to open the `Test explorer`.
115
-
116
- At the `top`, click on the `refresh` icon to show update the tests.
117
-
118
- Open a test file (`*.spec.ts`)
119
-
120
- Set a breakpoint.
121
-
122
- Press `alt` and click on the play button left beside the test.
123
-
124
- Execution should stop at the breakpoint.
125
-
126
- ### Update goldens
127
-
128
- In various tests we are creating golden files, that are reference files that
129
- are compared against the files created in the tests.
130
-
131
- ```bash
132
- pnpm updateGoldens
133
- ```
134
-
135
- ### Test and Build
136
-
137
- ```bash
138
- pnpm test &&\
139
- pnpm build
140
- ```
141
-
142
- <!-- ........................................................................-->
143
-
144
- ## Workflow
145
-
146
- ### Checkout main
147
-
148
- ```bash
149
- git checkout main && \
150
- git fetch && \
151
- git pull
152
- ```
153
-
154
- ### Create a branch
155
-
156
- Please replace `Commit Message` in the next command by your commit message.
157
- It will also used for branch name and pull request
158
-
159
- ```bash
160
- export MESSAGE="Update README.contributors.m" && \
161
- export BRANCH=`echo "$MESSAGE" | tr '[:upper:]' '[:lower:]' | sed 's/[^a-z0-9_]/_/g'` &&\
162
- git checkout -b $BRANCH
163
- ```
164
-
165
- ### Commit
166
-
167
- Develop your feature
168
-
169
- Commit your changes
170
-
171
- If you only have one thing, execute
172
-
173
- ```bash
174
- git add . && git commit -m "$MESSAGE"
175
- ```
176
-
177
- ### Update dependencies
178
-
179
- We aim to work with the latest versions of our dependencies.
180
-
181
- ```bash
182
- pnpm update --latest &&\
183
- git commit -m"Update dependencies"
184
- ```
185
-
186
- ### Increase version
187
-
188
- ```bash
189
- pnpm version patch --no-git-tag-version && \
190
- git commit -am"Increase version"
191
- ```
192
-
193
- ### Create a pull request
194
-
195
- ```bash
196
- git push -u origin $BRANCH && \
197
- gh pr create --base main --title "$MESSAGE" --body "" && \
198
- gh pr merge --auto --squash
199
- ```
200
-
201
- ### Wait until PR is merged
202
-
203
- Get the PR URL with the following command
204
-
205
- ```bash
206
- echo -e "\033[34m$(gh pr view --json url | jq -r '.url')\033[0m"
207
- echo "Wait until PR is closed ..." && \
208
- until gh pr view --json closed | jq -e '.closed == true' >/dev/null; do
209
- sleep 2 >/dev/null;
210
- done;
211
- ```
212
-
213
- ### Delete feature branch
214
-
215
- ```bash
216
- git fetch && git checkout main && \
217
- git reset --soft origin/main && \
218
- git stash -m"PR Aftermath" && \
219
- git pull && \
220
- git branch -d $BRANCH
221
- ```
222
-
223
- ### Publish to NPM
224
-
225
- ```bash
226
- npm publish --access public && \
227
- git tag $(npm pkg get version | tr -d '\\"')
228
- ```
229
-
230
- <!-- ........................................................................-->
231
-
232
- ## Troubleshooting
233
-
234
- ### Checkout README.trouble.md
235
-
236
- Checkout [./README.trouble.md](./README.trouble.md)
24
+ Read [develop.md](doc/workflows/develop.md)
237
25
 
238
- ### File issues on GitHub
26
+ ## Tools
239
27
 
240
- Visit <https://github.com/rljson/io/issues>
28
+ Read [tools.md](doc/workflows/tools.md)
241
29
 
242
- Check if there is already an issue for your problem.
30
+ ## Superheros
243
31
 
244
- If no, report the issue.
32
+ Read [super-hero.md](doc/workflows/super-hero.md)
@@ -1,244 +1,32 @@
1
1
  <!--
2
- // @license
3
- // Copyright (c) 2025 Rljson
4
- //
5
- // Use of this source code is governed by terms that can be
6
- // found in the LICENSE file in the root of this package.
2
+ @license
3
+ Copyright (c) 2025 Rljson
4
+
5
+ Use of this source code is governed by terms that can be
6
+ found in the LICENSE file in the root of this package.
7
7
  -->
8
8
 
9
9
  # Contributors Guide
10
10
 
11
- - [Install](#install)
12
- - [Check out](#check-out)
13
- - [Install pnpm](#install-pnpm)
14
- - [Install dependencies](#install-dependencies)
15
- - [Install Vscode extensions](#install-vscode-extensions)
16
- - [Uninstall Jest and Jasmine](#uninstall-jest-and-jasmine)
17
- - [Install GitHub CLI](#install-github-cli)
11
+ - [Prepare](#prepare)
18
12
  - [Develop](#develop)
19
- - [Read architecture doc](#read-architecture-doc)
20
- - [Debug](#debug)
21
- - [Update goldens](#update-goldens)
22
- - [Test and Build](#test-and-build)
23
- - [Workflow](#workflow)
24
- - [Checkout main](#checkout-main)
25
- - [Create a branch](#create-a-branch)
26
- - [Commit](#commit)
27
- - [Update dependencies](#update-dependencies)
28
- - [Increase version](#increase-version)
29
- - [Create a pull request](#create-a-pull-request)
30
- - [Wait until PR is merged](#wait-until-pr-is-merged)
31
- - [Delete feature branch](#delete-feature-branch)
32
- - [Publish to NPM](#publish-to-npm)
33
- - [Troubleshooting](#troubleshooting)
34
- - [Checkout README.trouble.md](#checkout-readmetroublemd)
35
- - [File issues on GitHub](#file-issues-on-github)
36
-
37
- <!-- ........................................................................-->
38
-
39
- ## Install
40
-
41
- ### Check out
42
-
43
- ```bash
44
- mkdir io
45
- cd io
46
- git clone https://github.com/rljson/io.git
47
- cd db
48
- ```
49
-
50
- ### Install pnpm
51
-
52
- Windows:
53
-
54
- ```bash
55
- corepack enable pnpm
56
- ```
57
-
58
- Mac:
59
-
60
- ```bash
61
- sudo corepack enable pnpm
62
- ```
63
-
64
- ### Install dependencies
65
-
66
- ```bash
67
- pnpm install
68
- ```
69
-
70
- ### Install Vscode extensions
71
-
72
- Open this project in `vscode`.
73
-
74
- Press `Cmd+Shift+P`.
75
-
76
- Type `Extensions: Show Recommended Extensions` and press `Enter`.
77
-
78
- The recommended extensions will be shown.
13
+ - [Tools](#tools)
14
+ - [Superheros](#superheros)
79
15
 
80
- Make sure, all recommended extensions are shown.
16
+ ## Prepare
81
17
 
82
- ### Uninstall Jest and Jasmine
83
-
84
- Jest or Jasmine extensions conflict with the `Vitest` extension used for this
85
- project.
86
-
87
- Uninstall them, if you have installed them.
88
-
89
- ### Install GitHub CLI
90
-
91
- Install GitHub CLI on Mac
92
-
93
- ```bash
94
- brew install gh
95
- ```
96
-
97
- Login
98
-
99
- ```bash
100
- gh auth login
101
- ```
18
+ Read [prepare.md](doc/workflows/prepare.md)
102
19
 
103
20
  <!-- ........................................................................-->
104
21
 
105
22
  ## Develop
106
23
 
107
- ### Read architecture doc
108
-
109
- Read [README.architecture.md](./README.architecture.md) to get an overview
110
- of the package's architecture.
111
-
112
- ### Debug
113
-
114
- In Vscode: At the `left side bar` click on the `Test tube` icon to open the `Test explorer`.
115
-
116
- At the `top`, click on the `refresh` icon to show update the tests.
117
-
118
- Open a test file (`*.spec.ts`)
119
-
120
- Set a breakpoint.
121
-
122
- Press `alt` and click on the play button left beside the test.
123
-
124
- Execution should stop at the breakpoint.
125
-
126
- ### Update goldens
127
-
128
- In various tests we are creating golden files, that are reference files that
129
- are compared against the files created in the tests.
130
-
131
- ```bash
132
- pnpm updateGoldens
133
- ```
134
-
135
- ### Test and Build
136
-
137
- ```bash
138
- pnpm test &&\
139
- pnpm build
140
- ```
141
-
142
- <!-- ........................................................................-->
143
-
144
- ## Workflow
145
-
146
- ### Checkout main
147
-
148
- ```bash
149
- git checkout main && \
150
- git fetch && \
151
- git pull
152
- ```
153
-
154
- ### Create a branch
155
-
156
- Please replace `Commit Message` in the next command by your commit message.
157
- It will also used for branch name and pull request
158
-
159
- ```bash
160
- export MESSAGE="Update README.contributors.m" && \
161
- export BRANCH=`echo "$MESSAGE" | tr '[:upper:]' '[:lower:]' | sed 's/[^a-z0-9_]/_/g'` &&\
162
- git checkout -b $BRANCH
163
- ```
164
-
165
- ### Commit
166
-
167
- Develop your feature
168
-
169
- Commit your changes
170
-
171
- If you only have one thing, execute
172
-
173
- ```bash
174
- git add . && git commit -m "$MESSAGE"
175
- ```
176
-
177
- ### Update dependencies
178
-
179
- We aim to work with the latest versions of our dependencies.
180
-
181
- ```bash
182
- pnpm update --latest &&\
183
- git commit -m"Update dependencies"
184
- ```
185
-
186
- ### Increase version
187
-
188
- ```bash
189
- pnpm version patch --no-git-tag-version && \
190
- git commit -am"Increase version"
191
- ```
192
-
193
- ### Create a pull request
194
-
195
- ```bash
196
- git push -u origin $BRANCH && \
197
- gh pr create --base main --title "$MESSAGE" --body "" && \
198
- gh pr merge --auto --squash
199
- ```
200
-
201
- ### Wait until PR is merged
202
-
203
- Get the PR URL with the following command
204
-
205
- ```bash
206
- echo -e "\033[34m$(gh pr view --json url | jq -r '.url')\033[0m"
207
- echo "Wait until PR is closed ..." && \
208
- until gh pr view --json closed | jq -e '.closed == true' >/dev/null; do
209
- sleep 2 >/dev/null;
210
- done;
211
- ```
212
-
213
- ### Delete feature branch
214
-
215
- ```bash
216
- git fetch && git checkout main && \
217
- git reset --soft origin/main && \
218
- git stash -m"PR Aftermath" && \
219
- git pull && \
220
- git branch -d $BRANCH
221
- ```
222
-
223
- ### Publish to NPM
224
-
225
- ```bash
226
- npm publish --access public && \
227
- git tag $(npm pkg get version | tr -d '\\"')
228
- ```
229
-
230
- <!-- ........................................................................-->
231
-
232
- ## Troubleshooting
233
-
234
- ### Checkout README.trouble.md
235
-
236
- Checkout [./README.trouble.md](./README.trouble.md)
24
+ Read [develop.md](doc/workflows/develop.md)
237
25
 
238
- ### File issues on GitHub
26
+ ## Tools
239
27
 
240
- Visit <https://github.com/rljson/io/issues>
28
+ Read [tools.md](doc/workflows/tools.md)
241
29
 
242
- Check if there is already an issue for your problem.
30
+ ## Superheros
243
31
 
244
- If no, report the issue.
32
+ Read [super-hero.md](doc/workflows/super-hero.md)
package/dist/io.js CHANGED
@@ -59,10 +59,11 @@ const _IoMem = class _IoMem {
59
59
  );
60
60
  }
61
61
  } else {
62
- (_a = this._mem)[name] ?? (_a[name] = {
62
+ const table = hip({
63
63
  _data: [],
64
64
  _type: type
65
65
  });
66
+ (_a = this._mem)[name] ?? (_a[name] = table);
66
67
  }
67
68
  }
68
69
  // ...........................................................................
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rljson/io",
3
- "version": "0.0.7",
3
+ "version": "0.0.8",
4
4
  "packageManager": "pnpm@10.6.2",
5
5
  "description": "Low level interface for reading and writing RLJSON data",
6
6
  "homepage": "https://github.com/rljson/io",
@@ -29,24 +29,24 @@
29
29
  "updateGoldens": "cross-env UPDATE_GOLDENS=true npm test"
30
30
  },
31
31
  "devDependencies": {
32
- "@types/node": "^22.13.10",
33
- "@typescript-eslint/eslint-plugin": "^8.26.1",
34
- "@typescript-eslint/parser": "^8.26.1",
35
- "@vitest/coverage-v8": "^3.0.8",
32
+ "@types/node": "^22.13.11",
33
+ "@typescript-eslint/eslint-plugin": "^8.27.0",
34
+ "@typescript-eslint/parser": "^8.27.0",
35
+ "@vitest/coverage-v8": "^3.0.9",
36
36
  "cross-env": "^7.0.3",
37
37
  "eslint": "^9.22.0",
38
- "eslint-plugin-jsdoc": "^50.6.6",
38
+ "eslint-plugin-jsdoc": "^50.6.8",
39
39
  "eslint-plugin-tsdoc": "^0.4.0",
40
40
  "globals": "^16.0.0",
41
41
  "jsdoc": "^4.0.4",
42
42
  "read-pkg": "^9.0.1",
43
43
  "typescript": "~5.8.2",
44
- "typescript-eslint": "^8.26.1",
45
- "vite": "^6.2.1",
46
- "vite-node": "^3.0.8",
44
+ "typescript-eslint": "^8.27.0",
45
+ "vite": "^6.2.2",
46
+ "vite-node": "^3.0.9",
47
47
  "vite-plugin-dts": "^4.5.3",
48
48
  "vite-tsconfig-paths": "^5.1.4",
49
- "vitest": "^3.0.8",
49
+ "vitest": "^3.0.9",
50
50
  "vitest-dom": "^0.1.1"
51
51
  },
52
52
  "pnpm": {
@@ -56,9 +56,9 @@
56
56
  "overrides": {}
57
57
  },
58
58
  "dependencies": {
59
- "@rljson/hash": "^0.0.10",
60
- "@rljson/json": "^0.0.9",
61
- "@rljson/rljson": "^0.0.9",
62
- "@rljson/validate": "^0.0.6"
59
+ "@rljson/hash": "^0.0.12",
60
+ "@rljson/json": "^0.0.18",
61
+ "@rljson/rljson": "^0.0.19",
62
+ "@rljson/validate": "^0.0.8"
63
63
  }
64
64
  }