Commit Graph
274 Commits
Author SHA1 Message Date
nocobase[bot] 8aaf4e9fcb chore(versions): 😊 publish v2.3.0-beta.15 2026-10-15 01:17:19 +00:00
nocobase[bot] 43f741aefc chore(versions): 😊 publish v2.3.0-beta.14 2026-10-12 01:43:30 +00:00
nocobase[bot] 01779af537 chore(versions): 😊 publish v2.3.0-beta.13 2026-09-30 00:41:05 +00:00
xilesun 3bd5a9b9d1 Merge branch 'main' into next
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
2026-09-24 21:10:06 +08:00
YANG QIA 912b9395de fix(deps): upgrade vulnerable application dependencies (#10542)
* 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
2026-09-24 21:06:22 +08:00
nocobase[bot] 68fb38fba8 chore(versions): 😊 publish v2.3.0-beta.12 2026-09-24 04:17:26 +00:00
nocobase[bot] 4cf4f6ed75 chore(versions): 😊 publish v2.2.17 2026-09-24 00:48:59 +00:00
nocobase[bot] 277fc67401 chore(versions): 😊 publish v2.2.16 2026-09-21 01:21:50 +00:00
nocobase[bot] 8b4a98389f chore(versions): 😊 publish v2.3.0-beta.11 2026-09-20 06:06:00 +00:00
nocobase[bot] 491c531497 chore(versions): 😊 publish v2.2.15 2026-09-19 04:44:44 +00:00
nocobase[bot] 20d0c3c410 chore(versions): 😊 publish v2.2.14 2026-09-15 16:10:13 +00:00
nocobase[bot] a2ecc3077c chore(versions): 😊 publish v2.3.0-beta.10 2026-09-15 04:25:58 +00:00
nocobase[bot] 93842495be chore(versions): 😊 publish v2.2.13 2026-09-15 02:59:20 +00:00
nocobase[bot] 7d5287e641 chore(versions): 😊 publish v2.2.12 2026-09-11 08:11:06 +00:00
nocobase[bot] 3048339c4a chore(versions): 😊 publish v2.2.11 2026-09-11 00:53:00 +00:00
nocobase[bot] bdae0bfcda chore(versions): 😊 publish v2.2.10 2026-09-10 11:46:01 +00:00
nocobase[bot] 2945bce04d chore(versions): 😊 publish v2.3.0-beta.9 2026-09-10 07:02:24 +00:00
nocobase[bot] fea71dbe5b chore(versions): 😊 publish v2.2.9 2026-09-09 08:01:42 +00:00
nocobase[bot] 6fc29a7ab0 chore(versions): 😊 publish v2.2.8 2026-09-08 01:31:48 +00:00
nocobase[bot] f10f3daab3 chore(versions): 😊 publish v2.3.0-beta.8 2026-09-07 00:56:06 +00:00
nocobase[bot] b00c192738 Merge branch 'main' into next 2026-09-06 15:53:57 +00:00
Junyi 43e3ed7b1d fix(plugin-workflow-javascript): avoid aborting valid claimed jobs (#10461) 2026-09-06 23:53:14 +08:00
nocobase[bot] 101eabb4f3 chore(versions): 😊 publish v2.2.7 2026-09-05 15:26:00 +00:00
nocobase[bot] b9e23c232e chore(versions): 😊 publish v2.3.0-beta.7 2026-09-03 01:13:02 +00:00
nocobase[bot] bfba2e8afd chore(versions): 😊 publish v2.2.6 2026-09-02 01:21:46 +00:00
nocobase[bot] a9a3d32de9 chore(versions): 😊 publish v2.3.0-beta.6 2026-08-31 03:55:06 +00:00
nocobase[bot] 7a980490c5 chore(versions): 😊 publish v2.2.5 2026-08-31 01:48:34 +00:00
nocobase[bot] 47af9a031a chore(versions): 😊 publish v2.2.4 2026-08-28 10:27:23 +00:00
nocobase[bot] 9c0207dbe3 chore(versions): 😊 publish v2.3.0-beta.5 2026-08-28 08:05:15 +00:00
nocobase[bot] c18c1a3d9a chore(versions): 😊 publish v2.2.3 2026-08-26 14:18:07 +00:00
nocobase[bot] 1d0e6737b1 chore(versions): 😊 publish v2.2.2 2026-08-25 15:01:30 +00:00
nocobase[bot] c7b5ea77a2 chore(versions): 😊 publish v2.3.0-beta.4 2026-08-25 01:03:06 +00:00
nocobase[bot] ef642ef8ee chore(versions): 😊 publish v2.2.1 2026-08-23 17:34:21 +00:00
nocobase[bot] 0bea2a2edf chore(versions): 😊 publish v2.3.0-beta.3 2026-08-22 02:58:38 +00:00
nocobase[bot] 4fec0f5749 chore(versions): 😊 publish v2.3.0-beta.2 2026-08-22 01:56:03 +00:00
nocobase[bot] ed0b8692ff chore(versions): 😊 publish v2.2.0 2026-08-22 01:32:36 +00:00
nocobase[bot] 3dded32221 chore(versions): 😊 publish v2.2.0-beta.18 2026-08-20 12:36:16 +00:00
nocobase[bot] 3ce14a6318 Merge branch 'main' into next 2026-08-16 16:27:56 +00:00
Junyi ab41d0fa10 fix(plugin-workflow-javascript): filter task recovery candidates (#10366) 2026-08-17 00:27:16 +08:00
nocobase[bot] 5392403edc chore(versions): 😊 publish v2.1.41 2026-08-16 05:00:03 +00:00
nocobase[bot] 5b6a07fbe5 chore(versions): 😊 publish v2.1.40 2026-08-14 03:59:12 +00:00
nocobase[bot] f51272d718 chore(versions): 😊 publish v2.1.39 2026-08-11 06:13:32 +00:00
nocobase[bot] 33355e188b chore(versions): 😊 publish v2.2.0-beta.17 2026-08-10 14:21:59 +00:00
nocobase[bot] ec573190e7 chore(versions): 😊 publish v2.1.38 2026-08-10 04:58:04 +00:00
mytharcher 968bc8955f Merge branch 'main' into next 2026-08-10 01:18:10 +08:00
Junyi 1d9c479424 refactor(plugin-workflow-javascript): queue JavaScript worker jobs (#10280)
* refactor(plugin-workflow-javascript): queue JavaScript worker jobs

* fix(plugin-workflow): fix review comments

* refactor(plugin-workflow-javascript): simplify code

* fix(plugin-workflow): fix test cases

* fix(plugin-workflow): fix processor job update

* fix(plugin-workflow): fix test case

* fix(plugin-workflow-javascript): fix default concurrency

* docs(plugin-workflow-javascript): add env for concurrency
2026-08-08 20:21:27 +08:00
nocobase[bot] 7a32fd101d chore(versions): 😊 publish v2.1.37 2026-08-08 08:49:15 +00:00
nocobase[bot] f19f277707 chore(versions): 😊 publish v2.1.36 2026-08-05 10:12:28 +00:00
nocobase[bot] 2644eca8db chore(versions): 😊 publish v2.1.35 2026-08-05 07:33:33 +00:00
nocobase[bot] 9953cfe7e2 Merge branch 'main' into next 2026-08-02 16:40:34 +00:00