Skip to content

Commit 66aaf8a

Browse files
committed
fix: update dependencies
1 parent 213e495 commit 66aaf8a

11 files changed

+441
-306
lines changed

.eslintrc.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"extends": "eslint-config-atomic",
3-
"ignorePatterns": ["dist/", "node_modules/"]
3+
"ignorePatterns": ["dist/", "node_modules/", "despacer/", "test/fixtures/*/*-minified.json"]
44
}

.prettierignore

+1
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ CHANGELOG.md
55
dist
66
test/fixtures/*-minified.json
77
dub.selections.json
8+
/despacer/

Readme.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -111,18 +111,22 @@ Benchmark minifyFiles
111111
### Contributing
112112

113113
You would need to install the ldc compiler for the D programming language
114+
114115
```
115116
curl -fsS https://dlang.org/install.sh | bash -s ldc
116117
```
117-
After installation, it will print a message about activating it. Something like `source activate_ldc.sh`.
118+
119+
After installation, it will print a message about activating it. Something like `source activate_ldc.sh`.
118120

119121
After running the activation command, clone the repository:
122+
120123
```
121124
git clone --recurse-submodules https://github.com/aminya/minijson
122125
cd minijson
123126
```
124127

125128
Then build with:
129+
126130
```
127131
pnpm install
128132
pnpm build.node

benchmark/js-benchmark.mjs

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ console.log("Benchmark minifyString")
1212
const filesContents = await Promise.all(
1313
standardFiles.map(async (jsonFile) => {
1414
return readFile(jsonFile, "utf8")
15-
})
15+
}),
1616
)
1717

1818
const t11 = performance.now()
@@ -33,7 +33,7 @@ await Promise.all(
3333
const jsonString = await readFile(jsonFile, "utf8")
3434
const data = await jsonMinify(jsonString)
3535
return await writeFile(jsonFile, data)
36-
})
36+
}),
3737
)
3838

3939
const t2 = performance.now()

package.json

+35-39
Original file line numberDiff line numberDiff line change
@@ -1,65 +1,56 @@
11
{
22
"name": "@aminya/minijson",
3-
"author": "Amin Yahyaabdi",
43
"version": "0.6.2",
54
"description": "Minify JSON files blazing fast! Supports Comments. Uses D, C, and AVX2 and SSE4_1 SIMD",
65
"homepage": "https://github.com/aminya/minijson",
76
"license": "MIT",
7+
"author": "Amin Yahyaabdi",
8+
"main": "./dist/lib.js",
9+
"browser": "./dist/index.html",
10+
"bin": "./dist/cli.js",
811
"files": [
912
"dist/**/*"
1013
],
11-
"main": "./dist/lib.js",
12-
"bin": "./dist/cli.js",
13-
"browser": "./dist/index.html",
1414
"scripts": {
15-
"format": "prettier --write . && npm run format.d",
16-
"format.d": "dub run --build=release --quiet dfmt -- --soft_max_line_length 110 --indent_size 2 --inplace ./src ./benchmark",
17-
"test.format": "prettier . --check",
18-
"lint": "eslint . --fix",
19-
"test.lint": "eslint .",
20-
"test": "jasmine ./test/index-test.mjs",
21-
"clean": "shx rm -rf ./dist ./src/native/despacer/build/",
2215
"build": "dub build --config=executable",
23-
"build.release": "pnpm build -- --build release-nobounds --compiler=ldc2",
24-
"build.profile": "pnpm build -- --build profile --compiler=ldc2 && node ./src/node/build.js && npm run build.node.js",
2516
"build.benchmark": "dub build --config=benchmark --build release-nobounds --compiler=ldc2",
26-
"start.profile": "shx rm -rf ./trace.* && npm run start.benchmark.node && profdump.exe --dot trace.log trace.dot && dot -Tsvg trace.dot -o trace.svg && ./trace.svg",
17+
"build.browser": "npm run build.wasm && parcel build --target browser ./src/browser/index.html",
2718
"build.node": "npm run build.release && node ./src/node/build.js && npm run build.node.js",
2819
"build.node.js": "tsc -p ./src/node/tsconfig.json",
20+
"build.profile": "pnpm build -- --build profile --compiler=ldc2 && node ./src/node/build.js && npm run build.node.js",
21+
"build.release": "pnpm build -- --build release-nobounds --compiler=ldc2",
2922
"build.wasm": "ldc2 ./src/wasm/wasm.d ./src/native/lib.d --od ./dist --O3 --mtriple=wasm32-unknown-unknown-wasm",
30-
"build.browser": "npm run build.wasm && parcel build --target browser ./src/browser/index.html",
31-
"start.browser": "servor ./dist/ --browse --reload",
23+
"clean": "shx rm -rf ./dist ./despacer/build/ ./test/fixtures/*/*-minified.json",
24+
"format": "prettier -l --cache --write . && npm run format.d",
25+
"format.d": "dub run --build=release --quiet dfmt -- --soft_max_line_length 110 --indent_size 2 --inplace ./src ./benchmark",
26+
"lint": "eslint . --fix",
27+
"prepublishOnly": "shx rm -rf ./dist/tsconfig.tsbuildinfo ./dist/build.*",
3228
"start.benchmark.node": "node ./benchmark/native-benchmark.mjs",
29+
"start.browser": "servor ./dist/ --browse --reload",
3330
"start.node": "node ./dist/node/cli.js",
34-
"zip": "zip -9 -j ./dist/minijson-windows-x64.zip ./dist/win32-x64/minijson.exe && zip -9 -j ./dist/minijson-macos-x64.zip ./dist/darwin-x64/minijson && zip -9 -j ./dist/minijson-linux-x64.zip ./dist/linux-x64/minijson",
35-
"prepublishOnly": "shx rm -rf ./dist/tsconfig.tsbuildinfo ./dist/build.*"
31+
"start.profile": "shx rm -rf ./trace.* && npm run start.benchmark.node && profdump.exe --dot trace.log trace.dot && dot -Tsvg trace.dot -o trace.svg && ./trace.svg",
32+
"test": "jasmine ./test/index-test.mjs",
33+
"test.format": "prettier -l --cache . --check",
34+
"test.lint": "eslint .",
35+
"zip": "zip -9 -j ./dist/minijson-windows-x64.zip ./dist/win32-x64/minijson.exe && zip -9 -j ./dist/minijson-macos-x64.zip ./dist/darwin-x64/minijson && zip -9 -j ./dist/minijson-linux-x64.zip ./dist/linux-x64/minijson"
3636
},
37+
"prettier": "prettier-config-atomic",
3738
"dependencies": {
3839
"jsonminify": "^0.4.2"
3940
},
4041
"devDependencies": {
41-
"@types/jasmine": "^3.10.2",
42-
"@types/node": "17.0.5",
43-
"eslint-config-atomic": "^1.16.5",
44-
"jasmine": "^3.10.0",
42+
"@types/jasmine": "^5.1.4",
43+
"@types/node": "22.5.4",
44+
"eslint-config-atomic": "^1.22.1",
45+
"jasmine": "^5.2.0",
4546
"jasmine-spec-reporter": "^7.0.0",
4647
"mjs-dirname": "^1.0.0",
47-
"parcel": "^2.0.1",
48-
"prettier-config-atomic": "^3.0.1",
48+
"parcel": "^2.12.0",
49+
"prettier-config-atomic": "^4.0.0",
4950
"servor": "^4.0.2",
50-
"shx": "0.3.3",
51-
"strip-json-comments": "^4.0.0"
52-
},
53-
"targets": {
54-
"browser": {
55-
"context": "browser",
56-
"engines": {
57-
"browsers": "Chrome 76"
58-
},
59-
"includeNodeModules": true
60-
}
51+
"shx": "0.3.4",
52+
"strip-json-comments": "^5.0.1"
6153
},
62-
"prettier": "prettier-config-atomic",
6354
"keywords": [
6455
"json",
6556
"minify",
@@ -79,7 +70,6 @@
7970
"strip",
8071
"trim",
8172
"parse",
82-
"jsonc",
8373
"json5",
8474
"js",
8575
"build",
@@ -101,5 +91,11 @@
10191
"avx2",
10292
"rust",
10393
"bandwith"
104-
]
105-
}
94+
],
95+
"targets": {
96+
"browser": {
97+
"context": "browser",
98+
"includeNodeModules": true
99+
}
100+
}
101+
}

0 commit comments

Comments
 (0)