@zip.js/zip.js 2.8.53 → 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 (47) hide show
  1. package/README.md +1 -1
  2. package/deno.json +2 -1
  3. package/dist/zip-core-external.js +691 -482
  4. package/dist/zip-core-external.min.js +1 -1
  5. package/dist/zip-core.js +698 -481
  6. package/dist/zip-core.min.js +1 -1
  7. package/dist/zip-fs-core-external.js +729 -511
  8. package/dist/zip-fs-core-external.min.js +1 -1
  9. package/dist/zip-fs-core.js +691 -496
  10. package/dist/zip-fs-core.min.js +1 -1
  11. package/dist/zip-fs-external.js +729 -511
  12. package/dist/zip-fs-external.min.js +1 -1
  13. package/dist/zip-fs-native.js +743 -512
  14. package/dist/zip-fs-native.min.js +1 -1
  15. package/dist/zip-fs.js +742 -511
  16. package/dist/zip-fs.min.js +1 -1
  17. package/dist/zip-legacy.js +700 -483
  18. package/dist/zip-legacy.min.js +1 -1
  19. package/dist/zip-native.js +700 -483
  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 +699 -482
  24. package/dist/zip.min.js +1 -1
  25. package/eslint.config.mjs +1 -0
  26. package/index-native.cjs +743 -512
  27. package/index-native.min.js +1 -1
  28. package/index.cjs +742 -511
  29. package/index.d.cts +398 -42
  30. package/index.d.ts +398 -42
  31. package/index.min.js +1 -1
  32. package/lib/core/configuration.js +62 -21
  33. package/lib/core/constants.js +11 -1
  34. package/lib/core/io.js +33 -27
  35. package/lib/core/options.js +44 -2
  36. package/lib/core/streams/aes-crypto-stream.js +12 -12
  37. package/lib/core/util/decode-text.js +11 -2
  38. package/lib/core/web-worker-base.js +3 -2
  39. package/lib/core/web-worker-inline-native.js +1 -1
  40. package/lib/core/web-worker-inline-wasm.js +1 -1
  41. package/lib/core/zip-fs.js +38 -27
  42. package/lib/core/zip-reader.js +58 -26
  43. package/lib/core/zip-writer.js +293 -177
  44. package/lib/zip-core-base.js +6 -1
  45. package/lib/zip-core-reader.js +1 -0
  46. package/lib/zip-core-writer.js +4 -0
  47. package/package.json +8 -2
@@ -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,
@@ -36,8 +36,12 @@ export {
36
36
  ERR_INVALID_COMMENT_TYPE,
37
37
  ERR_INVALID_ENTRY_NAME,
38
38
  ERR_INVALID_ENTRY_COMMENT,
39
+ ERR_INVALID_ENTRY_COMMENT_TYPE,
40
+ ERR_INVALID_DATE,
39
41
  ERR_INVALID_VERSION,
42
+ ERR_INVALID_EXTRAFIELD,
40
43
  ERR_INVALID_EXTRAFIELD_TYPE,
44
+ ERR_INVALID_EXTRAFIELD_DATA_TYPE,
41
45
  ERR_INVALID_EXTRAFIELD_DATA,
42
46
  ERR_INVALID_ENCRYPTION_STRENGTH,
43
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.53",
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 && npm run test-api-symmetry && npm run test-api-shape",
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",
@@ -53,6 +58,7 @@
53
58
  "test-types": "tsc -p ./tests/types/tsconfig.json",
54
59
  "test-api-symmetry": "node ./tests/api-symmetry/audit.js",
55
60
  "test-api-shape": "node ./tests/api-symmetry/shape.js",
61
+ "test-api-mangling": "node ./tests/api-symmetry/mangling.js",
56
62
  "test-firefox": "node ./tests/browser-runner.js firefox",
57
63
  "test-chrome": "node ./tests/browser-runner.js chrome",
58
64
  "test-safari": "node ./tests/browser-runner.js safari"