Skip to content

Commit 0946dad

Browse files
Remove "workflow/internal/serialization" export (#1082)
* Remove "workflow/internal/serialization" export Was only being used in these two e2e test files and the data being passed in those tests don't rely on any specialized data types, so just use JSON there. * Fix: Removing the `workflow/internal/serialization` export from package.json breaks 5 files in `packages/world-testing` that still import `hydrateWorkflowReturnValue` from that path. Co-authored-by: TooTallNate <n@n8.io> * lockfile --------- Co-authored-by: Vercel <vercel[bot]@users.noreply.github.com>
1 parent f934e52 commit 0946dad

12 files changed

Lines changed: 22 additions & 55 deletions

File tree

.changeset/cyan-ravens-eat.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"workflow": patch
3+
---
4+
5+
Remove "workflow/internal/serialization" export

packages/workflow/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838
"default": "./dist/api.js"
3939
},
4040
"./internal/errors": "./dist/internal/errors.js",
41-
"./internal/serialization": "./dist/internal/serialization.js",
4241
"./internal/builtins": "./dist/internal/builtins.js",
4342
"./internal/private": "./dist/internal/private.js",
4443
"./internal/class-serialization": "./dist/internal/class-serialization.js",

packages/workflow/src/internal/serialization.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

packages/world-testing/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
"dependencies": {
2525
"@hono/node-server": "1.19.5",
2626
"@workflow/cli": "workspace:*",
27+
"@workflow/core": "workspace:*",
2728
"workflow": "workspace:*",
2829
"@workflow/world": "workspace:*",
2930
"chalk": "5.6.2",

packages/world-testing/src/addition.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { expect, test, vi } from 'vitest';
2-
import { hydrateWorkflowReturnValue } from 'workflow/internal/serialization';
2+
import { hydrateWorkflowReturnValue } from '@workflow/core/serialization';
33
import { createFetcher, startServer } from './util.mjs';
44

55
export function addition(world: string) {

packages/world-testing/src/errors.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { expect, test, vi } from 'vitest';
2-
import { hydrateWorkflowReturnValue } from 'workflow/internal/serialization';
2+
import { hydrateWorkflowReturnValue } from '@workflow/core/serialization';
33
import { createFetcher, startServer } from './util.mjs';
44

55
export function errors(world: string) {

packages/world-testing/src/hooks.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { expect, test, vi } from 'vitest';
2-
import { hydrateWorkflowReturnValue } from 'workflow/internal/serialization';
2+
import { hydrateWorkflowReturnValue } from '@workflow/core/serialization';
33
import type { Hook } from '../workflows/hooks.ts';
44
import { jsonlines } from './jsonlines.mjs';
55
import { createFetcher, startServer } from './util.mjs';

packages/world-testing/src/idempotency.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { expect, test, vi } from 'vitest';
2-
import { hydrateWorkflowReturnValue } from 'workflow/internal/serialization';
2+
import { hydrateWorkflowReturnValue } from '@workflow/core/serialization';
33
import { createFetcher, startServer } from './util.mjs';
44

55
export function idempotency(world: string) {

packages/world-testing/src/null-byte.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { expect, test, vi } from 'vitest';
2-
import { hydrateWorkflowReturnValue } from 'workflow/internal/serialization';
2+
import { hydrateWorkflowReturnValue } from '@workflow/core/serialization';
33
import { createFetcher, startServer } from './util.mjs';
44

55
export function nullByte(world: string) {

pnpm-lock.yaml

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)