Files
vercel__workflow/packages/rollup/package.json
T

43 lines
963 B
JSON
Raw Normal View History

{
"name": "@workflow/rollup",
2026-09-09 12:12:11 -07:00
"version": "5.0.0-beta.49",
Rename Workflow DevKit to Workflow SDK, remove beta badge, add tweet wall (#1541) * Rename Workflow DevKit to Workflow SDK, remove beta badge, add tweet wall - Rename "Workflow DevKit" to "Workflow SDK" across all files (~108 files) - Rename standalone "WDK" references to "Workflow SDK" - Remove beta badge from homepage hero - Add tweet wall component to homepage with 4 builder testimonials Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * Rename Workflow DevKit to Workflow SDK, remove beta badge, add tweet wall - Rename "Workflow DevKit" to "Workflow SDK" across all files (~108 files) - Rename standalone "WDK" references to "Workflow SDK" - Remove beta badge from homepage hero - Add tweet wall component to homepage with 4 builder testimonials Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Signed-off-by: Harpreet Arora <harpreet.txt@gmail.com> * Address review: fix missed trigger phrase renames and bump skill versions - Rename "workflow devkit" to "workflow sdk" in trigger phrases for both skill files - Bump workflow-init SKILL.md version to 1.1 - Bump workflow SKILL.md version to 1.5 - Note: CLAUDE.md is a symlink to AGENTS.md, already renamed Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Signed-off-by: Harpreet Arora <harpreet.txt@gmail.com> * link correct tweet --------- Signed-off-by: Harpreet Arora <harpreet.txt@gmail.com> Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Co-authored-by: Karthik Kalyanaraman <karthik.kalyanaraman@vercel.com>
2026-03-29 16:05:39 -07:00
"description": "Rollup plugin for Workflow SDK",
"type": "module",
"main": "dist/index.js",
"files": [
"dist"
],
"publishConfig": {
"access": "public"
},
"license": "Apache-2.0",
"repository": {
"type": "git",
"url": "https://github.com/vercel/workflow.git",
"directory": "packages/rollup"
},
"exports": {
".": "./dist/index.js"
},
"scripts": {
"build": "tsc",
"dev": "tsc --watch",
"clean": "tsc --build --clean && rm -rf dist",
"test": "vitest run src",
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@swc/core": "catalog:",
Add discovery for custom classes with workflow serialization (#859) Added automatic discovery for custom classes with workflow serialization, allowing serialization classes to be defined in separate files without requiring explicit directives. ### What changed? - Added detection for files containing custom class serialization patterns: - Files importing from `@workflow/serde` - Files using `Symbol.for('workflow-serialize')` or `Symbol.for('workflow-deserialize')` - Created shared utilities in `transform-utils.ts` for consistent pattern detection across all build tools - Updated Next.js, Nitro, Rollup, and Vite plugins to use the new detection patterns - Added exclusion logic to prevent re-processing of generated workflow files - Added tests to verify the pattern detection works correctly - Updated documentation in the SWC plugin spec to explain the new discovery mechanism ### How to test? 1. Create a class with custom serialization in a separate file: ```js // models/point.js export class Point { constructor(x, y) { this.x = x; this.y = y; } static [Symbol.for('workflow-serialize')](instance) { return { x: instance.x, y: instance.y }; } static [Symbol.for('workflow-deserialize')](data) { return new Point(data.x, data.y); } } ``` 1. Import and use this class in a workflow or step file: ```js 'use workflow'; import { Point } from '../models/point'; export function myWorkflow() { const point = new Point(10, 20); return point; } ``` 1. Verify the class is properly serialized when passed between client and server ### Why make this change? Previously, files containing custom serialization classes needed to include a `'use step'` directive to be discovered and transformed, even if they weren't actual step functions. This was unintuitive and could lead to confusion. This change allows for a more natural code organization pattern where model classes with serialization can be defined in their own files without requiring directives. The build system will automatically discover and transform these files to ensure the serialization works correctly when the classes are used in workflows or steps.
2026-02-02 23:19:00 -08:00
"@workflow/builders": "workspace:*",
"@workflow/swc-plugin": "workspace:*",
"exsolve": "1.0.7"
},
"devDependencies": {
"@types/node": "catalog:",
"@workflow/tsconfig": "workspace:*",
"rollup": "^4.62.2",
build: declare typescript (`catalog:`) in every package that runs tsc (#2898) * build: declare typescript (catalog:) in every package that runs tsc Twenty packages invoke tsc in their build/typecheck scripts without declaring a typescript dependency, resolving whatever tsc pnpm happens to leave reachable. That broke locally after the TypeScript 6 upgrade (#2700): base.json now uses the TS6-only 'types': ['*'] wildcard, and worktrees carrying pre-upgrade node_modules/.bin/tsc shims (orphaned typescript@5.9.3 bins that pnpm never refreshes for an undeclared dependency) fail with TS2688 'Cannot find type definition file for *'. Declaring 'typescript': 'catalog:' (the convention nest already follows) makes pnpm own each package's tsc bin, so version upgrades refresh the shims and this staleness class cannot recur. Packages without tsc in their scripts are left unchanged. Full pnpm build: 27/27 tasks green. * Address review: drop duplicate zod devDep; regenerate lockfile minimally - packages/world listed zod in both dependencies and devDependencies (pre-existing on main, surfaced by the devDependencies sort) — keep the runtime dependency only. - Regenerate pnpm-lock.yaml from a pristine main baseline with --lockfile-only (a clean-main run produces zero diff, so main has no drift). Remaining non-typescript changes are mechanical consequences of the change itself: typescript is an (optional) peer of several tooling dependencies, so declaring it in 20 importers creates new peer-resolution snapshot variants and prunes the now-orphaned old ones; plus one radix-ui 1.6.1->1.6.2 refresh in docs caused by its floating 'latest' specifier. - Validated: pnpm install --frozen-lockfile succeeds; full build 27/27.
2026-07-13 11:33:55 -07:00
"typescript": "catalog:",
"vitest": "catalog:"
}
}