@momentumcms/server-express 0.5.6 → 0.5.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## 0.5.8 (2026-03-10)
2
+
3
+ This was a version bump only for server-express to align it with other projects, there were no code changes.
4
+
5
+ ## 0.5.7 (2026-03-10)
6
+
7
+ This was a version bump only for server-express to align it with other projects, there were no code changes.
8
+
1
9
  ## 0.5.6 (2026-03-10)
2
10
 
3
11
  This was a version bump only for server-express to align it with other projects, there were no code changes.
package/index.cjs CHANGED
@@ -3685,6 +3685,9 @@ var CollectionOperationsImpl = class _CollectionOperationsImpl {
3685
3685
  return true;
3686
3686
  }
3687
3687
  async checkAccess(operation, id, data) {
3688
+ if (this.context.overrideAccess) {
3689
+ return;
3690
+ }
3688
3691
  const accessFn = this.collectionConfig.access?.[operation];
3689
3692
  if (!accessFn) {
3690
3693
  return;
@@ -6528,6 +6531,9 @@ var RateLimiter = class _RateLimiter {
6528
6531
 
6529
6532
  // libs/server-core/src/lib/schema-sync.ts
6530
6533
  async function syncDatabaseSchema(config, log) {
6534
+ if (config.db.adapter.registerCollections) {
6535
+ config.db.adapter.registerCollections(config.collections);
6536
+ }
6531
6537
  if (shouldSyncSchema(config)) {
6532
6538
  if (config.db.adapter.initialize) {
6533
6539
  log.info("Initializing database schema...");
package/index.js CHANGED
@@ -3641,6 +3641,9 @@ var CollectionOperationsImpl = class _CollectionOperationsImpl {
3641
3641
  return true;
3642
3642
  }
3643
3643
  async checkAccess(operation, id, data) {
3644
+ if (this.context.overrideAccess) {
3645
+ return;
3646
+ }
3644
3647
  const accessFn = this.collectionConfig.access?.[operation];
3645
3648
  if (!accessFn) {
3646
3649
  return;
@@ -6497,6 +6500,9 @@ var RateLimiter = class _RateLimiter {
6497
6500
 
6498
6501
  // libs/server-core/src/lib/schema-sync.ts
6499
6502
  async function syncDatabaseSchema(config, log) {
6503
+ if (config.db.adapter.registerCollections) {
6504
+ config.db.adapter.registerCollections(config.collections);
6505
+ }
6500
6506
  if (shouldSyncSchema(config)) {
6501
6507
  if (config.db.adapter.initialize) {
6502
6508
  log.info("Initializing database schema...");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momentumcms/server-express",
3
- "version": "0.5.6",
3
+ "version": "0.5.8",
4
4
  "description": "Express adapter for Momentum CMS with Angular SSR support",
5
5
  "license": "MIT",
6
6
  "author": "Momentum CMS Contributors",