@zip.js/zip.js 2.8.52 → 2.8.54

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.
Files changed (49) hide show
  1. package/README.md +1 -1
  2. package/deno.json +2 -1
  3. package/dist/zip-core-external.js +839 -528
  4. package/dist/zip-core-external.min.js +1 -1
  5. package/dist/zip-core.js +847 -527
  6. package/dist/zip-core.min.js +1 -1
  7. package/dist/zip-fs-core-external.js +880 -557
  8. package/dist/zip-fs-core-external.min.js +1 -1
  9. package/dist/zip-fs-core.js +829 -538
  10. package/dist/zip-fs-core.min.js +1 -1
  11. package/dist/zip-fs-external.js +880 -557
  12. package/dist/zip-fs-external.min.js +1 -1
  13. package/dist/zip-fs-native.js +895 -558
  14. package/dist/zip-fs-native.min.js +1 -1
  15. package/dist/zip-fs.js +894 -557
  16. package/dist/zip-fs.min.js +1 -1
  17. package/dist/zip-legacy.js +849 -529
  18. package/dist/zip-legacy.min.js +1 -1
  19. package/dist/zip-native.js +849 -529
  20. package/dist/zip-native.min.js +1 -1
  21. package/dist/zip-web-worker-native.js +1 -1
  22. package/dist/zip-web-worker.js +1 -1
  23. package/dist/zip.js +848 -528
  24. package/dist/zip.min.js +1 -1
  25. package/eslint.config.mjs +2 -1
  26. package/index-native.cjs +895 -558
  27. package/index-native.min.js +1 -1
  28. package/index.cjs +894 -557
  29. package/index.d.cts +672 -78
  30. package/index.d.ts +672 -78
  31. package/index.min.js +1 -1
  32. package/lib/core/codec-worker-web.js +13 -4
  33. package/lib/core/configuration.js +62 -21
  34. package/lib/core/constants.js +16 -1
  35. package/lib/core/io.js +44 -29
  36. package/lib/core/options.js +46 -2
  37. package/lib/core/streams/aes-crypto-stream.js +12 -12
  38. package/lib/core/util/decode-text.js +11 -2
  39. package/lib/core/web-worker-base.js +3 -2
  40. package/lib/core/web-worker-inline-native.js +1 -1
  41. package/lib/core/web-worker-inline-wasm.js +1 -1
  42. package/lib/core/zip-entry.js +8 -0
  43. package/lib/core/zip-fs.js +38 -27
  44. package/lib/core/zip-reader.js +149 -60
  45. package/lib/core/zip-writer.js +329 -189
  46. package/lib/zip-core-base.js +6 -1
  47. package/lib/zip-core-reader.js +1 -0
  48. package/lib/zip-core-writer.js +5 -0
  49. package/package.json +11 -3
@@ -56,12 +56,17 @@ export {
56
56
  ERR_ITERATOR_COMPLETED_TOO_SOON,
57
57
  ERR_WRITER_NOT_INITIALIZED
58
58
  } from "./core/io.js";
59
+ export {
60
+ ERR_INVALID_FUNCTION_OPTION,
61
+ ERR_INVALID_SIGNAL
62
+ } from "./core/options.js";
59
63
  export {
60
64
  getMimeType
61
65
  } from "./core/util/default-mime-type.js";
62
66
  export {
63
67
  configure,
64
- resetConfiguration
68
+ resetConfiguration,
69
+ ERR_INVALID_MAX_WORKERS
65
70
  } from "./core/configuration.js";
