@forge/notification 0.3.6 → 0.3.7-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,20 @@
1
1
  # @forge/notification
2
2
 
3
+ ## 0.3.7-next.1
4
+
5
+ ### Patch Changes
6
+
7
+ - efff3f1: Remove uuid dependency
8
+ - Updated dependencies [7d660c1]
9
+ - @forge/api@7.2.0-next.1
10
+
11
+ ## 0.3.7-next.0
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies [56e38e9]
16
+ - @forge/api@7.2.0-next.0
17
+
3
18
  ## 0.3.6
4
19
 
5
20
  ### Patch Changes
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.NotificationApi = void 0;
4
4
  const api_1 = require("@forge/api");
5
- const uuid_1 = require("uuid");
5
+ const crypto_1 = require("crypto");
6
6
  const fetch_1 = require("./fetch");
7
7
  const validators_1 = require("./validators");
8
8
  const util_1 = require("./util");
@@ -13,7 +13,7 @@ class NotificationApi {
13
13
  }
14
14
  async sendNotification(payload) {
15
15
  (0, validators_1.validateNotificationPayload)(payload);
16
- const triggerId = (0, uuid_1.v4)();
16
+ const triggerId = (0, crypto_1.randomUUID)();
17
17
  const notificationPORequest = (0, util_1.createNotificationPORequest)(payload, triggerId);
18
18
  const response = await (0, fetch_1.post)(fetch_1.POST_OFFICE_FORGE_NOTIFICATION_PATH, notificationPORequest, this.apiClient);
19
19
  await (0, validators_1.validateAPIResponse)(response);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forge/notification",
3
- "version": "0.3.6",
3
+ "version": "0.3.7-next.1",
4
4
  "description": "Forge Notification SDK",
5
5
  "main": "out/index.js",
6
6
  "types": "out/index.d.ts",
@@ -10,12 +10,10 @@
10
10
  "compile": "tsc -b -v"
11
11
  },
12
12
  "dependencies": {
13
- "@forge/api": "^7.1.4",
14
- "uuid": "^9.0.1"
13
+ "@forge/api": "^7.2.0-next.1"
15
14
  },
16
15
  "devDependencies": {
17
16
  "@types/node": "20.19.1",
18
- "@types/uuid": "^9.0.8",
19
17
  "expect-type": "^0.17.3",
20
18
  "jest-when": "^3.6.0"
21
19
  },