@dawcore/midi 0.0.6-next.4 → 0.0.6-next.6

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/index.d.mts CHANGED
@@ -70,12 +70,12 @@ interface MidiLoadOptions {
70
70
  */
71
71
  startTime?: number;
72
72
  /**
73
- * AbortSignal forwarded to `fetch()` when the source is a URL.
74
- *
75
- * Scope is **fetch-only**: aborting after parsing has finished does NOT
76
- * cancel the in-flight `addTrack` calls (a documented v1 limitation —
77
- * `addTrack` itself doesn't yet accept a signal). For a URL source,
78
- * pre-parse abort propagates as a `DOMException` named `AbortError`.
73
+ * Cancels the call: the fetch of a URL source, the parse, and the
74
+ * `addTrack` waits of the tracks it adds (`<daw-editor>` combines it with
75
+ * the arrangement it plays, so a swap of `editor.arrangement` aborts too).
76
+ * The call rejects with the signal's `reason` (a `DOMException` named
77
+ * `AbortError` by default), and the tracks it added are taken out for
78
+ * good, with no undo step.
79
79
  */
80
80
  signal?: AbortSignal;
81
81
  }
package/dist/index.d.ts CHANGED
@@ -70,12 +70,12 @@ interface MidiLoadOptions {
70
70
  */
71
71
  startTime?: number;
72
72
  /**
73
- * AbortSignal forwarded to `fetch()` when the source is a URL.
74
- *
75
- * Scope is **fetch-only**: aborting after parsing has finished does NOT
76
- * cancel the in-flight `addTrack` calls (a documented v1 limitation —
77
- * `addTrack` itself doesn't yet accept a signal). For a URL source,
78
- * pre-parse abort propagates as a `DOMException` named `AbortError`.
73
+ * Cancels the call: the fetch of a URL source, the parse, and the
74
+ * `addTrack` waits of the tracks it adds (`<daw-editor>` combines it with
75
+ * the arrangement it plays, so a swap of `editor.arrangement` aborts too).
76
+ * The call rejects with the signal's `reason` (a `DOMException` named
77
+ * `AbortError` by default), and the tracks it added are taken out for
78
+ * good, with no undo step.
79
79
  */
80
80
  signal?: AbortSignal;
81
81
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dawcore/midi",
3
- "version": "0.0.6-next.4",
3
+ "version": "0.0.6-next.6",
4
4
  "description": "Framework-agnostic MIDI file loading and parsing for the dawcore family",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -38,7 +38,7 @@
38
38
  ],
39
39
  "dependencies": {
40
40
  "@tonejs/midi": "^2.0.28",
41
- "@waveform-playlist/core": "13.0.0-next.4"
41
+ "@waveform-playlist/core": "13.0.0-next.5"
42
42
  },
43
43
  "devDependencies": {
44
44
  "tsup": "^8.5.1",