Three conflicts:
- packages/core/cli-v1/src/commands/client.js: both sides appended an
export, kept both.
- packages/core/server/package.json: kept develop's 2.4.0-alpha.8
versions and next's removal of the now unused @types/decompress.
- yarn.lock: regenerated from develop's side.
develop's lockfile had pinned hono, @hono/node-server, joi, axios,
fast-uri, form-data, follow-redirects and tmp at versions predating the
security fixes. yarn install keeps existing entries that still satisfy
their range, so the merge would have silently carried those old versions
forward. Dropped those entries and let yarn re-resolve them; all are back
at or above their patched versions.
Claude-Session: https://claude.ai/code/session_01UukbeCcgu3fBifyyaTkmwx
Conflict in packages/core/server/package.json: next had bumped the
@nocobase/* dependencies to 2.3.0-beta.12 while main dropped the now
unused @types/decompress next to them. Kept next's versions and main's
removal; @xhmikosr/decompress supersedes it.
Claude-Session: https://claude.ai/code/session_01UukbeCcgu3fBifyyaTkmwx
* fix(deps): upgrade vulnerable application dependencies
* fix(deps): narrow overrides and update Hono adapter
* fix(deps): pin request qs to patched version
* fix(deps): close remaining gaps from the vulnerability scan
Widen the qs override to `**/qs`. The previous `**/request/qs` pattern
only matches when `request` itself depends on qs, so it never covered
`express -> qs@~6.15.1`; qs 6.15.3 stayed in the lockfile and failed the
Dependency Review check.
Bump joi in @nocobase/database, the one package still pinned to ^17.13.3,
so joi 17.13.3 is no longer installed next to 17.13.8.
Drop @types/decompress, which became dead when decompress was replaced by
@xhmikosr/decompress, and declare the subset of that package used by the
server and plugins, since it ships no type declarations of its own.
* fix(test): use named type import for mariadb Connection
mariadb v2 typings were `export =` plus `declare namespace mariadb`, so
`mariadb.Connection` resolved as a namespace type. v3 exports its types
as plain named exports, so that reference fails with TS2503 and broke the
declaration build. Import `Connection` directly; the default import is
still fine for the value side.
* fix(plugin-idp-oauth): drop runtime copies oidc-provider no longer needs
oidc-provider 9.7 depended on eta, quick-lru, undici and friends; 9.12
only depends on debug, jose and koa. eta is therefore no longer installed
and afterBuild crashed with "Cannot find module 'eta'".
Copy only oidc-provider and jose. Neither the plugin source nor
oidc-provider 9.12.2 references eta, quick-lru, statuses or undici, and
oidc-provider ships its own nested dependencies, so dropping them also
keeps an unnecessary undici copy out of the plugin bundle.
* fix(build): treat mariadb as an external plugin dependency
mariadb 3 is ESM and its entry uses import attributes (`import packageJson
from './package.json' with { type: 'json' }`), which @vercel/ncc 0.36
cannot parse. Bundling it into a plugin's dist/node_modules therefore
fails with "Module parse failed: Unexpected token".
mariadb is a database driver provided at the app level, exactly like
mysql2, pg, pg-hstore and sqlite3, which are already external. Add it to
that list so plugins resolve it at runtime instead of bundling it.
* fix(plugin-file-manager): drop isEvalSupported removed in pdf.js 6
pdf.js 6 removed `isEvalSupported` from DocumentInitParameters, so passing
it fails the declaration build with TS2345.
The option existed to keep pdf.js from using eval. That hardening is no
longer opt-in: the v6 bundle contains no `eval(` or `new Function(` call
at all, so dropping the option does not weaken anything. Comment updated
to say so, and `enableXfa: false` still covers XFA scripting.
* revert(deps): keep mariadb on ^2.5.6
sequelize 6 supports mariadb 2 only: every 6.x, including 6.37.8, calls
`delete data.meta` in its mariadb dialect, and mariadb 3 defines `meta`
as non-configurable, so the call throws and every mariadb backend test
fails at app startup. mariadb 3 support only exists in sequelize 7 alpha.
This also reverts the two changes that existed solely to carry mariadb 3:
the named `Connection` type import (mariadb 3 dropped the namespace
export) and the build `external` entry (mariadb 3 is ESM with import
attributes, which @vercel/ncc 0.36 cannot parse).
Known trade-off: GHSA-cqhc-2h57-wpxf (HIGH), GHSA-42r5-vhpq-m858 and
GHSA-g5xc-5w98-jfvm stay unfixed, as none has a 2.x patch. Reachability
is limited: the driver is loaded only when DB_DIALECT=mariadb or an
external MariaDB data source is configured, the two credential-disclosure
issues additionally need an on-path attacker between app and database,
and the SQL injection needs a legacy CJK client charset that NocoBase
never sets. Setting DB_DIALECT_OPTIONS_SSL_CA mitigates both disclosure
issues. Upgrading needs a separate change that patches sequelize and
works through mariadb 3's numeric type mapping.
* fix(cli): make client asset upload survive transient OSS timeouts
`client:upload` pushes the whole dist-client tree to OSS one file at a
time, created the ali-oss client without a `timeout`, and rethrew on the
first failure. ali-oss defaults to a 60s response timeout, so a single
slow bundle failed the entire pro image build; it has now done so twice
in a row.
Raise the client timeout to 300s and retry a failed put up to three times
with a linear backoff. Both values are exported through `_test` so the
retry behaviour is covered.
Claude-Session: https://claude.ai/code/session_01UukbeCcgu3fBifyyaTkmwx
* chore(deps): drop resolutions that the dependency ranges already satisfy
Ten of the thirteen overrides were not load-bearing. Eight of them pinned
a version that the parent's own caret range already admits, so they were
working around a stale lockfile rather than a constraint: gigachat wants
axios ^1.8.2, axios wants follow-redirects ^1.16.0 and form-data ^4.0.5,
ajv wants fast-uri ^3.0.1, the MCP SDK wants hono ^4.11.4 and
@hono/node-server ^1.19.9 || ^2.0.5, minimatch wants brace-expansion
^5.0.8, exceljs wants tmp ^0.2.0. The other two matched nothing at all:
ajv-draft-04 declares ajv as a peer dependency, and no package on the
openapi-mcp-generator path depends on ajv.
Resolutions are exact overrides with no minimum-version semantics, so a
stale pin silently downgrades a transitive dependency once its parent
moves past it, warning but not failing the install. Keeping only the
three that a range genuinely excludes removes that hazard for the rest.
Verified every affected package still resolves to its patched version,
and the version sets are unchanged. @hono/node-server is now better off:
the requester that declares ^1.19.9 gets a patched 1.19.17 instead of
being forced across a major to 2.0.10.
Still required, with their removal conditions:
- **/@rushstack/node-core-library/ajv: declares ~8.13.0, excludes 8.18.0
- **/pm2/js-yaml: pm2 7.0.4 pins js-yaml 4.3.1 exactly
- **/qs: body-parser 1.20.8 wants ~6.15.1 and request wants ~6.5.2
Claude-Session: https://claude.ai/code/session_01UukbeCcgu3fBifyyaTkmwx