diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 866e93f..50f0c45 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.4.3" + ".": "1.4.4" } diff --git a/CHANGELOG.md b/CHANGELOG.md index f0579b6..0a43829 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 1.4.4 (2024-12-12) + +Full Changelog: [v1.4.3...v1.4.4](https://github.com/runwayml/sdk-node/compare/v1.4.3...v1.4.4) + +### Chores + +* **internal:** update isAbsoluteURL ([#51](https://github.com/runwayml/sdk-node/issues/51)) ([4aa8cb7](https://github.com/runwayml/sdk-node/commit/4aa8cb7f486114e147da258cc65fc951660244a9)) + ## 1.4.3 (2024-12-11) Full Changelog: [v1.4.2...v1.4.3](https://github.com/runwayml/sdk-node/compare/v1.4.2...v1.4.3) diff --git a/package.json b/package.json index 905e9b1..3e2ab96 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@runwayml/sdk", - "version": "1.4.3", + "version": "1.4.4", "description": "The official TypeScript library for the RunwayML API", "author": "RunwayML ", "types": "dist/index.d.ts", diff --git a/src/core.ts b/src/core.ts index 42a575e..887b937 100644 --- a/src/core.ts +++ b/src/core.ts @@ -970,8 +970,8 @@ export const safeJSON = (text: string) => { } }; -// https://stackoverflow.com/a/19709846 -const startsWithSchemeRegexp = new RegExp('^(?:[a-z]+:)?//', 'i'); +// https://url.spec.whatwg.org/#url-scheme-string +const startsWithSchemeRegexp = /^[a-z][a-z0-9+.-]*:/i; const isAbsoluteURL = (url: string): boolean => { return startsWithSchemeRegexp.test(url); }; diff --git a/src/version.ts b/src/version.ts index 6dac803..8c3be46 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const VERSION = '1.4.3'; // x-release-please-version +export const VERSION = '1.4.4'; // x-release-please-version