Skip to content

chore: 2026 Q4 stack upgrade for ffjavascript - #17

Merged
chaitanyapotti merged 10 commits into
masterfrom
chore/embed-589-stack-upgrade
Nov 5, 2026
Merged

chaitanyapotti merged 10 commits into
masterfrom
chore/embed-589-stack-upgrade

Conversation

@smgv

@smgv smgv commented Nov 4, 2026

Copy link
Copy Markdown

Jira Link

https://consensyssoftware.atlassian.net/browse/EMBED-589

Epic: https://consensyssoftware.atlassian.net/browse/EMBED-573

Description

Upgrade ffjavascript to the 2026 Q4 stack. The published CommonJS and ESM entry points stay in place. This pull request does not publish.

Before / after

Area Before After
Node engines.node >=22.x, .nvmrc >=24.x, CI on Node 24 engines.node >=24.22.0, .nvmrc >=26.x, CI on Node 24 and 26
npm engines.npm >=10.x, CI ran npm install engines.npm >=12, CI installs npm 12.2.0 and runs npm ci
Build torus-scripts 8 torus-scripts 9 and Vite+ libraryPreset, with explicit dist/lib.esm and dist/lib.cjs output
Package entry points main, module, and types under dist/lib.cjs and dist/lib.esm Same paths. The ESM build also includes a small Rolldown runtime chunk
TypeScript @toruslabs/config 4, TypeScript 5.9 @toruslabs/config 5 library profile, TypeScript 7, DOM libs kept for browser crypto
Lint and format ESLint via @toruslabs/eslint-config-typescript Oxlint via @toruslabs/oxlint-config-typescript and formatPreset(). no-redeclare with builtinGlobals: false is kept
Tests Vitest 4 Vitest 5.1, required by Vite+ 1.5
Install scripts No allowlist @lavamoat/harden moderate. esbuild and fsevents install scripts are denied
Release torus-scripts release Changesets. The release workflow opens a pull request and does not publish
CI actions actions/checkout@v4, actions/setup-node@v4 Pinned to commit SHAs
Security scan Dependabot only Semgrep OSS workflow added. No second CodeQL workflow

How has this been tested?

  • npm ci on Node 26.13.0
  • npm run build
  • npm run typecheck
  • vp lint and vp check (format passed; lint has existing warnings and 0 errors)
  • Node tests: 6 passed
  • Browser tests: Chromium and WebKit passed. Firefox did not launch in this environment (Operation not permitted)

Screenshots (if appropriate)

N/A

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

The package now requires Node.js >=24.22.0 and npm >=12. A major Changeset is included.

Checklist

  • My code follows the code style of this project. (run lint)
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

Made with Cursor

smgv and others added 4 commits November 4, 2026 15:02
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@socket-security

socket-security Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

All alerts resolved. Learn more about Socket for GitHub.

This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored.

Ignoring alerts on:

  • @clack/core@1.5.1
  • @clack/prompts@1.8.1
  • @lavamoat/harden@0.8.1
  • @oxfmt/binding-openharmony-arm64@0.76.0
  • @oxlint/binding-darwin-arm64@1.91.0
  • @oxlint/binding-darwin-x64@1.91.0
  • @oxlint/binding-linux-riscv64-musl@1.91.0
  • @testing-library/dom@10.4.2
  • @typescript/typescript-aix-ppc64@7.0.2
  • @typescript/typescript-darwin-arm64@7.0.2
  • @typescript/typescript-darwin-x64@7.0.2
  • @typescript/typescript-freebsd-arm64@7.0.2
  • @typescript/typescript-freebsd-x64@7.0.2
  • @typescript/typescript-linux-arm@7.0.2
  • @typescript/typescript-linux-arm64@7.0.2
  • @typescript/typescript-linux-loong64@7.0.2
  • @typescript/typescript-linux-mips64el@7.0.2
  • @typescript/typescript-linux-ppc64@7.0.2
  • @typescript/typescript-linux-riscv64@7.0.2
  • @typescript/typescript-linux-s390x@7.0.2
  • @typescript/typescript-linux-x64@7.0.2
  • @typescript/typescript-netbsd-arm64@7.0.2
  • @typescript/typescript-netbsd-x64@7.0.2
  • @typescript/typescript-openbsd-arm64@7.0.2
  • @typescript/typescript-openbsd-x64@7.0.2
  • @typescript/typescript-sunos-x64@7.0.2
  • @typescript/typescript-win32-arm64@7.0.2
  • @typescript/typescript-win32-x64@7.0.2
  • @yarnpkg/core@4.8.0
  • @yarnpkg/libzip@3.2.2
  • @yarnpkg/shell@4.1.3
  • cacheable-lookup@5.0.4
  • clipanion@4.0.0-rc.4
  • clone-response@1.0.3
  • detect-libc@2.1.2
  • es-toolkit@1.53.1
  • fflate@0.8.3
  • got@11.8.6
  • hpagent@1.2.0
  • http2-wrapper@1.0.3
  • launch-editor@2.14.2
  • oxfmt@0.76.0
  • package-manager-detector@1.9.0
  • react-is@17.0.2
  • resolve-alpn@1.2.1
  • responselike@2.0.1
  • rolldown@1.2.16
  • tar@7.5.22
  • tinypool@2.2.0
  • vite-plus@1.5.0
  • @voidzero-dev/vite-plus-core@1.5.0
  • wrappy@1.0.2
  • yaml@2.9.1
  • yuku-core@0.19.0
  • typescript@7.0.2
  • ajv@8.18.0
  • ajv@6.15.0
  • @vitest/browser-playwright@5.1.0
  • es-module-lexer@2.3.2
  • eslint-plugin-tsdoc@0.5.4
  • get-stream@5.2.0
  • glob@14.0.3
  • playwright-core@1.64.1
  • resolve@1.22.14
  • tslib@2.9.1
  • vitest@5.1.0
  • ws@8.22.1

