24 Commits

Author SHA1 Message Date
Pekka Enberg
230f652b5b deps: update brace-expansion to fix quadratic parsing of trailing braces
Expanding input shaped like {a}}}}...,z} takes time quadratic in the
number of literal } characters. The parser rewrites the string and
restarts the scan once per brace, and each rewrite also grows the
working string by about 25 characters. A 128 KB pattern blocks the
event loop for close to half a minute. The max and maxLength caps do
not help because the cost is in parsing, before any results exist.

Every major line in use here is affected, so this moves each pinned
copy to the patched release on its own line: 1.1.21, 2.1.7 and 5.0.12.
npm also re-synced stale metadata for the locally linked
@tursodatabase packages while rewriting the lockfiles.

Tests: ran the advisory's reproduction against serverless/javascript
before and after npm ci. On 2.1.4, n=32000 took 2358 ms. On 2.1.7 it
took 15 ms.
2026-10-14 09:49:10 +03:00
Pekka Enberg
8e0c3eefe3 serverless/js: pin esbuild to 0.28.2
esbuild 0.27.7 falls in the range GHSA-g7r4-m6w7-qqqr names, so the
lockfile shipped a version that can read arbitrary files when its
development server runs on Windows. Nothing here starts that server --
tsup only uses the build API -- but the package should not carry a
flagged version.

tsup 8.5.1 is the newest release and asks for esbuild ^0.27.0, which
cannot reach a fixed version on its own: within that range only 0.27.0
through 0.27.2 are unaffected, and those are older than what is locked.
An override lifts esbuild past the range instead of downgrading it. tsup
builds against 0.28.2 without complaint and emits byte-identical output.

Tests: npm ci; npm run build (dist hashes unchanged from the 0.27.7
build); npx ava integration-tests/protocol.test.mjs; npm audit reports no
vulnerabilities.
2026-08-30 11:03:41 +03:00
Amp
577078e479 serverless/js: update vulnerable transitive dependencies
Refresh tar, brace-expansion, and js-yaml to fixed versions in the serverless package and differential test locks.

Tests: npm ci --ignore-scripts; npm run build; npx ava integration-tests/protocol.test.mjs; npm audit --package-lock-only
Co-authored-by: pedro muniz <pedro.muniz.carlo@gmail.com>
2026-08-29 16:58:27 +03:00
Pekka Enberg
027b2d4d25 serverless/javascript: 1.4.0 2026-07-27 17:37:35 +03:00
Pekka Enberg
1b943255a4 serverless/javascript: 1.3.2 2026-07-25 12:17:00 +03:00
Pekka Enberg
51f269e4fd serverless/javascript: 1.3.1 2026-07-17 19:48:43 +03:00
Pekka Enberg
26695c91c0 serverless/javascript: 1.3.0 2026-07-17 15:56:22 +03:00
Pekka Enberg
9393b89f0b serverless/javascript: 1.3.0-pre.1 2026-06-18 09:40:40 +03:00
Pekka Enberg
07ba170691 serverless/javascript: 1.2.0 2026-06-02 18:57:48 +03:00
Pekka Enberg
cfd9fb9669 serverless/javascript: 1.2.0-pre.2 2026-05-19 18:00:58 +03:00
Pekka Enberg
43f3f7bc86 serverless/javascript: 1.2.0-pre.1 2026-05-04 14:41:26 +03:00
Pekka Enberg
308392d9d5 serverless/javascript: 1.1.3 2026-05-02 08:46:10 +03:00
Pekka Enberg
03df12290e serverless/javascript: 1.1.2 2026-04-25 07:36:10 +03:00
Pekka Enberg
5eaef90bab serverless/javascript: 1.1.2-pre.1 2026-04-24 20:11:11 +03:00
Pekka Enberg
d1f8d0b7b2 serverless/javascript: Add packaging for ESM and CommonJS
We only packaged for ESM so far, but let's add CommonJS to the mix too.

Fixes #6537
2026-04-24 20:10:07 +03:00
Pekka Enberg
c7e6936adf serverless/javascript: 1.1.1 2026-04-24 13:52:13 +03:00
dependabot[bot]
e8bb78c6b4 Bump glob from 10.4.5 to 10.5.0 in /serverless/javascript
Bumps [glob](https://github.com/isaacs/node-glob) from 10.4.5 to 10.5.0.
- [Changelog](https://github.com/isaacs/node-glob/blob/main/changelog.md)
- [Commits](https://github.com/isaacs/node-glob/compare/v10.4.5...v10.5.0)

---
updated-dependencies:
- dependency-name: glob
  dependency-version: 10.5.0
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-04-22 14:20:05 +00:00
Pekka Enberg
cd1188384b serverless/javascript: 1.1.0 2026-04-18 15:25:50 +03:00
Pekka Enberg
c6031f58e1 serverless/javascript: 1.1.0-pre.2 2026-04-18 15:23:26 +03:00
Pekka Enberg
cb42ca32a9 Update tar to 7.5.13 2026-04-07 15:44:09 +03:00
Pekka Enberg
10d9db4980 Update lodash to 4.18.1
Addresses GHSA-f23m-r3pf-42rh / CVE-2026-2950: lodash versions <= 4.17.23
are vulnerable to prototype pollution in `_.unset` and `_.omit`. The
prior fix for CVE-2025-13465 only guarded against string key members,
so an attacker can bypass it by passing array-wrapped path segments,
allowing deletion of properties from built-in prototypes such as
`Object.prototype`, `Number.prototype`, and `String.prototype`.

lodash is only used transitively by dev dependencies in our JS example
and test projects (ava, react-native toolchain), but bump it anyway to
clear the dependabot alert.
2026-04-06 13:19:07 +03:00
Pekka Enberg
d969c4d401 serverless/javascript: 1.1.0-pre.1 2026-03-30 13:56:02 +03:00
Pekka Enberg
bb6a7d5b78 serverless/javascript: Bump version to 1.0.0 2026-03-26 08:15:51 +02:00
Pekka Enberg
4e144df120 Move @tursodatabase/serverless to serverless/javascript
Reorganize serverless SDKs under a top-level serverless/ directory
to support multi-language serverless drivers alongside the existing
bindings/ convention.
2026-03-26 08:15:10 +02:00