@backstage/backend-test-utils 1.0.0-next.2 → 1.0.1-next.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.
Files changed (2) hide show
  1. package/CHANGELOG.md +49 -0
  2. package/package.json +7 -7
package/CHANGELOG.md CHANGED
@@ -1,5 +1,54 @@
1
1
  # @backstage/backend-test-utils
2
2
 
3
+ ## 1.0.1-next.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+ - @backstage/backend-defaults@0.5.1-next.0
9
+ - @backstage/backend-app-api@1.0.1-next.0
10
+ - @backstage/plugin-events-node@0.4.1-next.0
11
+ - @backstage/plugin-auth-node@0.5.3-next.0
12
+ - @backstage/backend-plugin-api@1.0.1-next.0
13
+ - @backstage/config@1.2.0
14
+ - @backstage/errors@1.2.4
15
+ - @backstage/types@1.1.1
16
+
17
+ ## 1.0.0
18
+
19
+ ### Major Changes
20
+
21
+ - ec1b4be: Release 1.0 of the new backend system! :tada:
22
+
23
+ The backend system is finally getting promoted to 1.0.0. This means that the API is now stable and breaking changes should not occur until version 2.0.0, see our [package versioning policy](https://backstage.io/docs/overview/versioning-policy/#package-versioning-policy) for more information what this means.
24
+
25
+ This release also marks the end of the old backend system based on `createRouter` exports. Going forward backend plugins packages will start to deprecate and later this year remove exports supporting the old backend system. If you would like to help out with this transition, see https://github.com/backstage/backstage/issues/26353 or consult the [migration guide](https://backstage.io/docs/backend-system/building-plugins-and-modules/migrating/#remove-support-for-the-old-backend-system).
26
+
27
+ ### Minor Changes
28
+
29
+ - 19ff127: **BREAKING**: Removed service mocks for the identity and token manager services, which have been removed from `@backstage/backend-plugin-api`.
30
+ - d425fc4: **BREAKING**: The return values from `createBackendPlugin`, `createBackendModule`, and `createServiceFactory` are now simply `BackendFeature` and `ServiceFactory`, instead of the previously deprecated form of a function that returns them. For this reason, `createServiceFactory` also no longer accepts the callback form where you provide direct options to the service. This also affects all `coreServices.*` service refs.
31
+
32
+ This may in particular affect tests; if you were effectively doing `createBackendModule({...})()` (note the parentheses), you can now remove those extra parentheses at the end. You may encounter cases of this in your `packages/backend/src/index.ts` too, where you add plugins, modules, and services. If you were using `createServiceFactory` with a function as its argument for the purpose of passing in options, this pattern has been deprecated for a while and is no longer supported. You may want to explore the new multiton patterns to achieve your goals, or moving settings to app-config.
33
+
34
+ As part of this change, the `IdentityFactoryOptions` type was removed, and can no longer be used to tweak that service. The identity service was also deprecated some time ago, and you will want to [migrate to the new auth system](https://backstage.io/docs/tutorials/auth-service-migration) if you still rely on it.
35
+
36
+ ### Patch Changes
37
+
38
+ - 710f621: Added missing service mock for `mockServices.rootConfig.mock`, and fixed the definition of `mockServices.rootHttpRouter.factory` to not have a duplicate callback.
39
+ - f421d2a: Make MySQL pool settings a bit more lax
40
+ - 0363bf1: There is a new `mockErrorHandler` utility to help in mocking the error middleware in tests.
41
+ - c2b63ab: Updated dependency `supertest` to `^7.0.0`.
42
+ - Updated dependencies
43
+ - @backstage/backend-defaults@0.5.0
44
+ - @backstage/backend-app-api@1.0.0
45
+ - @backstage/backend-plugin-api@1.0.0
46
+ - @backstage/plugin-auth-node@0.5.2
47
+ - @backstage/plugin-events-node@0.4.0
48
+ - @backstage/config@1.2.0
49
+ - @backstage/errors@1.2.4
50
+ - @backstage/types@1.1.1
51
+
3
52
  ## 1.0.0-next.2
4
53
 
5
54
  ### Major Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/backend-test-utils",
3
- "version": "1.0.0-next.2",
3
+ "version": "1.0.1-next.0",
4
4
  "description": "Test helpers library for Backstage backends",
5
5
  "backstage": {
6
6
  "role": "node-library"
@@ -42,13 +42,13 @@
42
42
  "test": "backstage-cli package test"
43
43
  },
44
44
  "dependencies": {
45
- "@backstage/backend-app-api": "^1.0.0-next.2",
46
- "@backstage/backend-defaults": "^0.5.0-next.2",
47
- "@backstage/backend-plugin-api": "^1.0.0-next.2",
45
+ "@backstage/backend-app-api": "^1.0.1-next.0",
46
+ "@backstage/backend-defaults": "^0.5.1-next.0",
47
+ "@backstage/backend-plugin-api": "^1.0.1-next.0",
48
48
  "@backstage/config": "^1.2.0",
49
49
  "@backstage/errors": "^1.2.4",
50
- "@backstage/plugin-auth-node": "^0.5.2-next.2",
51
- "@backstage/plugin-events-node": "^0.4.0-next.2",
50
+ "@backstage/plugin-auth-node": "^0.5.3-next.0",
51
+ "@backstage/plugin-events-node": "^0.4.1-next.0",
52
52
  "@backstage/types": "^1.1.1",
53
53
  "@keyv/memcache": "^1.3.5",
54
54
  "@keyv/redis": "^2.5.3",
@@ -72,7 +72,7 @@
72
72
  "yn": "^4.0.0"
73
73
  },
74
74
  "devDependencies": {
75
- "@backstage/cli": "^0.27.1-next.2",
75
+ "@backstage/cli": "^0.28.0-next.0",
76
76
  "@types/supertest": "^2.0.8",
77
77
  "supertest": "^7.0.0"
78
78
  },