View full report

@smgv smgv self-assigned this Nov 4, 2026
@smgv

smgv commented Nov 4, 2026

Copy link
Copy Markdown
Author

@SocketSecurity ignore npm/@lavamoat/harden@0.8.1
@SocketSecurity ignore npm/tslib@2.9.1
@SocketSecurity ignore npm/oxfmt@0.76.0
@SocketSecurity ignore npm/@oxfmt/binding-openharmony-arm64@0.76.0
@SocketSecurity ignore npm/@oxlint/binding-darwin-arm64@1.91.0
@SocketSecurity ignore npm/@oxlint/binding-darwin-x64@1.91.0
@SocketSecurity ignore npm/@oxlint/binding-linux-riscv64-musl@1.91.0
@SocketSecurity ignore npm/detect-libc@2.1.2
@SocketSecurity ignore npm/tinypool@2.2.0
@SocketSecurity ignore npm/yuku-core@0.19.0
@SocketSecurity ignore npm/playwright-core@1.64.1
@SocketSecurity ignore npm/launch-editor@2.14.2

@smgv
smgv requested a review from chaitanyapotti November 4, 2026 12:04
Comment thread .github/workflows/ci.yml Outdated

name: Run Tests

permissions:

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

permission should be at job level

@smgv

smgv commented Nov 4, 2026

Copy link
Copy Markdown
Author

@SocketSecurity ignore npm/eslint-plugin-tsdoc@0.5.4
@SocketSecurity ignore npm/clone-response@1.0.3
@SocketSecurity ignore npm/responselike@2.0.1
@SocketSecurity ignore npm/typescript@7.0.2
@SocketSecurity ignore npm/wrappy@1.0.2
@SocketSecurity ignore npm/@vitest/browser-playwright@5.1.0
@SocketSecurity ignore npm/@yarnpkg/core@4.8.0
@SocketSecurity ignore npm/cacheable-lookup@5.0.4
@SocketSecurity ignore npm/glob@14.0.3
@SocketSecurity ignore npm/hpagent@1.2.0
@SocketSecurity ignore npm/http2-wrapper@1.0.3
@SocketSecurity ignore npm/resolve-alpn@1.2.1
@SocketSecurity ignore npm/vitest@5.1.0
@SocketSecurity ignore npm/@voidzero-dev/vite-plus-core@1.5.0
@SocketSecurity ignore npm/got@11.8.6

@smgv

smgv commented Nov 4, 2026

Copy link
Copy Markdown
Author

@SocketSecurity ignore npm/@clack/core@1.5.1
@SocketSecurity ignore npm/@clack/prompts@1.8.1
@SocketSecurity ignore npm/@testing-library/dom@10.4.2
@SocketSecurity ignore npm/@yarnpkg/libzip@3.2.2
@SocketSecurity ignore npm/@yarnpkg/shell@4.1.3
@SocketSecurity ignore npm/ajv@6.15.0
@SocketSecurity ignore npm/ajv@8.18.0
@SocketSecurity ignore npm/clipanion@4.0.0-rc.4
@SocketSecurity ignore npm/es-abstract@1.24.2
@SocketSecurity ignore npm/es-module-lexer@2.3.2
@SocketSecurity ignore npm/es-toolkit@1.53.1
@SocketSecurity ignore npm/get-stream@5.2.0

