@malloydata/malloy 0.0.418 → 0.0.420

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.
@@ -23,8 +23,8 @@ exports.caseGroup = caseGroup;
23
23
  exports.mkModelID = mkModelID;
24
24
  exports.mkModelDef = mkModelDef;
25
25
  const uuid_1 = require("uuid");
26
- const sha2_js_1 = require("@noble/hashes/sha2.js");
27
- const utils_js_1 = require("@noble/hashes/utils.js");
26
+ const sha256_1 = require("@noble/hashes/sha256");
27
+ const utils_1 = require("@noble/hashes/utils");
28
28
  const malloy_types_1 = require("./malloy_types");
29
29
  /**
30
30
  * Format a typeDef as user-readable Malloy type syntax. Used in error
@@ -155,9 +155,10 @@ function makeDigest(...parts) {
155
155
  const combined = parts
156
156
  .map(p => (p === undefined ? '{undefined}' : `${p.length}:${p}`))
157
157
  .join('/');
158
- // @noble/hashes v2 dropped implicit string hashing; v1 accepted a string and
159
- // UTF-8 encoded it internally, so utf8ToBytes here yields the identical digest.
160
- return (0, utils_js_1.bytesToHex)((0, sha2_js_1.sha256)((0, utils_js_1.utf8ToBytes)(combined)));
158
+ // @noble/hashes is pinned to v1 (v2 is ESM-only see DEPENDENCY-MANAGEMENT.md).
159
+ // v1's sha256 also accepts a string directly, but we utf8-encode explicitly so the
160
+ // digest is stable and unambiguous (and identical to the v2 form we briefly used).
161
+ return (0, utils_1.bytesToHex)((0, sha256_1.sha256)((0, utils_1.utf8ToBytes)(combined)));
161
162
  }
162
163
  function joinWith(els, sep) {
163
164
  const result = [];
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const MALLOY_VERSION = "0.0.418";
1
+ export declare const MALLOY_VERSION = "0.0.420";
package/dist/version.js CHANGED
@@ -2,5 +2,5 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.MALLOY_VERSION = void 0;
4
4
  // generated with 'generate-version-file' script; do not edit manually
5
- exports.MALLOY_VERSION = '0.0.418';
5
+ exports.MALLOY_VERSION = '0.0.420';
6
6
  //# sourceMappingURL=version.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@malloydata/malloy",
3
- "version": "0.0.418",
3
+ "version": "0.0.420",
4
4
  "license": "MIT",
5
5
  "exports": {
6
6
  ".": "./dist/index.js",
@@ -51,16 +51,16 @@
51
51
  "generate-version-file": "VERSION=$(npm pkg get version --workspaces=false | tr -d \\\")\necho \"// generated with 'generate-version-file' script; do not edit manually\\nexport const MALLOY_VERSION = '$VERSION';\" > src/version.ts"
52
52
  },
53
53
  "dependencies": {
54
- "@malloydata/malloy-filter": "0.0.418",
55
- "@malloydata/malloy-interfaces": "0.0.418",
56
- "@malloydata/malloy-tag": "0.0.418",
57
- "@noble/hashes": "^2.2.0",
54
+ "@malloydata/malloy-filter": "0.0.420",
55
+ "@malloydata/malloy-interfaces": "0.0.420",
56
+ "@malloydata/malloy-tag": "0.0.420",
57
+ "@noble/hashes": "^1.8.0",
58
58
  "antlr4ts": "^0.5.0-alpha.4",
59
59
  "assert": "^2.0.0",
60
60
  "jaro-winkler": "^0.2.8",
61
61
  "lodash": "^4.18.1",
62
62
  "luxon": "^3.7.2",
63
- "uuid": "^14.0.0"
63
+ "uuid": "^11.1.1"
64
64
  },
65
65
  "devDependencies": {
66
66
  "@types/jaro-winkler": "^0.2.3",