Skip to content

Drop Node.js 20 support in schemas, tsconfig, template, and examples - #205

Open
GeekyEggo wants to merge 3 commits into
mainfrom
refactor/remove-node20
Open

GeekyEggo wants to merge 3 commits into
mainfrom
refactor/remove-node20

Conversation

@GeekyEggo

Copy link
Copy Markdown
Member

Removes Node.js 20 from Stream Deck 7.1 onwards; only Node.js 24 and 26 are supported. Required Node.js engines are unchanged.

@elgato/schemas (minor)

  • Nodejs.Version in latest.ts is now "24" | "26", applying to manifests targeting Stream Deck 7.1 onwards. Manifests for 7.0 and earlier still accept only "20", via v7.0.ts.
  • v7.1 and v7.6 tests now assert "20" and "21" are rejected, with allowedValues: ["24", "26"].

@elgato/tsconfig (minor)

  • Removed the node20 configurations and their exports.
  • Internal packages (utils, schemas, plugin, core, cli) now extend @elgato/tsconfig/node24, which compiles to es2024 instead of es2022.

@elgato/cli (patch)

  • The plugin template now uses @tsconfig/node24. Its manifest already targeted Node.js 24.

Examples

  • Moved from @tsconfig/node20 to @tsconfig/node24, @types/node to ^24.12.0, and manifest Nodejs.Version to "24". All examples already require Stream Deck 7.1.

