@taskcluster/client-web 107.0.0 → 108.1.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taskcluster/client-web",
3
- "version": "107.0.0",
3
+ "version": "108.1.0",
4
4
  "type": "module",
5
5
  "main": "src/index.js",
6
6
  "exports": "./src/index.js",
@@ -17,18 +17,18 @@
17
17
  "test": "vitest run"
18
18
  },
19
19
  "devDependencies": {
20
- "@biomejs/biome": "^2.5.5",
21
- "@vitest/browser": "^4.1.10",
22
- "@vitest/browser-playwright": "^4.1.10",
20
+ "@biomejs/biome": "^2.5.10",
21
+ "@vitest/browser": "^4.1.11",
22
+ "@vitest/browser-playwright": "^4.1.11",
23
23
  "playwright": "1.62.1",
24
24
  "vite-plugin-node-polyfills": "^0.28.0",
25
- "vitest": "^4.1.10"
25
+ "vitest": "^4.1.11"
26
26
  },
27
27
  "dependencies": {
28
28
  "crypto-js": "^4.2.0",
29
29
  "hawk": "^9.0.2",
30
- "query-string": "^9.4.1",
31
- "taskcluster-lib-urls": "^13.0.2"
30
+ "query-string": "^9.5.0",
31
+ "taskcluster-lib-urls": "^13.1.0"
32
32
  },
33
33
  "publishConfig": {
34
34
  "access": "public"
@@ -27,6 +27,19 @@ export default class GithubEvents extends Client {
27
27
 
28
28
  return this.normalizePattern(entry, pattern);
29
29
  }
30
+ // When a GitHub push event changes a repository's `.taskcluster.yml` it will
31
+ // be broadcast on this exchange with the designated `organization` and
32
+ // `repository` in the routing-key.
33
+ // The payload names the repository and the ref that was pushed to, and
34
+ // nothing more. The file itself does not travel with the message, so a
35
+ // consumer reading it cannot be steered by the pushed commits.
36
+ // Detection is best effort. A force push that drops a commit reports no
37
+ // changed files to GitHub, so reverting the file that way sends no message.
38
+ taskclusterYmlUpdate(pattern) {
39
+ const entry = {"exchange":"taskcluster-yml-update","name":"taskclusterYmlUpdate","routingKey":[{"constant":"primary","multipleWords":false,"name":"routingKeyKind","required":true},{"multipleWords":false,"name":"organization","required":true},{"multipleWords":false,"name":"repository","required":true}],"schema":"v1/taskcluster-yml-update-message.json#","type":"topic-exchange"};
40
+
41
+ return this.normalizePattern(entry, pattern);
42
+ }
30
43
  // When a GitHub release event is posted it will be broadcast on this
31
44
  // exchange with the designated `organization` and `repository`
32
45
  // in the routing-key along with event specific metadata in the payload.