@strapi/core 5.12.0-beta.1 → 5.12.0

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.
@@ -6,6 +6,7 @@ declare const _default: Readonly<{
6
6
  }) => Promise<void>;
7
7
  readonly isEE: boolean;
8
8
  readonly seats: number | undefined;
9
+ readonly type: string | undefined;
9
10
  features: Readonly<{
10
11
  list: () => {
11
12
  [key: string]: any;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ee/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;;;;;;;;;;;;;;;;;iCAsPb,MAAM;;;AAfnC,wBAiBG"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ee/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;;;;;;;;;;;;;;;;;;iCA0Pb,MAAM;;;AAnBnC,wBAqBG"}
@@ -1 +1 @@
1
- {"version":3,"file":"license.d.ts","sourceRoot":"","sources":["../../src/ee/license.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAI1C,UAAU,WAAW;IACnB,IAAI,EAAE,QAAQ,GAAG,QAAQ,GAAG,MAAM,CAAC;IACnC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;KAAE,CAAC,CAAC;CACvE;AAkBD,cAAM,iBAAkB,SAAQ,KAAK;IACnC,cAAc,UAAS;gBAEX,OAAO,EAAE,MAAM,EAAE,cAAc,UAAQ;CAKpD;AAED,QAAA,MAAM,WAAW,cAAe,MAAM,uBASrC,CAAC;AAEF,QAAA,MAAM,aAAa,YAAa,MAAM,gBA2BrC,CAAC;AAMF,QAAA,MAAM,YAAY,eACJ;IAAE,MAAM,EAAE,KAAK,MAAM,CAAA;CAAE,OAC9B,MAAM,aACA,MAAM,iBA4BlB,CAAC;AAEF,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,YAAY,EAAE,iBAAiB,EAAE,CAAC"}
1
+ {"version":3,"file":"license.d.ts","sourceRoot":"","sources":["../../src/ee/license.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAI1C,UAAU,WAAW;IACnB,IAAI,EAAE,QAAQ,GAAG,QAAQ,GAAG,MAAM,CAAC;IACnC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;KAAE,CAAC,CAAC;CACvE;AAmBD,cAAM,iBAAkB,SAAQ,KAAK;IACnC,cAAc,UAAS;gBAEX,OAAO,EAAE,MAAM,EAAE,cAAc,UAAQ;CAKpD;AAED,QAAA,MAAM,WAAW,cAAe,MAAM,uBASrC,CAAC;AAEF,QAAA,MAAM,aAAa,YAAa,MAAM,gBA2BrC,CAAC;AAMF,QAAA,MAAM,YAAY,eACJ;IAAE,MAAM,EAAE,KAAK,MAAM,CAAA;CAAE,OAC9B,MAAM,aACA,MAAM,iBA4BlB,CAAC;AAEF,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,YAAY,EAAE,iBAAiB,EAAE,CAAC"}
package/dist/index.js CHANGED
@@ -312,7 +312,7 @@ const getDirs = ({ appDir, distDir }, config)=>({
312
312
  });
313
313
 
314
314
  var name = "@strapi/core";
315
- var version = "5.12.0-beta.1";
315
+ var version = "5.12.0";
316
316
  var description = "Core of Strapi";
317
317
  var homepage = "https://strapi.io";
318
318
  var bugs = {
@@ -368,14 +368,14 @@ var dependencies = {
368
368
  "@koa/cors": "5.0.0",
369
369
  "@koa/router": "12.0.2",
370
370
  "@paralleldrive/cuid2": "2.2.2",
371
- "@strapi/admin": "5.12.0-beta.1",
372
- "@strapi/database": "5.12.0-beta.1",
373
- "@strapi/generators": "5.12.0-beta.1",
374
- "@strapi/logger": "5.12.0-beta.1",
375
- "@strapi/permissions": "5.12.0-beta.1",
376
- "@strapi/types": "5.12.0-beta.1",
377
- "@strapi/typescript-utils": "5.12.0-beta.1",
378
- "@strapi/utils": "5.12.0-beta.1",
371
+ "@strapi/admin": "5.12.0",
372
+ "@strapi/database": "5.12.0",
373
+ "@strapi/generators": "5.12.0",
374
+ "@strapi/logger": "5.12.0",
375
+ "@strapi/permissions": "5.12.0",
376
+ "@strapi/types": "5.12.0",
377
+ "@strapi/typescript-utils": "5.12.0",
378
+ "@strapi/utils": "5.12.0",
379
379
  bcryptjs: "2.4.3",
380
380
  boxen: "5.1.2",
381
381
  chalk: "4.1.2",
@@ -438,9 +438,9 @@ var devDependencies = {
438
438
  "@types/node": "18.19.24",
439
439
  "@types/node-schedule": "2.1.7",
440
440
  "@types/statuses": "2.0.1",
441
- "eslint-config-custom": "5.12.0-beta.1",
441
+ "eslint-config-custom": "5.12.0",
442
442
  supertest: "6.3.3",
443
- tsconfig: "5.12.0-beta.1"
443
+ tsconfig: "5.12.0"
444
444
  };
445
445
  var engines = {
446
446
  node: ">=18.0.0 <=22.x.x",
@@ -1201,6 +1201,9 @@ const DEFAULT_FEATURES = {
1201
1201
  options: {
1202
1202
  retentionDays: 99999
1203
1203
  }
1204
+ },
1205
+ {
1206
+ name: 'cms-advanced-preview'
1204
1207
  }
1205
1208
  ]
1206
1209
  };
@@ -1515,6 +1518,9 @@ var index = Object.freeze({
1515
1518
  get seats () {
1516
1519
  return ee.licenseInfo.seats;
1517
1520
  },
1521
+ get type () {
1522
+ return ee.licenseInfo.type;
1523
+ },
1518
1524
  features: Object.freeze({
1519
1525
  list,
1520
1526
  get,
@@ -6934,6 +6940,11 @@ const EVENTS = {
6934
6940
  if (attribute.type !== 'relation' || attribute.target !== uid || !(attribute.inversedBy || attribute.mappedBy)) {
6935
6941
  continue;
6936
6942
  }
6943
+ // If it's a self referencing relation, there is no need to sync any relation
6944
+ // The order will already be handled as both sides are inside the same content type
6945
+ if (model.uid === uid) {
6946
+ continue;
6947
+ }
6937
6948
  const joinTable = attribute.joinTable;
6938
6949
  if (!joinTable) {
6939
6950
  continue;
@@ -6993,6 +7004,10 @@ const EVENTS = {
6993
7004
  const sourceColumn = joinTable.inverseJoinColumn.name;
6994
7005
  const targetColumn = joinTable.joinColumn.name;
6995
7006
  const orderColumn = joinTable.orderColumnName;
7007
+ // Failsafe in case those don't exist
7008
+ if (!sourceColumn || !targetColumn || !orderColumn) {
7009
+ continue;
7010
+ }
6996
7011
  // Update order values for each relation
6997
7012
  // TODO: Find a way to batch it more efficiently
6998
7013
  await strapiUtils.async.map(relations, (relation)=>{