Docs (@elgato/streamdeck, patch)

  • Updated the @elgato/tsconfig README, the runtime table in plugin-environment.mdx for 7.1–7.6, and the manifest reference partials (_manifest-*.g.mdx, edited by hand because their generator isn't in this repo). The 7.0-and-earlier rows and past release notes still mention Node.js 20, as that is what those versions shipped.

Validation

  • pnpm build and pnpm test pass.
  • tsc --noEmit passes for every example.

…or Node.js 20 (non-breaking for @elgato/streamdeck)
Copilot AI balanced review requested due to automatic review settings December 3, 2026 13:50
@changeset-bot

changeset-bot Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 638bbdb

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 5 packages
Name Type
@elgato/cli Patch
@elgato/streamdeck Patch
@elgato/schemas Minor
@elgato/tsconfig Minor
@streamdeck/core Patch

Not sure what this means? Click here to learn what changesets are.

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

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The public Manifest type now rejects valid legacy manifests using Node.js 20, despite their versioned JSON schemas still requiring it.

1 open issue
1 file not reviewed
  • pnpm-lock.yaml: Generated file
What changed in this PR

Aligns Stream Deck’s schemas, tooling, examples, and documentation with Node.js 24/26 support for Stream Deck 7.1 onward.

Changes:

  • Restricts newer manifest schemas to Node.js 24/26 and updates validation tests.
  • Removes Node.js 20 presets and migrates internal configurations, templates, and examples to Node.js 24.
  • Updates runtime documentation and release notes; package engine requirements remain unchanged.
File Description
pnpm-lock.yaml Updates example dependency resolutions.
packages/​utils/​tsconfig.json Uses Node.js 24 preset.
packages/​utils/​tsconfig.build.json Builds with Node.js 24 preset.
packages/​schemas/​tsconfig.json Uses Node.js 24 preset.
packages/​schemas/​tsconfig.build.json Builds with Node.js 24 preset.
packages/​schemas/​src/​streamdeck/​plugins/​manifest/​latest.ts Restricts Node.js versions to 24/26.
packages/​schemas/​src/​streamdeck/​plugins/​manifest/​__tests__/​v7.6.test.ts Tests accepted and rejected runtimes.
packages/​schemas/​src/​streamdeck/​plugins/​manifest/​__tests__/​v7.1.test.ts Updates runtime validation expectations.
packages/​plugin/​tsconfig.json Uses Node.js 24 preset.
packages/​plugin/​tsconfig.build.json Builds with Node.js 24 preset.
packages/​core/​tsconfig.json Uses Node.js 24 preset.
packages/​core/​tsconfig.build.json Builds with Node.js 24 preset.
packages/​cli/​tsconfig.json Uses Node.js 24 bundling preset.
packages/​cli/​template/​tsconfig.json.ejs Scaffolds Node.js 24 configuration.
packages/​cli/​template/​package.json.ejs Adds Node.js 24 preset dependency.
examples/​product-viewer/​tsconfig.json Uses Node.js 24 preset.
examples/​product-viewer/​package.json Updates Node.js preset and types.
examples/​product-viewer/​com.elgato.product-viewer.sdPlugin/​manifest.json Selects Node.js 24 runtime.
examples/​lights-out/​tsconfig.json Uses Node.js 24 preset.
examples/​lights-out/​package.json Updates Node.js preset and types.
examples/​lights-out/​com.elgato.lightsout.sdPlugin/​manifest.json Selects Node.js 24 runtime.
examples/​layouts/​tsconfig.json Uses Node.js 24 preset.
examples/​layouts/​package.json Updates Node.js preset and types.
examples/​layouts/​com.elgato.layouts.sdPlugin/​manifest.json Selects Node.js 24 runtime.
examples/​image-resizer/​tsconfig.json Uses Node.js 24 preset.
examples/​image-resizer/​package.json Updates Node.js preset and types.
examples/​image-resizer/​com.elgato.image-resizer.sdPlugin/​manifest.json Selects Node.js 24 runtime.
examples/​hello-world/​tsconfig.json Uses Node.js 24 preset.
examples/​hello-world/​package.json Updates Node.js preset and types.
examples/​hello-world/​com.elgato.hello-world.sdPlugin/​manifest.json Selects Node.js 24 runtime.
examples/​counter/​tsconfig.json Uses Node.js 24 preset.
examples/​counter/​package.json Updates Node.js preset and types.
examples/​counter/​com.elgato.counter.sdPlugin/​manifest.json Selects Node.js 24 runtime.
examples/​cat-keys/​tsconfig.json Uses Node.js 24 preset.
examples/​cat-keys/​package.json Updates Node.js preset and types.
examples/​cat-keys/​com.elgato.cat-keys.sdPlugin/​manifest.json Selects Node.js 24 runtime.
docs/​sdk/​references/​_manifest-definitions.g.mdx Documents Node.js 24/26 values.
docs/​sdk/​references/​_manifest-declaration.g.mdx Updates documented runtime union.
docs/​sdk/​introduction/​plugin-environment.mdx Updates runtimes for Stream Deck 7.1–7.6.
config/​tsconfig/​README.md Removes Node.js 20 configuration guidance.
config/​tsconfig/​package.json Removes Node.js 20 exports.
config/​tsconfig/​node20/​tsconfig.monorepo.lib.json Deletes Node.js 20 monorepo preset.
config/​tsconfig/​node20/​tsconfig.lib.json Deletes Node.js 20 library preset.
config/​tsconfig/​node20/​tsconfig.bundle.json Deletes Node.js 20 bundling preset.
config/​tsconfig/​node20/​tsconfig.app.json Deletes Node.js 20 application preset.
.changeset/​drop-node-20-tsconfig.md Records configuration release changes.
.changeset/​drop-node-20-schemas.md Records schema release changes.
.changeset/​drop-node-20-docs.md Records documentation release changes.
.changeset/​drop-node-20-cli-template.md Records template release changes.

Review effort: Balanced

@GeekyEggo
GeekyEggo requested a review from ChekTek December 3, 2026 15:12
ChekTek
ChekTek previously approved these changes Dec 3, 2026

@ChekTek ChekTek left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Look's good. Minor stuff:

  • bundled examples (.streamDeckPlugin files) are still node 20.
  • README in the examples still lists 20+ as a prereq

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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.

3 participants