Skip to content

chore(deps): upgrade @objectstack 9.11.0 → 10.0.0#74

Merged
xuyushun441-sys merged 1 commit into
mainfrom
chore/upgrade-objectstack-10.0.0
Jun 22, 2026
Merged

chore(deps): upgrade @objectstack 9.11.0 → 10.0.0#74
xuyushun441-sys merged 1 commit into
mainfrom
chore/upgrade-objectstack-10.0.0

Conversation

@xuyushun441-sys

Copy link
Copy Markdown
Contributor

What

Upgrade every template's @objectstack/* deps and the workspace minimumReleaseAgeExclude pins from ^9.11.0 to ^10.0.0.

Upgrade-note evaluation (9 → 10)

The 10.0 major bundles two ADRs:

  • ADR-0057 — ERP authorization core. Renames the shipped system object sys_departmentsys_business_unit (no compatibility alias), adds permission-grant access depth (own/own_and_reports/unit/unit_and_below/org), and seeds stack-declared roles/sharingRules into sys_role/sys_sharing_rule at boot. Hierarchy-relative scopes require requires: ['hierarchy-security'].
  • ADR-0058 — unified CEL→FilterCondition predicate surface. Criteria sharing-rule / RLS conditions now compile through the same CEL pipeline as formula/validation predicates; non-pushdownable predicates become authoring errors.

Impact assessment: No template references sys_department, none use hierarchy-relative access-depth scopes, and no template uses raw RLS using/check. So the headline rename needed no migration.

The one adjustment

ADR-0058 binds the record under the record namespace for sharing-rule conditions, so a bare field reference is now a build error. packages/content's topic_team_scope rule was rewritten:

- condition: { dialect: 'cel', source: 'visibility == "team"' },
+ condition: { dialect: 'cel', source: 'record.visibility == "team"' },

(packages/hr's time_off_hr_admin_visibility uses the constant true, so it was unaffected.)

Verification

End-to-end against the composed all env (9 apps, 41 objects, 30 flows):

  • pnpm -r typecheck, pnpm -r build, pnpm format:check, pnpm -r test — all green.
  • Clean boot: Server is ready · seeded on empty DB · zero server ERROR lines · 33 plugins.
  • Browser (console, zh-CN): home (11 apps), content_topic list (8 seed rows, grouped), ROI dashboard (KPIs 14040/708/87/21150 + bar chart + 90-day time-series) — no client console errors, no failed network requests.
  • Authorization core live: sys_business_unit resolves, sys_department404 (rename, no alias), and stack-declared roles (21) + sharing rules (2: topic_team_scope, time_off_hr_admin_visibility) seeded into sys_role/sys_sharing_rule.

🤖 Generated with Claude Code

Bump every template's @objectstack/* deps and the workspace
minimumReleaseAgeExclude pins to 10.0.0.

The 10.0 major lands ADR-0057 (ERP authorization core) + ADR-0058 (unified
CEL→filter predicate surface). Evaluated impact on the templates:

- Breaking rename sys_department → sys_business_unit (no alias): no template
  references the old object, and none use hierarchy-relative access-depth
  scopes, so no migration was required.
- ADR-0058 routes criteria sharing-rule conditions through the same CEL
  compiler as formula/validation predicates (record bound under `record`).
  packages/content's topic_team_scope rule needed the one code change:
  `visibility == "team"` → `record.visibility == "team"` (a bare field
  reference is now a build error).

Verified end-to-end against the composed `all` env (9 apps, 41 objects, 30
flows): typecheck + build + format:check + test green; clean boot with
`seeded on empty DB` and zero server ERROR lines; console (home, content_topic
list, ROI dashboard KPIs + time-series) renders with no client console errors;
authorization core live — sys_business_unit resolves, sys_department 404s, and
stack-declared roles (21) + sharing rules (2) seeded into sys_role /
sys_sharing_rule.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@xuyushun441-sys xuyushun441-sys force-pushed the chore/upgrade-objectstack-10.0.0 branch from 7ead059 to 6af23d9 Compare June 22, 2026 10:50
@xuyushun441-sys xuyushun441-sys merged commit e107166 into main Jun 22, 2026
3 checks passed
@xuyushun441-sys xuyushun441-sys deleted the chore/upgrade-objectstack-10.0.0 branch June 22, 2026 10:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants