Skip to content

Commit

Permalink
chore(*): update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
aricart committed Aug 2, 2024
1 parent 846f9bd commit 3074a7f
Show file tree
Hide file tree
Showing 29 changed files with 172 additions and 80 deletions.
43 changes: 43 additions & 0 deletions bin/licenses.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
import $ from "jsr:@david/dax";
$.setPrintCommand(true);
import checker from "npm:license-checker";

const modules = [
"core",
"jetstream",
"kv",
"obj",
"services",
"transport-node",
];
for (const m of modules) {
$.cd(`./${m}`);
await $`npm install`;
$.cd(`..`);
}

for (const m of modules) {
let buf = "# Dependencies\n\n";

buf += "| Dependency | License |\n";
buf += "| --- | --- |\n";
checker.init({
direct: true,
production: true,
start: `./${m}`,
}, async (err, packages) => {
if (err) {
throw err;
}
for (const b in packages) {
const module = m === "core" ? "nats-core" : m;
if (b.startsWith(`@nats-io/${module}`)) {
// self
continue;
}
const p = packages[b];
buf += `[${b}](${p?.repository}) | ${p?.licenses} |\n`;
await Deno.writeTextFile(`./${m}/dependencies.md`, buf);
}
});
}
1 change: 0 additions & 1 deletion core/.npmrc

This file was deleted.

