hayd / deno-udd

Update Deno Dependencies - update dependency urls to their latest published versions
MIT License
329 stars 18 forks source link

Incorrectly upgrade the version number to "undefined" #103

Open masx200 opened 1 year ago

masx200 commented 1 year ago

udd 0.8.2

deno-version: v1.29.1

Incorrectly upgrade the version number to "undefined"

deps.ts

export type { ConnInfo };
export { STATUS_TEXT } from "https://deno.land/std@0.171.0/http/http_status.ts";
export { encode };
export { default as isPlainObject } from "https://cdn.skypack.dev/lodash@4.17.21/isPlainObject?dts";
export { default as isPlainObject } from "https://cdn.skypack.dev/lodash@undefined/isPlainObject?dts";

export { default as fresh } from "https://cdn.skypack.dev/fresh@0.5.2?dts";
export { serve };
export { assertFalse };
export { METHODS };
export { html, json, text } from "https://esm.sh/@hattip/response@0.0.24";
export { html, json, text } from "https://esm.sh/@hattip/response@undefined";
masx200 commented 1 year ago

https://github.com/masx200/deno-http-middleware/actions/runs/3886692985/jobs/6632089465

2023-01-10T19:42:31.8933534Z ##[group]Run deno run -A https://deno.land/x/udd/main.ts deps.ts *.ts
2023-01-10T19:42:31.8934079Z deno run -A https://deno.land/x/udd/main.ts deps.ts *.ts
2023-01-10T19:42:31.8995601Z shell: /usr/bin/bash -e {0}
2023-01-10T19:42:31.8995896Z ##[endgroup]
2023-01-10T19:42:32.0504743Z Download https://deno.land/x/udd/main.ts
2023-01-10T19:42:32.2421788Z Warning Implicitly using latest version (0.8.2) for https://deno.land/x/udd/main.ts
2023-01-10T19:42:32.2429887Z Download https://deno.land/x/udd@0.8.2/main.ts
2023-01-10T19:42:32.2979821Z Download https://deno.land/x/udd@0.8.2/deps.ts
2023-01-10T19:42:32.2989667Z Download https://deno.land/x/udd@0.8.2/mod.ts
2023-01-10T19:42:32.2990909Z Download https://deno.land/x/udd@0.8.2/registry.ts
2023-01-10T19:42:32.4025607Z Download https://deno.land/std@0.166.0/flags/mod.ts
2023-01-10T19:42:32.4026804Z Download https://deno.land/std@0.166.0/fmt/colors.ts
2023-01-10T19:42:32.4034973Z Download https://deno.land/std@0.166.0/fs/mod.ts
2023-01-10T19:42:32.4209330Z Download https://deno.land/x/udd@0.8.2/progress.ts
2023-01-10T19:42:32.4210335Z Download https://deno.land/x/udd@0.8.2/search.ts
2023-01-10T19:42:32.4211587Z Download https://deno.land/x/udd@0.8.2/semver.ts
2023-01-10T19:42:32.4625039Z Download https://deno.land/std@0.166.0/fs/copy.ts
2023-01-10T19:42:32.4625683Z Download https://deno.land/std@0.166.0/fs/empty_dir.ts
2023-01-10T19:42:32.4626200Z Download https://deno.land/std@0.166.0/fs/ensure_dir.ts
2023-01-10T19:42:32.4627187Z Download https://deno.land/std@0.166.0/fs/ensure_file.ts
2023-01-10T19:42:32.4627744Z Download https://deno.land/std@0.166.0/fs/ensure_link.ts
2023-01-10T19:42:32.4630912Z Download https://deno.land/std@0.166.0/fs/ensure_symlink.ts
2023-01-10T19:42:32.4633647Z Download https://deno.land/std@0.166.0/fs/eol.ts
2023-01-10T19:42:32.4636403Z Download https://deno.land/std@0.166.0/fs/exists.ts
2023-01-10T19:42:32.4639121Z Download https://deno.land/std@0.166.0/fs/expand_glob.ts
2023-01-10T19:42:32.4641709Z Download https://deno.land/std@0.166.0/fs/move.ts
2023-01-10T19:42:32.4643474Z Download https://deno.land/std@0.166.0/fs/walk.ts
2023-01-10T19:42:32.5134596Z Download https://deno.land/std@0.166.0/_util/asserts.ts
2023-01-10T19:42:32.5360197Z Download https://deno.land/std@0.166.0/path/mod.ts
2023-01-10T19:42:32.5361210Z Download https://deno.land/std@0.166.0/fs/_util.ts
2023-01-10T19:42:32.5935258Z Download https://deno.land/std@0.166.0/_util/os.ts
2023-01-10T19:42:32.7469423Z Download https://deno.land/std@0.166.0/path/_interface.ts
2023-01-10T19:42:32.7470810Z Download https://deno.land/std@0.166.0/path/common.ts
2023-01-10T19:42:32.7474419Z Download https://deno.land/std@0.166.0/path/glob.ts
2023-01-10T19:42:32.7475204Z Download https://deno.land/std@0.166.0/path/posix.ts
2023-01-10T19:42:32.7476442Z Download https://deno.land/std@0.166.0/path/separator.ts
2023-01-10T19:42:32.7477225Z Download https://deno.land/std@0.166.0/path/win32.ts
2023-01-10T19:42:32.8099274Z Download https://deno.land/std@0.166.0/path/_constants.ts
2023-01-10T19:42:32.8104215Z Download https://deno.land/std@0.166.0/path/_util.ts
2023-01-10T19:42:32.8956853Z /home/runner/work/deno-http-middleware/deno-http-middleware/deps.ts
2023-01-10T19:42:41.9272055Z [1/10] Looking for releases: https://deno.land/std@0.171.0/testing/asserts.ts[1/10] Using latest: https://deno.land/std@0.171.0/testing/asserts.ts[2/10] Looking for releases: https://deno.land/std@0.171.0/encoding/hex.ts[2/10] Using latest: https://deno.land/std@0.171.0/encoding/hex.ts[3/10] Looking for releases: https://deno.land/std@0.171.0/node/http.ts[3/10] Using latest: https://deno.land/std@0.171.0/node/http.ts[4/10] Looking for releases: https://deno.land/std@0.171.0/testing/asserts.ts[4/10] Using latest: https://deno.land/std@0.171.0/testing/asserts.ts[5/10] Looking for releases: https://deno.land/x/masx200_deno_serve_https@1.0.5/mod.ts[5/10] Using latest: https://deno.land/x/masx200_deno_serve_https@1.0.5/mod.ts[6/10] Looking for releases: https://deno.land/std@0.171.0/http/http_status.ts[6/10] Using latest: https://deno.land/std@0.171.0/http/http_status.ts[7/10] Looking for releases: https://cdn.skypack.dev/lodash@4.17.21/isPlainObject?dts[7/10] Attempting update: https://cdn.skypack.dev/lodash@4.17.21/isPlainObject?dts -> undefined[7/10] Update successful: https://cdn.skypack.dev/lodash@4.17.21/isPlainObject?dts -> undefined[8/10] Looking for releases: https://cdn.skypack.dev/fresh@0.5.2?dts[8/10] Skip updating: https://cdn.skypack.dev/fresh@0.5.2?dts[9/10] Looking for releases: https://esm.sh/@hattip/response@0.0.24[9/10] Attempting update: https://esm.sh/@hattip/response@0.0.24 -> undefined[9/10] Update successful: https://esm.sh/@hattip/response@0.0.24 -> undefined[10/10] Looking for releases: https://esm.sh/@hattip/response@0.0.24[10/10] Using latest: https://esm.sh/@hattip/response@0.0.24
2023-01-10T19:42:41.9276867Z /home/runner/work/deno-http-middleware/deno-http-middleware/deps.ts
2023-01-10T19:42:43.2191956Z [1/10] Looking for releases: https://deno.land/std@0.171.0/testing/asserts.ts[1/10] Using latest: https://deno.land/std@0.171.0/testing/asserts.ts[2/10] Looking for releases: https://deno.land/std@0.171.0/encoding/hex.ts[2/10] Using latest: https://deno.land/std@0.171.0/encoding/hex.ts[3/10] Looking for releases: https://deno.land/std@0.171.0/node/http.ts[3/10] Using latest: https://deno.land/std@0.171.0/node/http.ts[4/10] Looking for releases: https://deno.land/std@0.171.0/testing/asserts.ts[4/10] Using latest: https://deno.land/std@0.171.0/testing/asserts.ts[5/10] Looking for releases: https://deno.land/x/masx200_deno_serve_https@1.0.5/mod.ts[5/10] Using latest: https://deno.land/x/masx200_deno_serve_https@1.0.5/mod.ts[6/10] Looking for releases: https://deno.land/std@0.171.0/http/http_status.ts[6/10] Using latest: https://deno.land/std@0.171.0/http/http_status.ts[7/10] Looking for releases: https://cdn.skypack.dev/lodash@undefined/isPlainObject?dts[7/10] Skip updating: https://cdn.skypack.dev/lodash@undefined/isPlainObject?dts[8/10] Looking for releases: https://cdn.skypack.dev/fresh@0.5.2?dts[8/10] Skip updating: https://cdn.skypack.dev/fresh@0.5.2?dts[9/10] Looking for releases: https://esm.sh/@hattip/response@undefined[9/10] Skip updating: https://esm.sh/@hattip/response@undefined[10/10] Looking for releases: https://esm.sh/@hattip/response@undefined[10/10] Skip updating: https://esm.sh/@hattip/response@undefined
2023-01-10T19:42:43.2195335Z /home/runner/work/deno-http-middleware/deno-http-middleware/middleware.ts
2023-01-10T19:42:43.2202280Z 
2023-01-10T19:42:43.2203405Z /home/runner/work/deno-http-middleware/deno-http-middleware/mod.ts
2023-01-10T19:42:43.2206847Z 
2023-01-10T19:42:43.2207530Z Already latest version:
2023-01-10T19:42:43.2208698Z https://deno.land/std@0.171.0/testing/asserts.ts == 0.171.0
2023-01-10T19:42:43.2216265Z https://deno.land/std@0.171.0/encoding/hex.ts == 0.171.0
2023-01-10T19:42:43.2363458Z https://deno.land/std@0.171.0/node/http.ts == 0.171.0
2023-01-10T19:42:43.2363906Z https://deno.land/std@0.171.0/testing/asserts.ts == 0.171.0
2023-01-10T19:42:43.2364341Z https://deno.land/x/masx200_deno_serve_https@1.0.5/mod.ts == 1.0.5
2023-01-10T19:42:43.2364768Z https://deno.land/std@0.171.0/http/http_status.ts == 0.171.0
2023-01-10T19:42:43.2365369Z https://cdn.skypack.dev/fresh@0.5.2?dts == 0.5.2?dts
2023-01-10T19:42:43.2365753Z https://esm.sh/@hattip/response@0.0.24 == 0.0.24
2023-01-10T19:42:43.2366150Z https://deno.land/std@0.171.0/testing/asserts.ts == 0.171.0
2023-01-10T19:42:43.2366556Z https://deno.land/std@0.171.0/encoding/hex.ts == 0.171.0
2023-01-10T19:42:43.2366931Z https://deno.land/std@0.171.0/node/http.ts == 0.171.0
2023-01-10T19:42:43.2367340Z https://deno.land/std@0.171.0/testing/asserts.ts == 0.171.0
2023-01-10T19:42:43.2367765Z https://deno.land/x/masx200_deno_serve_https@1.0.5/mod.ts == 1.0.5
2023-01-10T19:42:43.2368175Z https://deno.land/std@0.171.0/http/http_status.ts == 0.171.0
2023-01-10T19:42:43.2368631Z https://cdn.skypack.dev/lodash@undefined/isPlainObject?dts == undefined
2023-01-10T19:42:43.2369060Z https://cdn.skypack.dev/fresh@0.5.2?dts == 0.5.2?dts
2023-01-10T19:42:43.2369476Z https://esm.sh/@hattip/response@undefined == undefined
2023-01-10T19:42:43.2369860Z https://esm.sh/@hattip/response@undefined == undefined
2023-01-10T19:42:43.2370125Z 
2023-01-10T19:42:43.2370364Z Successfully updated:
2023-01-10T19:42:43.2370786Z https://cdn.skypack.dev/lodash@4.17.21/isPlainObject?dts 4.17.21 -> undefined
2023-01-10T19:42:43.2371252Z https://esm.sh/@hattip/response@0.0.24 0.0.24 -> undefined
masx200 commented 1 year ago

Can I use semver to solve this problem?

J053Fabi0 commented 1 year ago

I fixed it by setting a semantic versioning rule that states only versions lower than a ridiculously high version:

{
  "preact-render-to-string": "https://esm.sh/*preact-render-to-string@6.0.3#<99.0.0"
}
nakasyou commented 1 year ago

I fixed it by setting a semantic versioning rule that states only versions lower than a ridiculously high version:

{
  "preact-render-to-string": "https://esm.sh/*preact-render-to-string@6.0.3#<99.0.0"
}

I had a similar bug with preact-render-to-string.

This solved it. Thanks!