Skip to content

Bump @tinacms/cli from 2.1.9 to 2.4.0#115

Closed
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/tinacms/cli-2.4.0
Closed

Bump @tinacms/cli from 2.1.9 to 2.4.0#115
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/tinacms/cli-2.4.0

Conversation

@dependabot
Copy link
Copy Markdown

@dependabot dependabot Bot commented on behalf of github May 26, 2026

Bumps @tinacms/cli from 2.1.9 to 2.4.0.

Release notes

Sourced from @​tinacms/cli's releases.

@​tinacms/cli@​2.4.0

Minor Changes

  • #6790 542c781 Thanks @​Ben0189! - Fix native SQLite (and other native CJS adapters) crashing the ESM database build, plus surrounding cleanup work.

    The bug. Since Tina v3's December 2025 ESM migration, bundling tina/database.ts with esbuild — and writing the output to os.tmpdir() — left users wedged between two failure modes: bundling native modules like better-sqlite3 crashed with __filename is not defined, and externalizing them couldn't resolve node_modules from /tmp/. See #6675.

    What changed:

    • loadDatabaseFile and loadConfigFile now write esbuild output to <project>/tina/__generated__/.cache/<timestamp>/ instead of os.tmpdir(), so Node's resolver can walk up to the project's node_modules at runtime.

    • better-sqlite3 is externalized so Node loads it as CJS where __filename exists.

    • The build cache is swept on startup (clears residue from crashed prior runs), and each per-build subdir + its now-empty timestamp parent are removed after the dynamic-import resolves.

    • Read-only project mounts (Docker :ro volumes, AWS Lambda's /var/task, sandboxed CI runners) now fail with an actionable error explaining the cause and resolution, instead of a cryptic mid-build EACCES.

    • New defineConfig field: build.externalDependencies?: string[]. Users with custom native adapters outside the baseline can extend the externalize list from their config:

      // tina/config.ts
      export default defineConfig({
        build: {
          publicFolder: "public",
          outputFolder: "admin",
          externalDependencies: ["my-custom-native-adapter"],
        },
        // ...
      });

      Externalized packages must be installed in the project's node_modules so Node can resolve them at runtime.

    • tina init now adds tina/__generated__ to .gitignore for new projects (and existing projects without it).

Patch Changes

  • #6841 c8b4ecb Thanks @​joshbermanssw! - Track tinacms build invocations + outcomes in PostHog. Replaces the metrics.tina.io event for this command. Opt-out via --noTelemetry is unchanged.

  • #6950 8ac0776 Thanks @​RonGamzu! - Fix typos: rename misspelled notifiySubscribers to notifySubscribers and correct "Error occured" to "Error occurred" in CLI error messages

  • #6864 638b47a Thanks @​kulesy! - Extract the database-bundle esbuild options out of loadDatabaseFile() into a pure buildDatabaseEsbuildConfig() helper, and add unit tests covering the externalize / output-path contracts.

    The helper guarantees:

    • external includes better-sqlite3 (and whatever else the caller passes)
    • packages: 'external' is never set (broad-externalize would break user-side named imports of CJS UMD packages like sqlite-level v1 and mongodb-level)
    • outfile is forwarded unchanged from the caller (caller is responsible for putting it inside the project tree via prepareCacheLocation())
    • The fixed esbuild options (bundle, platform: 'node', format: 'esm', createRequire banner, loader map) are stable

... (truncated)

Changelog

Sourced from @​tinacms/cli's changelog.

2.4.0

Minor Changes

  • #6790 542c781 Thanks @​Ben0189! - Fix native SQLite (and other native CJS adapters) crashing the ESM database build, plus surrounding cleanup work.

    The bug. Since Tina v3's December 2025 ESM migration, bundling tina/database.ts with esbuild — and writing the output to os.tmpdir() — left users wedged between two failure modes: bundling native modules like better-sqlite3 crashed with __filename is not defined, and externalizing them couldn't resolve node_modules from /tmp/. See #6675.

    What changed:

    • loadDatabaseFile and loadConfigFile now write esbuild output to <project>/tina/__generated__/.cache/<timestamp>/ instead of os.tmpdir(), so Node's resolver can walk up to the project's node_modules at runtime.

    • better-sqlite3 is externalized so Node loads it as CJS where __filename exists.

    • The build cache is swept on startup (clears residue from crashed prior runs), and each per-build subdir + its now-empty timestamp parent are removed after the dynamic-import resolves.

    • Read-only project mounts (Docker :ro volumes, AWS Lambda's /var/task, sandboxed CI runners) now fail with an actionable error explaining the cause and resolution, instead of a cryptic mid-build EACCES.

    • New defineConfig field: build.externalDependencies?: string[]. Users with custom native adapters outside the baseline can extend the externalize list from their config:

      // tina/config.ts
      export default defineConfig({
        build: {
          publicFolder: "public",
          outputFolder: "admin",
          externalDependencies: ["my-custom-native-adapter"],
        },
        // ...
      });

      Externalized packages must be installed in the project's node_modules so Node can resolve them at runtime.

    • tina init now adds tina/__generated__ to .gitignore for new projects (and existing projects without it).

Patch Changes

  • #6841 c8b4ecb Thanks @​joshbermanssw! - Track tinacms build invocations + outcomes in PostHog. Replaces the metrics.tina.io event for this command. Opt-out via --noTelemetry is unchanged.

  • #6950 8ac0776 Thanks @​RonGamzu! - Fix typos: rename misspelled notifiySubscribers to notifySubscribers and correct "Error occured" to "Error occurred" in CLI error messages

  • #6864 638b47a Thanks @​kulesy! - Extract the database-bundle esbuild options out of loadDatabaseFile() into a pure buildDatabaseEsbuildConfig() helper, and add unit tests covering the externalize / output-path contracts.

    The helper guarantees:

    • external includes better-sqlite3 (and whatever else the caller passes)
    • packages: 'external' is never set (broad-externalize would break user-side named imports of CJS UMD packages like sqlite-level v1 and mongodb-level)
    • outfile is forwarded unchanged from the caller (caller is responsible for putting it inside the project tree via prepareCacheLocation())
    • The fixed esbuild options (bundle, platform: 'node', format: 'esm', createRequire banner, loader map) are stable

    Closes the regression-test gap left by the architectural fix in #6790.

  • Updated dependencies [0509095, 542c781, 33feeac, 8ac0776, d622ac5, a8c8f08, b9eaf61, cf73a11, 4757225]:

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [@tinacms/cli](https://github.com/tinacms/tinacms/tree/HEAD/packages/@tinacms/cli) from 2.1.9 to 2.4.0.
- [Release notes](https://github.com/tinacms/tinacms/releases)
- [Changelog](https://github.com/tinacms/tinacms/blob/main/packages/@tinacms/cli/CHANGELOG.md)
- [Commits](https://github.com/tinacms/tinacms/commits/@tinacms/cli@2.4.0/packages/@tinacms/cli)

---
updated-dependencies:
- dependency-name: "@tinacms/cli"
  dependency-version: 2.4.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels May 26, 2026
@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented May 26, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
ssw-fire-boot-camp-website Ready Ready Preview, Comment May 26, 2026 4:07pm

Request Review

@dependabot @github
Copy link
Copy Markdown
Author

dependabot Bot commented on behalf of github May 28, 2026

Superseded by #117.

@dependabot dependabot Bot closed this May 28, 2026
@dependabot dependabot Bot deleted the dependabot/npm_and_yarn/tinacms/cli-2.4.0 branch May 28, 2026 09:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants