@backstage/plugin-notifications-backend 0.5.7 → 0.5.8-next.1

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,5 +1,38 @@
1
1
  # @backstage/plugin-notifications-backend
2
2
 
3
+ ## 0.5.8-next.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+ - @backstage/config@1.3.3-next.0
9
+ - @backstage/catalog-model@1.7.5-next.0
10
+ - @backstage/backend-plugin-api@1.4.1-next.0
11
+ - @backstage/plugin-auth-node@0.6.5-next.0
12
+ - @backstage/plugin-notifications-common@0.0.10-next.0
13
+ - @backstage/plugin-signals-node@0.1.22-next.0
14
+ - @backstage/plugin-catalog-node@1.17.2-next.0
15
+ - @backstage/plugin-notifications-node@0.2.17-next.0
16
+ - @backstage/plugin-events-node@0.4.13-next.0
17
+
18
+ ## 0.5.8-next.0
19
+
20
+ ### Patch Changes
21
+
22
+ - 9a5a73f: Fix `addTopic` migration when `user_settings` present
23
+ - Updated dependencies
24
+ - @backstage/plugin-auth-node@0.6.4
25
+ - @backstage/backend-plugin-api@1.4.0
26
+ - @backstage/plugin-catalog-node@1.17.1
27
+ - @backstage/plugin-events-node@0.4.12
28
+ - @backstage/plugin-notifications-node@0.2.16
29
+ - @backstage/catalog-model@1.7.4
30
+ - @backstage/config@1.3.2
31
+ - @backstage/errors@1.2.7
32
+ - @backstage/types@1.2.1
33
+ - @backstage/plugin-notifications-common@0.0.9
34
+ - @backstage/plugin-signals-node@0.1.21
35
+
3
36
  ## 0.5.7
4
37
 
5
38
  ### Patch Changes
@@ -18,14 +18,10 @@ const crypto = require('crypto');
18
18
  exports.up = async function up(knex) {
19
19
  await knex.schema.alterTable('user_settings', table => {
20
20
  table.string('topic').nullable().after('origin');
21
- table.string('settings_key_hash', 64).notNullable();
21
+ table.string('settings_key_hash', 64).nullable();
22
22
  table.dropUnique([], 'user_settings_unique_idx');
23
23
  });
24
24
 
25
- await knex.schema.alterTable('user_settings', table => {
26
- table.unique(['settings_key_hash'], 'user_settings_unique_idx');
27
- });
28
-
29
25
  const rows = await knex('user_settings').select('user', 'channel', 'origin');
30
26
  for (const row of rows) {
31
27
  const rawKey = `${row.user}|${row.channel}|${row.origin}|}`;
@@ -35,10 +31,14 @@ exports.up = async function up(knex) {
35
31
  user: row.user,
36
32
  channel: row.channel,
37
33
  origin: row.origin,
38
- topic: row.topic,
39
34
  })
40
35
  .update({ settings_key_hash: hash });
41
36
  }
37
+
38
+ await knex.schema.alterTable('user_settings', table => {
39
+ table.string('settings_key_hash', 64).notNullable().alter();
40
+ table.unique(['settings_key_hash'], 'user_settings_unique_idx');
41
+ });
42
42
  };
43
43
 
44
44
  exports.down = async function down(knex) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/plugin-notifications-backend",
3
- "version": "0.5.7",
3
+ "version": "0.5.8-next.1",
4
4
  "backstage": {
5
5
  "role": "backend-plugin",
6
6
  "pluginId": "notifications",
@@ -42,17 +42,17 @@
42
42
  "test": "backstage-cli package test"
43
43
  },
44
44
  "dependencies": {
45
- "@backstage/backend-plugin-api": "^1.4.0",
46
- "@backstage/catalog-model": "^1.7.4",
47
- "@backstage/config": "^1.3.2",
48
- "@backstage/errors": "^1.2.7",
49
- "@backstage/plugin-auth-node": "^0.6.4",
50
- "@backstage/plugin-catalog-node": "^1.17.1",
51
- "@backstage/plugin-events-node": "^0.4.12",
52
- "@backstage/plugin-notifications-common": "^0.0.9",
53
- "@backstage/plugin-notifications-node": "^0.2.16",
54
- "@backstage/plugin-signals-node": "^0.1.21",
55
- "@backstage/types": "^1.2.1",
45
+ "@backstage/backend-plugin-api": "1.4.1-next.0",
46
+ "@backstage/catalog-model": "1.7.5-next.0",
47
+ "@backstage/config": "1.3.3-next.0",
48
+ "@backstage/errors": "1.2.7",
49
+ "@backstage/plugin-auth-node": "0.6.5-next.0",
50
+ "@backstage/plugin-catalog-node": "1.17.2-next.0",
51
+ "@backstage/plugin-events-node": "0.4.13-next.0",
52
+ "@backstage/plugin-notifications-common": "0.0.10-next.0",
53
+ "@backstage/plugin-notifications-node": "0.2.17-next.0",
54
+ "@backstage/plugin-signals-node": "0.1.22-next.0",
55
+ "@backstage/types": "1.2.1",
56
56
  "express": "^4.17.1",
57
57
  "express-promise-router": "^4.1.0",
58
58
  "knex": "^3.0.0",
@@ -62,13 +62,13 @@
62
62
  "yn": "^4.0.0"
63
63
  },
64
64
  "devDependencies": {
65
- "@backstage/backend-defaults": "^0.11.0",
66
- "@backstage/backend-test-utils": "^1.6.0",
67
- "@backstage/cli": "^0.33.0",
68
- "@backstage/plugin-auth-backend": "^0.25.1",
69
- "@backstage/plugin-auth-backend-module-guest-provider": "^0.2.9",
70
- "@backstage/plugin-events-backend": "^0.5.3",
71
- "@backstage/plugin-signals-backend": "^0.3.5",
65
+ "@backstage/backend-defaults": "0.11.1-next.1",
66
+ "@backstage/backend-test-utils": "1.7.0-next.1",
67
+ "@backstage/cli": "0.33.1-next.1",
68
+ "@backstage/plugin-auth-backend": "0.25.2-next.0",
69
+ "@backstage/plugin-auth-backend-module-guest-provider": "0.2.10-next.0",
70
+ "@backstage/plugin-events-backend": "0.5.4-next.0",
71
+ "@backstage/plugin-signals-backend": "0.3.6-next.0",
72
72
  "@types/express": "^4.17.6",
73
73
  "@types/supertest": "^2.0.8",
74
74
  "msw": "^1.0.0",