{"id":13485087,"url":"https://github.com/hayd/deno-udd","last_synced_at":"2025-04-05T15:07:19.556Z","repository":{"id":37482980,"uuid":"245330608","full_name":"hayd/deno-udd","owner":"hayd","description":"Update Deno Dependencies - update dependency urls to their latest published versions","archived":false,"fork":false,"pushed_at":"2024-04-25T19:45:17.000Z","size":120,"stargazers_count":331,"open_issues_count":36,"forks_count":19,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-03-29T14:07:31.952Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hayd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-03-06T04:34:14.000Z","updated_at":"2025-03-14T10:56:07.000Z","dependencies_parsed_at":"2023-09-28T01:36:13.705Z","dependency_job_id":"8652b371-ecf5-4bc9-ab0a-cef609058833","html_url":"https://github.com/hayd/deno-udd","commit_stats":{"total_commits":111,"total_committers":12,"mean_commits":9.25,"dds":0.4864864864864865,"last_synced_commit":"09f9994e2588a0744b8983f91122932b494eb176"},"previous_names":[],"tags_count":25,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hayd%2Fdeno-udd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hayd%2Fdeno-udd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hayd%2Fdeno-udd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hayd%2Fdeno-udd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hayd","download_url":"https://codeload.github.com/hayd/deno-udd/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247353745,"owners_count":20925329,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-31T17:01:45.479Z","updated_at":"2025-04-05T15:07:19.534Z","avatar_url":"https://github.com/hayd.png","language":"TypeScript","funding_links":[],"categories":["TypeScript","基础设施","Tools","Uncategorized","核心模块与框架（按需求挑）"],"sub_categories":["JAM Stack/静态站点","Online Playgrounds","Uncategorized","Assistants","开发工具（提升效率用）","XML"],"readme":"# Update Deno Dependencies\n\nRun this script to update your dependency urls to their latest published\nversions. Optionally run --test(s) to ensure that each dependency update is\nnon-breaking.\n\n![deno-udd](https://user-images.githubusercontent.com/1931852/76134819-37add280-5fd6-11ea-96c3-adbd57cfa68c.jpg)\n\n![ci-status](https://github.com/hayd/deno-udd/workflows/ci/badge.svg)\n\nNote: udd is **fundamentally different** from something like npm or yarn. Other\ntools do a \"distributed update\" i.e. _every user updates_ independently (and\npotentially to untested versions/configurations of dependencies). With udd\nprecisely _one person updates_ (a maintainer), and they can ensure that the new\ndependencies pass the test suite before commiting/releasing a new version. With\nudd every user has a fixed version of the dependencies.\n\n[Semantic versioning fragments](https://github.com/hayd/deno-udd#semantic-versioning)\nare _purely_ a convenience for the maintainer, and do not affect users.\n\n## Installation\n\nUse deno\n[`install`](https://deno.land/std/manual.md#installing-executable-scripts) to\ninstall or update udd:\n\n```sh\ndeno install -rf --allow-read=. --allow-write=. --allow-net https://deno.land/x/udd/main.ts\n```\n\n_You may need to include the deno bin directory in your PATH._\n\n## Usage\n\nFor example, to update url imports inside `deps.ts` run:\n\n```sh\nudd deps.ts\n```\n\nTo update all the ts files in your directory:\n\n```sh\nudd *.ts\n```\n\nTo ensure that `deno test` is successful when updating each dependency:\n\n```sh\nudd deps.ts --test=\"deno test\"\n```\n\n## Scheduled github action\n\nYou might like to use a [github action](https://docs.github.com/en/actions) to\nexecute udd each day, check whether there are dependency updates, and - if there\nare - create a pull request to your repository.\n\n![](https://user-images.githubusercontent.com/1931852/140999026-cebd4e9b-768a-4005-8888-2a964bccfe71.png)\n\nAs an example see the\n[`.github/workflows/udd.yml`](https://github.com/hayd/deno-udd/blob/master/.github/workflows/udd.yml)\nfile in the udd repository.\n\n_Thanks to [Eliaz Bobadilla](https://github.com/UltiRequiem) for the initial\naction implementation._\n\n## Semantic versioning\n\nIf you append a fragment `#${token}${version}` to your urls you can manage their\nupdate behavior:\n\n| Token | Name          |                    udd updates to the latest version such that |\n| :---- | :------------ | -------------------------------------------------------------: |\n| ^     | Compatible    | major version is the same (if major=0 then same minor version) |\n| ~     | Approximately |         major and minor version are the same (or both major=0) |\n| \u003c     | Less than     |                                 less than the provided version |\n| =     | Equal         |                                      it's exactly this version |\n\nThe version argument is optional for `^`, `~` and `=` (the version passed is the\nversion in the url).\n\n### Examples\n\n```diff\n-export { Application } from \"https://deno.land/x/oak@v2.4.0/mod.ts#^\";\n+export { Application } from \"https://deno.land/x/oak@v2.10.0/mod.ts#^\";  // 3.x.y is not chosen\n\n-export { decode } from \"https://deno.land/std@v0.34.0/strings/decode.ts#=\";\n+export { decode } from \"https://deno.land/std@v0.34.0/strings/decode.ts#=\";  // no change\n\n-export { Application } from \"https://deno.land/x/abc@v0.1.10/mod.ts#\u003c0.2.0\";\n+export { Application } from \"https://deno.land/x/abc@v0.1.11/mod.ts#\u003c0.2.0\";  // 0.2.x is not chosen\n\n-export { encode } from \"https://deno.land/std@v0.34.0/strings/encode.ts#~\";\n+export { encode } from \"https://deno.land/std@v0.36.0/strings/encode.ts#~\";  // update to latest compatible\n```\n\n![udd-in-action](https://user-images.githubusercontent.com/1931852/76695958-a1675580-6642-11ea-81d1-9ed15d22965f.gif)\n\n## Supported domains\n\nudd supports the following registry domains:\n\n- https://deno.land/std\n- https://deno.land/x\n- https://denopkg.com\n- https://dev.jspm.io\n- https://cdn.pika.dev\n- https://cdn.skypack.dev\n- https://esm.sh\n- https://unpkg.com\n- https://raw.githubusercontent.com\n- https://gitlab.com/:user/:repo/-/raw\n- https://cdn.jsdelivr.net\n- https://x.nest.land\n- https://pax.deno.dev\n\n_Create an issue to request additional registries._\n\n---\n\n_Logo by [Drake Sauer](http://clipart-library.com/clipart/6ir6AMoKT.htm)._\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhayd%2Fdeno-udd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhayd%2Fdeno-udd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhayd%2Fdeno-udd/lists"}