@strapi/strapi 4.11.1 → 4.11.2

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.
@@ -94,7 +94,7 @@ const registerAPIRoutes = (strapi) => {
94
94
  // TODO: remove once auth setup
95
95
  // pass meta down to compose endpoint
96
96
  router.type = 'content-api';
97
- router.routes.forEach((route) => {
97
+ router.routes?.forEach((route) => {
98
98
  generateRouteScope(route);
99
99
  route.info = { apiName };
100
100
  });
@@ -1,3 +1,5 @@
1
1
  export type Service = {
2
- [key: keyof any]: unknown;
2
+ // TODO [V5] Consider changing the any value to unknown.
3
+ // See: https://github.com/strapi/strapi/issues/16993 and https://github.com/strapi/strapi/pull/17020 for further information
4
+ [key: keyof any]: any;
3
5
  };
@@ -82,7 +82,9 @@ export interface Strapi {
82
82
  /**
83
83
  * Find a controller using its unique identifier
84
84
  */
85
- controller<TContentTypeUID extends Common.UID.Controller>(uid: TContentTypeUID): Shared.Controllers[TContentTypeUID];
85
+ controller<TContentTypeUID extends Common.UID.Controller>(
86
+ uid: TContentTypeUID
87
+ ): Shared.Controllers[TContentTypeUID];
86
88
 
87
89
  /**
88
90
  * Getter for the Strapi content types container
@@ -48,7 +48,10 @@ export type RouterConfig<TContentTypeUID extends Common.UID.ContentType> = {
48
48
  except?: string[];
49
49
  config: Utils.Expression.MatchFirst<
50
50
  [
51
- Utils.Expression.Test<Common.UID.IsCollectionType<TContentTypeUID>, CollectionTypeRouterConfig>,
51
+ Utils.Expression.Test<
52
+ Common.UID.IsCollectionType<TContentTypeUID>,
53
+ CollectionTypeRouterConfig
54
+ >,
52
55
  Utils.Expression.Test<Common.UID.IsSingleType<TContentTypeUID>, SingleTypeRouterConfig>
53
56
  ],
54
57
  Generic
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@strapi/strapi",
3
- "version": "4.11.1",
3
+ "version": "4.11.2",
4
4
  "description": "An open source headless CMS solution to create and manage your own API. It provides a powerful dashboard and features to make your life easier. Databases supported: MySQL, MariaDB, PostgreSQL, SQLite",
5
5
  "keywords": [
6
6
  "strapi",
@@ -81,19 +81,19 @@
81
81
  "dependencies": {
82
82
  "@koa/cors": "3.4.3",
83
83
  "@koa/router": "10.1.1",
84
- "@strapi/admin": "4.11.1",
85
- "@strapi/data-transfer": "4.11.1",
86
- "@strapi/database": "4.11.1",
87
- "@strapi/generate-new": "4.11.1",
88
- "@strapi/generators": "4.11.1",
89
- "@strapi/logger": "4.11.1",
90
- "@strapi/permissions": "4.11.1",
91
- "@strapi/plugin-content-manager": "4.11.1",
92
- "@strapi/plugin-content-type-builder": "4.11.1",
93
- "@strapi/plugin-email": "4.11.1",
94
- "@strapi/plugin-upload": "4.11.1",
95
- "@strapi/typescript-utils": "4.11.1",
96
- "@strapi/utils": "4.11.1",
84
+ "@strapi/admin": "4.11.2",
85
+ "@strapi/data-transfer": "4.11.2",
86
+ "@strapi/database": "4.11.2",
87
+ "@strapi/generate-new": "4.11.2",
88
+ "@strapi/generators": "4.11.2",
89
+ "@strapi/logger": "4.11.2",
90
+ "@strapi/permissions": "4.11.2",
91
+ "@strapi/plugin-content-manager": "4.11.2",
92
+ "@strapi/plugin-content-type-builder": "4.11.2",
93
+ "@strapi/plugin-email": "4.11.2",
94
+ "@strapi/plugin-upload": "4.11.2",
95
+ "@strapi/typescript-utils": "4.11.2",
96
+ "@strapi/utils": "4.11.2",
97
97
  "bcryptjs": "2.4.3",
98
98
  "boxen": "5.1.2",
99
99
  "chalk": "4.1.2",
@@ -142,5 +142,5 @@
142
142
  "node": ">=14.19.1 <=18.x.x",
143
143
  "npm": ">=6.0.0"
144
144
  },
145
- "gitHead": "6cdb5a7737495ca0c7179076ade5361e182ea169"
145
+ "gitHead": "6f7c815c2bbe41dda7d77136eb8df736c028ff67"
146
146
  }