2 changes: 1 addition & 1 deletion core/deno.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nats-io/nats-core",
"version": "3.0.0-19",
"version": "3.0.0-20",
"exports": {
".": "./src/mod.ts",
"./internal": "./src/internal_mod.ts"
Expand Down
7 changes: 7 additions & 0 deletions core/dependencies.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Dependencies

| Dependency | License |
| ------------------------------------------------------------- | ---------- |
| [@nats-io/nkeys@1.2.0-4](https://github.com/nats-io/nkeys.js) | Apache-2.0 |
| [@nats-io/nuid@2.0.1-2](https://github.com/nats-io/nuid.js) | Apache-2.0 |
| [tweetnacl@1.0.3](https://github.com/dchest/tweetnacl-js) | Unlicense |
6 changes: 5 additions & 1 deletion core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nats-io/nats-core",
"version": "3.0.0-19",
"version": "3.0.0-20",
"files": [
"lib/",
"build/src/",
Expand All @@ -13,6 +13,10 @@
"./internal": "./lib/internal_mod.js"
},
"license": "Apache-2.0",
"repository": {
"type": "git",
"url": "https://github.com/nats-io/nats.js"
},
"private": false,
"scripts": {
"real-clean": "npm run clean && shx rm -Rf ./node_modules",
Expand Down
2 changes: 1 addition & 1 deletion core/src/version.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
// This file is generated - do not edit
export const version = "3.0.0-19";
export const version = "3.0.0-20";
5 changes: 4 additions & 1 deletion deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,17 @@
"lint-test_helpers": "cd test_helpers && deno lint",
"check-versions": "bin/check-bundle-version.ts && deno fmt",
"check-versions-all": "deno task check-versions-core && deno task check-versions-jetstream && deno task check-versions-kv && deno task check-versions-obj && deno task check-versions-services && deno task check-versions-transport-deno && deno task check-versions-transport-node && deno fmt",
"fix-versions": "deno task check-versions-core --fix && deno task check-versions-jetstream --fix && deno task check-versions-kv --fix && deno task check-versions-obj --fix && deno task check-versions-services --fix && deno task check-versions-transport-deno --fix && deno task check-versions-transport-node --fix && deno fmt",
"check-versions-core": "bin/check-bundle-version.ts --module core",
"check-versions-jetstream": "bin/check-bundle-version.ts --module jetstream",
"check-versions-kv": "bin/check-bundle-version.ts --module kv",
"check-versions-obj": "bin/check-bundle-version.ts --module obj",
"check-versions-services": "bin/check-bundle-version.ts --module services",
"check-versions-transport-node": "bin/check-bundle-version.ts --module transport-node",
"check-versions-transport-deno": "bin/check-bundle-version.ts --module transport-deno",
"check-dependencies": "bin/check-dep-versions.ts"
"check-dependencies": "bin/check-dep-versions.ts",
"disable-npm-workspace": "mv package.json _package.json",
"enable-npm-workspace": "mv _package.json package.json"
},
"fmt": {
"include": ["transport-deno/", "bin/", "core/", "debug/", "jetstream/", "kv/", "obj/", "services/", "*.md", "transport-node/"],
Expand Down
4 changes: 2 additions & 2 deletions jetstream/deno.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nats-io/jetstream",
"version": "3.0.0-6",
"version": "3.0.0-7",
"exports": {
".": "./src/mod.ts",
"./internal": "./src/internal_mod.ts"
Expand Down Expand Up @@ -33,6 +33,6 @@
"test": "deno test -A --parallel --reload --quiet tests/ --import-map=import_map.json"
},
"imports": {
"@nats-io/nats-core": "jsr:@nats-io/nats-core@~3.0.0-19"
"@nats-io/nats-core": "jsr:@nats-io/nats-core@~3.0.0-20"
}
}
8 changes: 8 additions & 0 deletions jetstream/dependencies.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Dependencies

| Dependency | License |
| ----------------------------------------------------------------- | ---------- |
| [@nats-io/nats-core@3.0.0-20](https://github.com/nats-io/nats.js) | Apache-2.0 |
| [@nats-io/nkeys@1.2.0-4](https://github.com/nats-io/nkeys.js) | Apache-2.0 |
| [@nats-io/nuid@2.0.1-2](https://github.com/nats-io/nuid.js) | Apache-2.0 |
| [tweetnacl@1.0.3](https://github.com/dchest/tweetnacl-js) | Unlicense |
4 changes: 2 additions & 2 deletions jetstream/import_map.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"imports": {
"@nats-io/nkeys": "jsr:@nats-io/nkeys@1.2.0-4",
"@nats-io/nuid": "jsr:@nats-io/nuid@2.0.1-2",
"@nats-io/nats-core": "jsr:@nats-io/nats-core@~3.0.0-19",
"@nats-io/nats-core/internal": "jsr:@nats-io/nats-core@~3.0.0-19/internal",
"@nats-io/nats-core": "jsr:@nats-io/nats-core@~3.0.0-20",
"@nats-io/nats-core/internal": "jsr:@nats-io/nats-core@~3.0.0-20/internal",
"test_helpers": "../test_helpers/mod.ts",
"@std/io": "jsr:@std/io@0.224.0"
}
Expand Down
8 changes: 6 additions & 2 deletions jetstream/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nats-io/jetstream",
"version": "3.0.0-6",
"version": "3.0.0-7",
"files": [
"lib/",
"build/src/",
Expand All @@ -13,6 +13,10 @@
"./internal": "./lib/internal_mod.js"
},
"license": "Apache-2.0",
"repository": {
"type": "git",
"url": "https://github.com/nats-io/nats.js"
},
"private": false,
"scripts": {
"real-clean": "npm run clean && shx rm -Rf ./node_modules",
Expand All @@ -29,7 +33,7 @@
},
"description": "jetstream library - this library implements all the base functionality for NATS JetStream for javascript clients",
"dependencies": {
"@nats-io/nats-core": "~3.0.0-19"
"@nats-io/nats-core": "~3.0.0-20"
},
"devDependencies": {
"@types/node": "^22.0.0",
Expand Down
6 changes: 3 additions & 3 deletions kv/deno.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nats-io/kv",
"version": "3.0.0-4",
"version": "3.0.0-5",
"exports": {
".": "./src/mod.ts",
"./internal": "./src/internal_mod.ts"
Expand Down Expand Up @@ -33,7 +33,7 @@
"test": "deno test -A --parallel --reload --quiet tests/ --import-map=import_map.json"
},
"imports": {
"@nats-io/nats-core": "jsr:@nats-io/nats-core@~3.0.0-19",
"@nats-io/jetstream": "jsr:@nats-io/jetstream@~3.0.0-6"
"@nats-io/nats-core": "jsr:@nats-io/nats-core@~3.0.0-20",
"@nats-io/jetstream": "jsr:@nats-io/jetstream@~3.0.0-7"
}
}
9 changes: 9 additions & 0 deletions kv/dependencies.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Dependencies

| Dependency | License |
| ----------------------------------------------------------------- | ---------- |
| [@nats-io/jetstream@3.0.0-7](https://github.com/nats-io/nats.js) | Apache-2.0 |
| [@nats-io/nats-core@3.0.0-20](https://github.com/nats-io/nats.js) | Apache-2.0 |
| [@nats-io/nkeys@1.2.0-4](https://github.com/nats-io/nkeys.js) | Apache-2.0 |
| [@nats-io/nuid@2.0.1-2](https://github.com/nats-io/nuid.js) | Apache-2.0 |
| [tweetnacl@1.0.3](https://github.com/dchest/tweetnacl-js) | Unlicense |
8 changes: 4 additions & 4 deletions kv/import_map.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"imports": {
"@nats-io/nats-core": "jsr:@nats-io/nats-core@~3.0.0-19",
"@nats-io/nats-core/internal": "jsr:@nats-io/nats-core@~3.0.0-19/internal",
"@nats-io/jetstream": "jsr:@nats-io/jetstream@~3.0.0-6",
"@nats-io/jetstream/internal": "jsr:@nats-io/jetstream@~3.0.0-6/internal",
"@nats-io/nats-core": "jsr:@nats-io/nats-core@~3.0.0-20",
"@nats-io/nats-core/internal": "jsr:@nats-io/nats-core@~3.0.0-20/internal",
"@nats-io/jetstream": "jsr:@nats-io/jetstream@~3.0.0-7",
"@nats-io/jetstream/internal": "jsr:@nats-io/jetstream@~3.0.0-7/internal",
"test_helpers": "../test_helpers/mod.ts",
"@nats-io/nkeys": "jsr:@nats-io/nkeys@1.2.0-4",
"@nats-io/nuid": "jsr:@nats-io/nuid@2.0.1-2",
Expand Down
10 changes: 7 additions & 3 deletions kv/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nats-io/kv",
"version": "3.0.0-4",
"version": "3.0.0-5",
"files": [
"lib/",
"build/src/",
Expand All @@ -13,6 +13,10 @@
"./internal": "./lib/internal_mod.js"
},
"license": "Apache-2.0",
"repository": {
"type": "git",
"url": "https://github.com/nats-io/nats.js"
},
"private": false,
"scripts": {
"real-clean": "npm run clean && shx rm -Rf ./node_modules",
Expand All @@ -29,8 +33,8 @@
},
"description": "kv library - this library implements all the base functionality for NATS KV javascript clients",
"dependencies": {
"@nats-io/jetstream": "~3.0.0-6",
"@nats-io/nats-core": "~3.0.0-19"
"@nats-io/jetstream": "~3.0.0-7",
"@nats-io/nats-core": "~3.0.0-20"
},
"devDependencies": {
"@types/node": "^22.0.0",
Expand Down
6 changes: 3 additions & 3 deletions obj/deno.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nats-io/obj",
"version": "3.0.0-2",
"version": "3.0.0-3",
"exports": {
".": "./src/mod.ts",
"./internal": "./src/internal_mod.ts"
Expand Down Expand Up @@ -33,7 +33,7 @@
"test": "deno test -A --parallel --reload --quiet tests/ --import-map=import_map.json"
},
"imports": {
"@nats-io/nats-core": "jsr:@nats-io/nats-core@~3.0.0-19",
"@nats-io/jetstream": "jsr:@nats-io/jetstream@~3.0.0-6"
"@nats-io/nats-core": "jsr:@nats-io/nats-core@~3.0.0-20",
"@nats-io/jetstream": "jsr:@nats-io/jetstream@~3.0.0-7"
}
}
9 changes: 9 additions & 0 deletions obj/dependencies.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Dependencies

| Dependency | License |
| ----------------------------------------------------------------- | ---------- |
| [@nats-io/jetstream@3.0.0-7](https://github.com/nats-io/nats.js) | Apache-2.0 |
| [@nats-io/nats-core@3.0.0-20](https://github.com/nats-io/nats.js) | Apache-2.0 |
| [@nats-io/nkeys@1.2.0-4](https://github.com/nats-io/nkeys.js) | Apache-2.0 |
| [@nats-io/nuid@2.0.1-2](https://github.com/nats-io/nuid.js) | Apache-2.0 |
| [tweetnacl@1.0.3](https://github.com/dchest/tweetnacl-js) | Unlicense |
8 changes: 4 additions & 4 deletions obj/import_map.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"imports": {
"@nats-io/nats-core": "jsr:@nats-io/nats-core@~3.0.0-19",
"@nats-io/nats-core/internal": "jsr:@nats-io/nats-core@~3.0.0-19/internal",
"@nats-io/jetstream": "jsr:@nats-io/jetstream@~3.0.0-6",
"@nats-io/jetstream/internal": "jsr:@nats-io/jetstream@~3.0.0-6/internal",
"@nats-io/nats-core": "jsr:@nats-io/nats-core@~3.0.0-20",
"@nats-io/nats-core/internal": "jsr:@nats-io/nats-core@~3.0.0-20/internal",
"@nats-io/jetstream": "jsr:@nats-io/jetstream@~3.0.0-7",
"@nats-io/jetstream/internal": "jsr:@nats-io/jetstream@~3.0.0-7/internal",
"test_helpers": "../test_helpers/mod.ts",
"@nats-io/nkeys": "jsr:@nats-io/nkeys@1.2.0-4",
"@nats-io/nuid": "jsr:@nats-io/nuid@2.0.1-2",
Expand Down
10 changes: 7 additions & 3 deletions obj/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nats-io/obj",
"version": "3.0.0-2",
"version": "3.0.0-3",
"files": [
"lib/",
"build/src/",
Expand All @@ -13,6 +13,10 @@
"./internal": "./lib/internal_mod.js"
},
"license": "Apache-2.0",
"repository": {
"type": "git",
"url": "https://github.com/nats-io/nats.js"
},
"private": false,
"scripts": {
"real-clean": "npm run clean && shx rm -Rf ./node_modules",
Expand All @@ -29,8 +33,8 @@
},
"description": "obj library - this library implements all the base functionality for NATS objectstore for javascript clients",
"dependencies": {
"@nats-io/jetstream": "~3.0.0-6",
"@nats-io/nats-core": "~3.0.0-19"
"@nats-io/jetstream": "~3.0.0-7",
"@nats-io/nats-core": "~3.0.0-20"
},
"devDependencies": {
"@types/node": "^22.0.0",
Expand Down
4 changes: 2 additions & 2 deletions services/deno.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nats-io/services",
"version": "3.0.0-2",
"version": "3.0.0-3",
"exports": {
".": "./src/mod.ts",
"./internal": "./src/internal_mod.ts"
Expand Down Expand Up @@ -33,6 +33,6 @@
"test": "deno test -A --parallel --reload --quiet tests/ --import-map=import_map.json"
},
"imports": {
"@nats-io/nats-core": "jsr:@nats-io/nats-core@~3.0.0-19"
"@nats-io/nats-core": "jsr:@nats-io/nats-core@~3.0.0-20"
}
}
8 changes: 8 additions & 0 deletions services/dependencies.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Dependencies

| Dependency | License |
| ----------------------------------------------------------------- | ---------- |
| [@nats-io/nats-core@3.0.0-20](https://github.com/nats-io/nats.js) | Apache-2.0 |
| [@nats-io/nkeys@1.2.0-4](https://github.com/nats-io/nkeys.js) | Apache-2.0 |
| [@nats-io/nuid@2.0.1-2](https://github.com/nats-io/nuid.js) | Apache-2.0 |
| [tweetnacl@1.0.3](https://github.com/dchest/tweetnacl-js) | Unlicense |
4 changes: 2 additions & 2 deletions services/import_map.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"imports": {
"@nats-io/nats-core": "jsr:@nats-io/nats-core@~3.0.0-19",
"@nats-io/nats-core/internal": "jsr:@nats-io/nats-core@~3.0.0-19/internal",
"@nats-io/nats-core": "jsr:@nats-io/nats-core@~3.0.0-20",
"@nats-io/nats-core/internal": "jsr:@nats-io/nats-core@~3.0.0-20/internal",
"test_helpers": "../test_helpers/mod.ts",
"@nats-io/nkeys": "jsr:@nats-io/nkeys@1.2.0-4",
"@nats-io/nuid": "jsr:@nats-io/nuid@2.0.1-2",
Expand Down
8 changes: 6 additions & 2 deletions services/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nats-io/services",
"version": "3.0.0-2",
"version": "3.0.0-3",
"files": [
"lib/",
"build/src/",
Expand All @@ -13,6 +13,10 @@
"./internal": "./lib/internal_mod.js"
},
"license": "Apache-2.0",
"repository": {
"type": "git",
"url": "https://github.com/nats-io/nats.js"
},
"private": false,
"scripts": {
"real-clean": "npm run clean && shx rm -Rf ./node_modules",
Expand All @@ -29,7 +33,7 @@
},
"description": "services library - this library implements all the base functionality for NATS services for javascript clients",
"dependencies": {
"@nats-io/nats-core": "~3.0.0-19"
"@nats-io/nats-core": "~3.0.0-20"
},
"devDependencies": {
"@types/node": "^22.0.0",
Expand Down
2 changes: 1 addition & 1 deletion transport-deno/deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
},
"imports": {
"@std/io": "jsr:@std/io@0.224.0",
"@nats-io/nats-core": "jsr:@nats-io/nats-core@~3.0.0-19",
"@nats-io/nats-core": "jsr:@nats-io/nats-core@~3.0.0-20",
"@nats-io/nkeys": "jsr:@nats-io/nkeys@1.2.0-4",
"@nats-io/nuid": "jsr:@nats-io/nuid@2.0.1-2"
}
Expand Down
8 changes: 8 additions & 0 deletions transport-deno/dependencies.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Dependencies

| Dependency | License |
| ----------------------------------------------------------------- | ---------- |
| [@std/io](https://github.com/denoland/std) | MIT |
| [@nats-io/nats-core@3.0.0-20](https://github.com/nats-io/nats.js) | Apache-2.0 |
| [@nats-io/nkeys@1.2.0-4](https://github.com/nats-io/nkeys.js) | Apache-2.0 |
| [@nats-io/nuid@2.0.1-2](https://github.com/nats-io/nuid.js) | Apache-2.0 |
Loading

0 comments on commit 3074a7f

Please sign in to comment.