@bytecodealliance/jco 1.13.1-rc.5 → 1.13.2

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.
@@ -1,8 +1,9 @@
1
1
  /** @module Interface wasi:cli/terminal-input@0.2.3 **/
2
2
 
3
- export class TerminalInput {
3
+ export class TerminalInput implements Partial<Disposable> {
4
4
  /**
5
5
  * This type does not have a public constructor.
6
6
  */
7
7
  private constructor();
8
+ [Symbol.dispose]?: () => void;
8
9
  }
@@ -1,8 +1,9 @@
1
1
  /** @module Interface wasi:cli/terminal-output@0.2.3 **/
2
2
 
3
- export class TerminalOutput {
3
+ export class TerminalOutput implements Partial<Disposable> {
4
4
  /**
5
5
  * This type does not have a public constructor.
6
6
  */
7
7
  private constructor();
8
+ [Symbol.dispose]?: () => void;
8
9
  }
@@ -138,7 +138,7 @@ export interface DirectoryEntry {
138
138
  name: string,
139
139
  }
140
140
 
141
- export class Descriptor {
141
+ export class Descriptor implements Partial<Disposable> {
142
142
  /**
143
143
  * This type does not have a public constructor.
144
144
  */
@@ -153,12 +153,14 @@ export class Descriptor {
153
153
  openAt(pathFlags: PathFlags, path: string, openFlags: OpenFlags, flags: DescriptorFlags): Descriptor;
154
154
  metadataHash(): MetadataHashValue;
155
155
  metadataHashAt(pathFlags: PathFlags, path: string): MetadataHashValue;
156
+ [Symbol.dispose]?: () => void;
156
157
  }
157
158
 
158
- export class DirectoryEntryStream {
159
+ export class DirectoryEntryStream implements Partial<Disposable> {
159
160
  /**
160
161
  * This type does not have a public constructor.
161
162
  */
162
163
  private constructor();
163
164
  readDirectoryEntry(): DirectoryEntry | undefined;
165
+ [Symbol.dispose]?: () => void;
164
166
  }
@@ -1,8 +1,9 @@
1
1
  /** @module Interface wasi:io/error@0.2.3 **/
2
2
 
3
- export class Error {
3
+ export class Error implements Partial<Disposable> {
4
4
  /**
5
5
  * This type does not have a public constructor.
6
6
  */
7
7
  private constructor();
8
+ [Symbol.dispose]?: () => void;
8
9
  }
@@ -9,16 +9,17 @@ export interface StreamErrorClosed {
9
9
  tag: 'closed',
10
10
  }
11
11
 
12
- export class InputStream {
12
+ export class InputStream implements Partial<Disposable> {
13
13
  /**
14
14
  * This type does not have a public constructor.
15
15
  */
16
16
  private constructor();
17
17
  read(len: bigint): Uint8Array;
18
18
  blockingRead(len: bigint): Uint8Array;
19
+ [Symbol.dispose]?: () => void;
19
20
  }
20
21
 
21
- export class OutputStream {
22
+ export class OutputStream implements Partial<Disposable> {
22
23
  /**
23
24
  * This type does not have a public constructor.
24
25
  */
@@ -27,4 +28,5 @@ export class OutputStream {
27
28
  write(contents: Uint8Array): void;
28
29
  blockingWriteAndFlush(contents: Uint8Array): void;
29
30
  blockingFlush(): void;
31
+ [Symbol.dispose]?: () => void;
30
32
  }
@@ -596,8 +596,8 @@ class ComponentAsyncState {
596
596
  });
597
597
 
598
598
  // If there is an active promise, then wait for it
599
+ let finishedTicket;
599
600
  while (this.#lock.promise) {
600
- const finishedTicket = await this.#lock.promise;
601
601
  finishedTicket = await this.#lock.promise;
602
602
  if (finishedTicket === ticket - 1n) { break; }
603
603
  }
package/obj/wasm-tools.js CHANGED
@@ -596,8 +596,8 @@ class ComponentAsyncState {
596
596
  });
597
597
 
598
598
  // If there is an active promise, then wait for it
599
+ let finishedTicket;
599
600
  while (this.#lock.promise) {
600
- const finishedTicket = await this.#lock.promise;
601
601
  finishedTicket = await this.#lock.promise;
602
602
  if (finishedTicket === ticket - 1n) { break; }
603
603
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bytecodealliance/jco",
3
- "version": "1.13.1-rc.5",
3
+ "version": "1.13.2",
4
4
  "description": "JavaScript tooling for working with WebAssembly Components",
5
5
  "homepage": "https://github.com/bytecodealliance/jco#readme",
6
6
  "author": "Guy Bedford",
@@ -77,19 +77,19 @@
77
77
  },
78
78
  "devDependencies": {
79
79
  "@commitlint/config-conventional": "^19.8.1",
80
- "@types/node": "^24.2.0",
81
- "@typescript-eslint/eslint-plugin": "^8.37.0",
82
- "@typescript-eslint/parser": "^8.37.0",
80
+ "@types/node": "^24.2.1",
81
+ "@typescript-eslint/eslint-plugin": "^8.39.0",
82
+ "@typescript-eslint/parser": "^8.39.0",
83
83
  "commitlint": "^19.8.1",
84
84
  "conventional-changelog-conventionalcommits": "^9.1.0",
85
- "eslint": "^9.31.0",
85
+ "eslint": "^9.33.0",
86
86
  "eslint-config-prettier": "^10.1.8",
87
- "eslint-plugin-prettier": "^5.5.3",
87
+ "eslint-plugin-prettier": "^5.5.4",
88
88
  "mime": "^4.0.7",
89
89
  "prettier": "^3.6.2",
90
- "puppeteer": "^24.14.0",
90
+ "puppeteer": "^24.16.1",
91
91
  "semver": "^7.7.1",
92
- "smol-toml": "^1.4.1",
92
+ "smol-toml": "^1.4.2",
93
93
  "typescript": "^5.9.2",
94
94
  "vitest": "^3.2.4"
95
95
  }
package/src/jco.js CHANGED
@@ -25,7 +25,7 @@ program
25
25
  )
26
26
  .usage('<command> [options]')
27
27
  .enablePositionalOptions()
28
- .version('1.13.1-rc.5');
28
+ .version('1.13.2');
29
29
 
30
30
  function myParseInt(value) {
31
31
  return parseInt(value, 10);