Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/cuddly-otters-sin.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@workflow/world": patch
---

Remove `@types/json-schema` dependency (not used)
5 changes: 5 additions & 0 deletions .changeset/evil-mammals-hear.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@workflow/world": patch
---

Remove `@types/node` from being a peerDependency
5 changes: 5 additions & 0 deletions .changeset/two-rabbits-burn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@workflow/cli": patch
---

Move `@types/watchpack` to be a devDependency
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@
},
"devDependencies": {
"@types/node": "catalog:",
"@types/watchpack": "2.4.4",
"@workflow/tsconfig": "workspace:*"
},
"dependencies": {
"@oclif/core": "^4.0.0",
"@oclif/plugin-help": "^6.0.0",
"@swc/core": "1.11.24",
"@types/watchpack": "2.4.4",
"@workflow/swc-plugin": "workspace:*",
"@workflow/errors": "workspace:*",
"@workflow/core": "workspace:*",
Expand Down
4 changes: 2 additions & 2 deletions packages/core/src/serialization.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,10 @@ export class WorkflowServerWritableStream extends WritableStream<Uint8Array> {
}
const world = getWorld();
super({
write: async (chunk: string | Uint8Array | Buffer) => {
async write(chunk) {
await world.writeToStream(name, chunk);
},
close: async () => {
async close() {
await world.closeStream(name);
},
});
Expand Down
3 changes: 0 additions & 3 deletions packages/world/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,10 @@
"dev": "tsc --watch"
},
"peerDependencies": {
"@types/node": "catalog:",
"@types/json-schema": "catalog:",
"zod": "catalog:"
},
"devDependencies": {
"@types/node": "catalog:",
"@types/json-schema": "catalog:",
"zod": "catalog:",
"@workflow/tsconfig": "workspace:*"
},
Expand Down
5 changes: 1 addition & 4 deletions packages/world/src/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,7 @@ import type {
} from './steps.js';

export interface Streamer {
writeToStream(
name: string,
chunk: string | Uint8Array | Buffer
): Promise<void>;
writeToStream(name: string, chunk: string | Uint8Array): Promise<void>;
closeStream(name: string): Promise<void>;
readFromStream(
name: string,
Expand Down
Loading