edfcore 0.6.46 → 0.6.47
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 +16 -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.47";
|
|
113
113
|
//# sourceMappingURL=constants.d.ts.map
|
package/dist/constants.js
CHANGED
package/docs/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,22 @@ 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.47
|
|
10
|
+
|
|
11
|
+
- **Fixed** a claim in `api-primitives.md`: that when a header declares more records than the file
|
|
12
|
+
holds, "the difference between those two numbers is the only evidence" of a truncated download.
|
|
13
|
+
A writer that flushes its record-count field as it goes — so a reader can follow the recording —
|
|
14
|
+
and then dies mid-record leaves a file whose declared count equals the whole records on disk,
|
|
15
|
+
with a fraction of one more after them. There is nothing to subtract.
|
|
16
|
+
- `header/parse.ts` already handles it: `declared === wholeRecords` with bytes left over reports
|
|
17
|
+
`PARTIAL_FINAL_RECORD` rather than `TRAILING_BYTES`, because a partial record is not spare bytes.
|
|
18
|
+
`recordCount` is unaffected and `recordCountSource` stays `'headerField'`.
|
|
19
|
+
- The matrix shape that hid it is `a download that stopped part way`, which earns `TRUNCATED_FILE`
|
|
20
|
+
and `PARTIAL_FINAL_RECORD` together — so the second code never appeared on its own, and the
|
|
21
|
+
sentence about the first looked like it covered both. A test now builds the file where it does.
|
|
22
|
+
- The page keeps its point, which was never in doubt: both findings need `sourceByteLength`, and a
|
|
23
|
+
header-only buffer looks like a complete file whose records all happen to be missing.
|
|
24
|
+
|
|
9
25
|
## 0.6.46
|
|
10
26
|
|
|
11
27
|
- **Changed** the `Next:` clause of `DATE_CLIPPED_TO_1985_2084`, which could not be followed on any
|
package/package.json
CHANGED
package/src/constants.ts
CHANGED