66
71
  export {
67
72
  registerCodec,
@@ -48,6 +48,7 @@ export {
48
48
  ERR_INVALID_COMPRESSED_DATA,
49
49
  ERR_SPLIT_ZIP_FILE,
50
50
  ERR_OVERLAPPING_ENTRY,
51
+ ERR_ENTRY_DATA_OUT_OF_BOUNDS,
51
52
  ERR_AMBIGUOUS_ARCHIVE,
52
53
  ERR_ENCRYPTED_CENTRAL_DIRECTORY,
53
54
  ERR_UNSAFE_FILENAME,
@@ -33,10 +33,15 @@ export {
33
33
  ZipWriterStream,
34
34
  ERR_DUPLICATED_NAME,
35
35
  ERR_INVALID_COMMENT,
36
+ ERR_INVALID_COMMENT_TYPE,
36
37
  ERR_INVALID_ENTRY_NAME,
37
38
  ERR_INVALID_ENTRY_COMMENT,
39
+ ERR_INVALID_ENTRY_COMMENT_TYPE,
40
+ ERR_INVALID_DATE,
38
41
  ERR_INVALID_VERSION,
42
+ ERR_INVALID_EXTRAFIELD,
39
43
  ERR_INVALID_EXTRAFIELD_TYPE,
44
+ ERR_INVALID_EXTRAFIELD_DATA_TYPE,
40
45
  ERR_INVALID_EXTRAFIELD_DATA,
41
46
  ERR_INVALID_ENCRYPTION_STRENGTH,
42
47
  ERR_UNSUPPORTED_ENCRYPTION_USDZ,
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "A JavaScript library to zip and unzip files in the browser, Deno and Node.js",
4
4
  "author": "Gildas Lormeau",
5
5
  "license": "BSD-3-Clause",
6
- "version": "2.8.52",
6
+ "version": "2.8.54",
7
7
  "type": "module",
8
8
  "keywords": [
9
9
  "zip",
@@ -34,8 +34,13 @@
34
34
  "bun": ">=0.7.0"
35
35
  },
36
36
  "scripts": {
37
+ "version": "node ./sync-deno-version.js && git add deno.json",
38
+ "bump-patch": "npm version patch --no-git-tag-version && npm run bump-commit",
39
+ "bump-minor": "npm version minor --no-git-tag-version && npm run bump-commit",
40
+ "bump-major": "npm version major --no-git-tag-version && npm run bump-commit",
41
+ "bump-commit": "git commit -m \"bump up version\" package.json package-lock.json deno.json",
37
42
  "lint": "npx eslint . && deno lint",
38
- "test": "npm run test-node && npm run test-deno && npm run test-bun && npm run test-node-dist && npm run test-deno-dist && npm run test-bun-dist && npm run test-web-streams-polyfill && npm run test-types",
43
+ "test": "npm run test-node && npm run test-deno && npm run test-bun && npm run test-node-dist && npm run test-deno-dist && npm run test-bun-dist && npm run test-web-streams-polyfill && npm run test-types && npm run test-api-symmetry && npm run test-api-shape && npm run test-api-mangling",
39
44
  "test-browsers": "npm run test-chrome && npm run test-firefox && npm run test-safari",
40
45
  "serve-tests": "http-server -p 8888 -c-1 .",
41
46
  "test-all": "npm run lint && npm run test && npm run test-browsers",
@@ -46,11 +51,14 @@
46
51
  "test-deno": "cd ./tests && deno test --allow-read ./deno-runner.js",
47
52
  "test-web-streams-polyfill": "cd ./tests && deno run --allow-read ./web-streams-polyfill-runner.js",
48
53
  "test-node": "cd ./tests && node ./node-runner.js",
49
- "test-bun": "cd ./tests && bun test ./bun-runner.js --timeout 30000",
54
+ "test-bun": "cd ./tests && bun test ./bun-runner.js",
50
55
  "test-deno-dist": "./tests/dist-runner.sh deno",
51
56
  "test-node-dist": "./tests/dist-runner.sh node",
52
57
  "test-bun-dist": "./tests/dist-runner.sh bun",
53
58
  "test-types": "tsc -p ./tests/types/tsconfig.json",
59
+ "test-api-symmetry": "node ./tests/api-symmetry/audit.js",
60
+ "test-api-shape": "node ./tests/api-symmetry/shape.js",
61
+ "test-api-mangling": "node ./tests/api-symmetry/mangling.js",
54
62
  "test-firefox": "node ./tests/browser-runner.js firefox",
55
63
  "test-chrome": "node ./tests/browser-runner.js chrome",
56
64
  "test-safari": "node ./tests/browser-runner.js safari"