Skip to content

Commit

Permalink
Upgrades latest-version to 9.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sarunas committed Oct 10, 2024
1 parent 76264f7 commit 48f1807
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"fs-extra": "^11.1.0",
"globby": "^11.0.4",
"json-schema-to-typescript": "^11.0.3",
"latest-version": "^5.1.0",
"latest-version": "^9.0.0",
"listr": "^0.14.2",
"listr-inquirer": "^0.1.0",
"markdown-link-validator": "^1.0.1",
Expand Down
3 changes: 2 additions & 1 deletion release/tasks/get-packages.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import * as path from 'path';

import * as globby from 'globby';
import latest from 'latest-version';

import { Context, Reference } from '../@types/custom';
import { debug } from '../lib/utils';
Expand Down Expand Up @@ -96,6 +95,8 @@ export const getPackages = (ignoredPackages: string[]) => {
* them later via `ctx.packages`.
* Get the latest published version if any.
*/
const { default: latest } = await import('latest-version');

for (const [, pkg] of ctx.packages) {
pkg.references = pkg.references.map((reference) => {
return pathToName.get(reference)!;
Expand Down
47 changes: 45 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -741,6 +741,11 @@
resolved "https://registry.yarnpkg.com/@pkgjs/parseargs/-/parseargs-0.11.0.tgz#a77ea742fab25775145434eb1d2328cf5013ac33"
integrity sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==

"@pnpm/config.env-replace@^1.1.0":
version "1.1.0"
resolved "https://registry.npmjs.org/@pnpm/config.env-replace/-/config.env-replace-1.1.0.tgz#ab29da53df41e8948a00f2433f085f54de8b3a4c"
integrity sha512-htyl8TWnKL7K/ESFa1oW2UB5lVDxuF5DpM7tBi6Hu2LNL3mWkIzNLG6N4zoCUP1lCKNxWy/3iu8mS8MvToGd6w==

"@pnpm/network.ca-file@^1.0.1":
version "1.0.1"
resolved "https://registry.yarnpkg.com/@pnpm/network.ca-file/-/network.ca-file-1.0.1.tgz#16f88d057c68cd5419c1ef3dfa281296ea80b047"
Expand All @@ -756,6 +761,15 @@
"@pnpm/network.ca-file" "^1.0.1"
config-chain "^1.1.11"

"@pnpm/npm-conf@^2.1.0":
version "2.3.1"
resolved "https://registry.npmjs.org/@pnpm/npm-conf/-/npm-conf-2.3.1.tgz#bb375a571a0bd63ab0a23bece33033c683e9b6b0"
integrity sha512-c83qWb22rNRuB0UaVCI0uRPNRr8Z0FWnEIvT47jiHAmOIUHbBOg5XvV7pM5x+rKn9HRpjxquDbXYSXr3fAKFcw==
dependencies:
"@pnpm/config.env-replace" "^1.1.0"
"@pnpm/network.ca-file" "^1.0.1"
config-chain "^1.1.11"

"@samverschueren/stream-to-observable@^0.3.0":
version "0.3.0"
resolved "https://registry.yarnpkg.com/@samverschueren/stream-to-observable/-/stream-to-observable-0.3.0.tgz#ecdf48d532c58ea477acfcab80348424f8d0662f"
Expand Down Expand Up @@ -7037,6 +7051,11 @@ kind-of@^6.0.2:
version "3.4.0-rc"
resolved "https://codeload.github.com/knockout/knockout/tar.gz/refs/tags/v3.4.0-rc#9cfd26d3c03af4481d6c6b72f2e6e06de8f2a1e7"

ky@^1.2.0:
version "1.7.2"
resolved "https://registry.npmjs.org/ky/-/ky-1.7.2.tgz#b97d9b997ba51ff1e152f0815d3d27b86513eb1c"
integrity sha512-OzIvbHKKDpi60TnF9t7UUVAF1B4mcqc02z5PIvrm08Wyb+yOcz63GRvEuVxNT18a9E1SrNouhB4W2NNLeD7Ykg==

latest-version@^5.1.0:
version "5.1.0"
resolved "https://registry.yarnpkg.com/latest-version/-/latest-version-5.1.0.tgz#119dfe908fe38d15dfa43ecd13fa12ec8832face"
Expand All @@ -7051,6 +7070,13 @@ latest-version@^7.0.0:
dependencies:
package-json "^8.1.0"

latest-version@^9.0.0:
version "9.0.0"
resolved "https://registry.npmjs.org/latest-version/-/latest-version-9.0.0.tgz#e91ed216e7a4badc6f73b66c65adb46c58ec6ba1"
integrity sha512-7W0vV3rqv5tokqkBAFV1LbR7HPOWzXQDpDgEuib/aJ1jsZZx6x3c2mBI+TJhJzOhkGeaLbCKEHXEXLfirtG2JA==
dependencies:
package-json "^10.0.0"

lazystream@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/lazystream/-/lazystream-1.0.0.tgz#f6995fe0f820392f61396be89462407bb77168e4"
Expand Down Expand Up @@ -8548,6 +8574,16 @@ package-hash@^4.0.0:
lodash.flattendeep "^4.4.0"
release-zalgo "^1.0.0"

package-json@^10.0.0:
version "10.0.1"
resolved "https://registry.npmjs.org/package-json/-/package-json-10.0.1.tgz#e49ee07b8de63b638e7f1b5bb353733e428fe7d7"
integrity sha512-ua1L4OgXSBdsu1FPb7F3tYH0F48a6kxvod4pLUlGY9COeJAJQNX/sNH2IiEmsxw7lqYiAwrdHMjz1FctOsyDQg==
dependencies:
ky "^1.2.0"
registry-auth-token "^5.0.2"
registry-url "^6.0.1"
semver "^7.6.0"

package-json@^6.3.0:
version "6.4.0"
resolved "https://registry.yarnpkg.com/package-json/-/package-json-6.4.0.tgz#4f626976604f4a9a41723ce1792b204a60b1b61e"
Expand Down Expand Up @@ -9514,14 +9550,21 @@ registry-auth-token@^5.0.1:
dependencies:
"@pnpm/npm-conf" "^1.0.4"

registry-auth-token@^5.0.2:
version "5.0.2"
resolved "https://registry.npmjs.org/registry-auth-token/-/registry-auth-token-5.0.2.tgz#8b026cc507c8552ebbe06724136267e63302f756"
integrity sha512-o/3ikDxtXaA59BmZuZrJZDJv8NMDGSj+6j6XaeBmHw8eY1i1qd9+6H+LjVvQXx3HN6aRCGa1cUdJ9RaJZUugnQ==
dependencies:
"@pnpm/npm-conf" "^2.1.0"

registry-url@^5.0.0:
version "5.1.0"
resolved "https://registry.yarnpkg.com/registry-url/-/registry-url-5.1.0.tgz#e98334b50d5434b81136b44ec638d9c2009c5009"
integrity sha512-8acYXXTI0AkQv6RAOjE3vOaIXZkT9wo4LOFbBKYQEEnnMNBpKqdUrI6S4NT0KPIo/WVvJ5tE/X5LF/TQUf0ekw==
dependencies:
rc "^1.2.8"

registry-url@^6.0.0:
registry-url@^6.0.0, registry-url@^6.0.1:
version "6.0.1"
resolved "https://registry.yarnpkg.com/registry-url/-/registry-url-6.0.1.tgz#056d9343680f2f64400032b1e199faa692286c58"
integrity sha512-+crtS5QjFRqFCoQmvGduwYWEBng99ZvmFvF+cUJkGYF1L1BfU8C6Zp9T7f5vPAwyLkUExpvK+ANVZmGU49qi4Q==
Expand Down Expand Up @@ -9865,7 +9908,7 @@ semver@^6.0.0, semver@^6.1.1, semver@^6.3.0:
resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.0.tgz#ee0a64c8af5e8ceea67687b133761e1becbd1d3d"
integrity sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==

semver@^7.5.2:
semver@^7.5.2, semver@^7.6.0:
version "7.6.3"
resolved "https://registry.yarnpkg.com/semver/-/semver-7.6.3.tgz#980f7b5550bc175fb4dc09403085627f9eb33143"
integrity sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==
Expand Down

0 comments on commit 48f1807

Please sign in to comment.