taskcluster-lib-urls is a JavaScript library designed to generate consistent URLs for various Taskcluster resources and deployment methods. It currently maintains version 13.0.2, with major versions releasing periodically, indicating active development and integration of new Taskcluster features. This package serves as the canonical reference implementation for defining Taskcluster URL paths, ensuring uniformity across different language bindings (e.g., Python, Go). It provides a programmatic way to construct URLs for Taskcluster APIs, schemas, documentation, and UI components, either by passing a root URL with each call or by pre-configuring an instance with a fixed root URL for convenience. The library adheres to the Taskcluster URL Format specification, making it essential for any application interacting with the Taskcluster ecosystem.
npm install taskcluster-lib-urlsVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to instantiate the library with a base root URL using `withRootUrl` and then generate various Taskcluster resource URLs relative to that root.
Update any tests that rely on the specific `testRootUrl` value to expect `https://tc-tests.example.com`. A simple search-and-replace should resolve this.
Replace all calls to `servicesManifest` with `apiManifest`. Review your codebase to utilize the newly added schema methods if applicable.
Ensure that a valid `rootUrl` is always provided to URL generation functions. If you were relying on prior silent failures, this update will now throw explicit errors, which should be caught and handled.
When using CommonJS `require`, ensure you either call methods like `libUrls.api(rootUrl, ...)` or destructure specific methods: `const { api } = require('taskcluster-lib-urls'); api(rootUrl, ...)`.Always provide a valid string for the `rootUrl` parameter when calling any URL generation method, either directly or when initializing with `withRootUrl`.
No dependency data recorded yet.