edfcore 0.6.2 → 0.6.3
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.
- package/dist/constants.d.ts +1 -1
- package/dist/constants.js +1 -1
- package/docs/CHANGELOG.md +21 -0
- package/package.json +1 -1
- package/src/constants.ts +1 -1
package/dist/constants.d.ts
CHANGED
|
@@ -109,5 +109,5 @@ export declare const SIGNAL_FIELD_BLOCK_OFFSETS: {
|
|
|
109
109
|
readonly reserved: 224;
|
|
110
110
|
};
|
|
111
111
|
/** Published package version. Kept in sync with package.json by a test. */
|
|
112
|
-
export declare const VERSION = "0.6.
|
|
112
|
+
export declare const VERSION = "0.6.3";
|
|
113
113
|
//# sourceMappingURL=constants.d.ts.map
|
package/dist/constants.js
CHANGED
package/docs/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,27 @@ alone does not tell you whether you were affected.
|
|
|
6
6
|
edfcore is pre-1.0. Patch releases have carried behaviour changes where the old behaviour was a
|
|
7
7
|
defect; those are called out below.
|
|
8
8
|
|
|
9
|
+
## 0.6.3
|
|
10
|
+
|
|
11
|
+
- **Documented and pinned** what `JSON.stringify` does to a result, which is two different things
|
|
12
|
+
depending on which value you hand it. `design-decisions.md` already said ticks "do not survive
|
|
13
|
+
`JSON.stringify` without a replacer"; that is the loud half, and a caller adds a replacer and
|
|
14
|
+
moves on. The quiet half is that a replacer does not make the result JSON-safe: `Int32Array`
|
|
15
|
+
samples, `BigInt64Array` onsets and a diagnostic's `rawBytes` serialise as objects keyed by
|
|
16
|
+
numeric strings, and a property whose value is `undefined` is dropped rather than kept.
|
|
17
|
+
- So a round trip returns something with no `.length` where the caller expects one, `toPhysical`
|
|
18
|
+
will not take it, and `'durationSeconds' in annotation` is true before and false after. Nothing
|
|
19
|
+
fails at the call site; it fails wherever the value is next indexed into.
|
|
20
|
+
- `what-crosses-json.test.ts` is the sibling of `what-crosses-a-worker.test.ts` and gives the same
|
|
21
|
+
treatment to the boundary people actually use — a cache entry, a log line, a POST body. Over
|
|
22
|
+
every shape in the matrix it pins the exact split: a graph throws if and only if it holds a
|
|
23
|
+
`bigint` JSON would reach, an empty `BigInt64Array` included on the "no" side because there is no
|
|
24
|
+
element to refuse. Six of the values a caller reaches for throw and two do not, and the two that
|
|
25
|
+
do not are the ones with bytes rather than ticks in them.
|
|
26
|
+
- The shape that works is the one `edfcore json` already emits — named primitive fields — and that
|
|
27
|
+
command is now checked as the worked example of it.
|
|
28
|
+
- No behaviour changed.
|
|
29
|
+
|
|
9
30
|
## 0.6.2
|
|
10
31
|
|
|
11
32
|
- **Fixed** a misspelled `redactFields` name being ignored. Redaction matches exactly against
|
package/package.json
CHANGED
package/src/constants.ts
CHANGED