132 Commits
Author SHA1 Message Date
nocobase[bot] 86ad59fcb0 chore(versions): 😊 publish v2.4.0-alpha.23 2026-12-06 13:22:24 +00:00
nocobase[bot] b4a2da3ba0 chore(versions): 😊 publish v2.4.0-alpha.22 2026-12-03 06:19:09 +00:00
nocobase[bot] 86f836d2b6 chore(versions): 😊 publish v2.4.0-alpha.21 2026-12-02 06:29:17 +00:00
nocobase[bot] 6996125296 chore(versions): 😊 publish v2.4.0-alpha.20 2026-11-25 07:09:28 +00:00
nocobase[bot] 76e486f44d chore(versions): 😊 publish v2.4.0-alpha.19 2026-11-24 11:09:51 +00:00
nocobase[bot] 3dc567ffb9 chore(versions): 😊 publish v2.4.0-alpha.18 2026-11-14 05:16:04 +00:00
nocobase[bot] a45e79bd5b chore(versions): 😊 publish v2.4.0-alpha.17 2026-11-08 10:55:35 +00:00
nocobase[bot] 039334531d chore(versions): 😊 publish v2.4.0-alpha.16 2026-11-03 05:34:25 +00:00
nocobase[bot] 8b54e96456 chore(versions): 😊 publish v2.4.0-alpha.15 2026-10-29 15:29:07 +00:00
nocobase[bot] 0edf0810bc chore(versions): 😊 publish v2.4.0-alpha.14 2026-10-29 14:23:37 +00:00
PiEgg 111d3b8652 docs: point NocoBase 2 documentation links to nocode.docs.nocobase.com (#11163) 2026-10-25 11:48:26 -04:00
nocobase[bot] f815df756b chore(versions): 😊 publish v2.4.0-alpha.13 2026-10-24 03:36:04 +00:00
nocobase[bot] 9829ce2ba1 chore(versions): 😊 publish v2.4.0-alpha.12 2026-10-22 12:32:00 +00:00
nocobase[bot] 36e25cf0fe chore(versions): 😊 publish v2.4.0-alpha.11 2026-10-16 01:18:36 +00:00
nocobase[bot] 0fd4a2cf6f chore(versions): 😊 publish v2.4.0-alpha.10 2026-10-12 03:00:14 +00:00
nocobase[bot] 68fa52702d chore(versions): 😊 publish v2.4.0-alpha.9 2026-09-30 15:50:55 +00:00
xilesun f9f77620be Merge branch 'next' into develop
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
2026-09-24 21:33:08 +08: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] ee4bd9a780 chore(versions): 😊 publish v2.4.0-alpha.8 2026-09-24 07:05:37 +00: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] 015da01cbf chore(versions): 😊 publish v2.4.0-alpha.7 2026-09-20 07:29:25 +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] 25b05f524b chore(versions): 😊 publish v2.4.0-alpha.6 2026-09-15 13:06:55 +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] 047862cd61 chore(versions): 😊 publish v2.4.0-alpha.5 2026-09-09 02:14:25 +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] bccf6c7538 chore(versions): 😊 publish v2.4.0-alpha.4 2026-09-06 13:02:12 +00: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] a9d026236f chore(versions): 😊 publish v2.4.0-alpha.3 2026-09-02 12:23:37 +00:00
nocobase[bot] df024e07a8 chore(versions): 😊 publish v2.4.0-alpha.2 2026-09-02 08:34:56 +00:00
nocobase[bot] 72a27f17ae chore(versions): 😊 publish v2.4.0-alpha.1 2026-09-02 04:07:48 +00:00
nocobase[bot] bfba2e8afd chore(versions): 😊 publish v2.2.6 2026-09-02 01:21:46 +00:00
nocobase[bot] b3a2c2bd3d chore(versions): 😊 publish v3.0.0-alpha.13 2026-08-31 06:13:20 +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