Skip to content

docs: document the package-shipped name@version step ID form - #3161

Open
Mohith26 wants to merge 1 commit into
vercel:mainfrom
Mohith26:docs/code-transform-package-id-form
Open

docs: document the package-shipped name@version step ID form#3161
Mohith26 wants to merge 1 commit into
vercel:mainfrom
Mohith26:docs/code-transform-package-id-form

Conversation

@Mohith26

Copy link
Copy Markdown

Fixes #3154, reported by @pranaygp.

The ID Generation section of how-it-works/code-transform.mdx (v4 and v5) only documented the local-file ID form {type}//{filepath}//{functionName}. Steps and workflows shipped in export-reachable package files instead get {type}//{name}[/{subpath}]@{version}//{functionName}, produced by resolveModuleSpecifier() in the builders and format_name() in the SWC plugin.

This documents both forms side by side, when each applies, and clarifies that re-exporting a package's step from local files does not change its ID. Content is source-verified against the resolver and plugin naming code.

The ID Generation section of how-it-works/code-transform.mdx (v4 and v5)
only documented the local-file ID form {type}//{filepath}//{functionName}.
Steps and workflows shipped in export-reachable npm/workspace package files
instead get IDs of the form {type}//{name}[/{subpath}]@{version}//{functionName},
produced by resolveModuleSpecifier() in packages/builders/src/module-specifier.ts
and format_name()/get_module_path() in
packages/swc-plugin-workflow/transform/src/naming.rs.

Document both forms side by side, note when each applies, and clarify that
re-exporting a package's step from local files does not change its ID while
a package version bump does.

Fixes vercel#3154
@Mohith26
Mohith26 requested review from a team and ijjk as code owners July 28, 2026 18:42
@changeset-bot

changeset-bot Bot commented Jul 28, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 272d829

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@vercel

vercel Bot commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

@Mohith26 is attempting to deploy a commit to the Vercel Labs Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

code-transform.mdx §ID Generation omits the package-shipped name@version ID form

1 participant