Co-authored-by: Cursor <cursoragent@cursor.com>
@smgv

smgv commented Nov 4, 2026

Copy link
Copy Markdown
Author

@SocketSecurity ignore npm/package-manager-detector@1.9.0
@SocketSecurity ignore npm/react-is@17.0.2
@SocketSecurity ignore npm/resolve@1.22.14
@SocketSecurity ignore npm/resolve@2.0.0-next.7
@SocketSecurity ignore npm/rolldown@1.2.16
@SocketSecurity ignore npm/semver@6.3.2
@SocketSecurity ignore npm/tar@7.5.22
@SocketSecurity ignore npm/vite-plus@1.5.0

Co-authored-by: Cursor <cursoragent@cursor.com>
Comment thread vite.config.mts Outdated
cjs: { outDir: "dist/lib.cjs" },
},
outExtensions: () => ({ js: ".js", dts: ".d.ts" }),
copy: [{ from: "dist/lib.cjs/index.d.ts", to: "dist/lib.cjs/types" }],

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

copy step is not needed anymore since we have dts set to true

Comment thread .nvmrc Outdated
@@ -1 +1 @@
>=24.x No newline at end of file
>=26.x

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

should be just 26

Comment thread .changeset/stack-upgrade-node-24.md Outdated
"@toruslabs/ffjavascript": major
---

Require Node.js 24.22.0 and npm 12. Publish the Vite+ build from the existing CommonJS and ESM entry points.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

match this with nvmrc node 26

Co-authored-by: Cursor <cursoragent@cursor.com>
@smgv

smgv commented Nov 5, 2026

Copy link
Copy Markdown
Author

@SocketSecurity ignore npm/yaml@2.9.1

@smgv

smgv commented Nov 5, 2026

Copy link
Copy Markdown
Author

@SocketSecurity ignore npm/fflate@0.8.3
@SocketSecurity ignore npm/ws@8.22.1

@smgv

smgv commented Nov 5, 2026

Copy link
Copy Markdown
Author

@SocketSecurity ignore npm/@typescript/typescript-aix-ppc64@7.0.2
@SocketSecurity ignore npm/@typescript/typescript-darwin-arm64@7.0.2
@SocketSecurity ignore npm/@typescript/typescript-darwin-x64@7.0.2
@SocketSecurity ignore npm/@typescript/typescript-freebsd-arm64@7.0.2
@SocketSecurity ignore npm/@typescript/typescript-freebsd-x64@7.0.2
@SocketSecurity ignore npm/@typescript/typescript-linux-arm@7.0.2
@SocketSecurity ignore npm/@typescript/typescript-linux-arm64@7.0.2
@SocketSecurity ignore npm/@typescript/typescript-linux-loong64@7.0.2
@SocketSecurity ignore npm/@typescript/typescript-linux-mips64el@7.0.2
@SocketSecurity ignore npm/@typescript/typescript-linux-ppc64@7.0.2
@SocketSecurity ignore npm/@typescript/typescript-linux-riscv64@7.0.2
@SocketSecurity ignore npm/@typescript/typescript-linux-s390x@7.0.2
@SocketSecurity ignore npm/@typescript/typescript-linux-x64@7.0.2
@SocketSecurity ignore npm/@typescript/typescript-netbsd-arm64@7.0.2
@SocketSecurity ignore npm/@typescript/typescript-netbsd-x64@7.0.2
@SocketSecurity ignore npm/@typescript/typescript-openbsd-arm64@7.0.2
@SocketSecurity ignore npm/@typescript/typescript-openbsd-x64@7.0.2
@SocketSecurity ignore npm/@typescript/typescript-sunos-x64@7.0.2
@SocketSecurity ignore npm/@typescript/typescript-win32-arm64@7.0.2
@SocketSecurity ignore npm/@typescript/typescript-win32-x64@7.0.2

@smgv
smgv requested review from hieu-w and lionellbriones November 5, 2026 04:56
Comment thread .github/workflows/ci.yml Outdated
strategy:
matrix:
node: ["24.x"]
node: ["24.x", "26.x"]

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.

24.22

Comment thread test/configs/chrome.config.mts Outdated
@@ -1,5 +1,5 @@
import { defineConfig } from "vitest/config";
import { playwright } from "@vitest/browser-playwright";
import { defineConfig } from "vitest/config";

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.

use vite-plus/test

@chaitanyapotti
chaitanyapotti merged commit 2e721cb into master Nov 5, 2026
5 checks passed
@chaitanyapotti
chaitanyapotti deleted the chore/embed-589-stack-upgrade branch November 5, 2026 07:18
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.

5 participants