Loading .github/workflows/main.yaml +26 −13 Original line number Diff line number Diff line Loading @@ -24,19 +24,22 @@ jobs: deno-version: v2.x - uses: actions/setup-node@v4 with: node-version: lts/* node-version: latest - uses: oven-sh/setup-bun@v1 with: bun-version: latest - uses: pnpm/action-setup@v4 with: version: latest - run: deno task test --junit-path=.test-report.xml - uses: EnricoMi/publish-unit-test-result-action@v2 if: always() with: files: .test-report.xml - run: deno task check - run: deno task dnt - run: bun run ./test_runner.js working-directory: ${{ github.workspace }}/npm/ - run: pnpm install - run: pnpm test - run: pnpm test:bun publish: if: github.event_name == 'push' Loading @@ -52,7 +55,10 @@ jobs: deno-version: v2.x - uses: actions/setup-node@v4 with: node-version: lts/* node-version: latest - uses: pnpm/action-setup@v4 with: version: latest - if: github.ref_type == 'branch' run: | jq \ Loading @@ -61,20 +67,27 @@ jobs: '.version = .version + "-dev." + $build + "+" + $commit' \ deno.json > deno.json.tmp mv deno.json.tmp deno.json jq \ --arg build "$GITHUB_RUN_NUMBER" \ --arg commit "${GITHUB_SHA::8}" \ '.version = .version + "-dev." + $build + "+" + $commit' \ package.json > package.json.tmp mv package.json.tmp package.json - if: github.ref_type == 'tag' run: '[[ "$(jq -r .version deno.json)" = "$GITHUB_REF_NAME" ]]' - run: 'deno task dnt "$(jq -r .version deno.json)"' env: DNT_TEST: false run: | set -ex [[ "$(jq -r .version deno.json)" = "$GITHUB_REF_NAME" ]] [[ "$(jq -r .version package.json)" = "$GITHUB_REF_NAME" ]] - run: pnpm install && pnpm build - run: | set -ex npm config set //registry.npmjs.org/:_authToken "$NPM_AUTH_TOKEN" pnpm config set //registry.npmjs.org/:_authToken "$NPM_AUTH_TOKEN" if [[ "$GITHUB_REF_TYPE" = "tag" ]]; then npm publish --provenance --access public pnpm publish --no-git-checks --access public else npm publish --provenance --access public --tag dev pnpm publish --no-git-checks --access public --tag dev fi env: NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} working-directory: ${{ github.workspace }}/npm/ NPM_CONFIG_PROVENANCE: "true" - run: deno publish --allow-dirty .gitignore +2 −0 Original line number Diff line number Diff line .dnt-import-map.json dist/ node_modules/ npm/ README.md +3 −0 Original line number Diff line number Diff line Loading @@ -72,6 +72,9 @@ Changelog To be released. - The type of the `AmqpMessageQueue()` constructor's first parameter has been changed from `Connection` to `ChannelModel`. ### Version 0.2.0 Released on March 28, 2025. Loading deno.json +29 −6 Original line number Diff line number Diff line Loading @@ -7,22 +7,45 @@ "./mq": "./src/mq.ts" }, "imports": { "@deno/dnt": "jsr:@deno/dnt@^0.41.2", "@alinea/suite": "jsr:@alinea/suite@^0.6.2", "@fedify/fedify": "jsr:@fedify/fedify@^1.5.0", "@std/assert": "jsr:@std/assert@^0.226.0", "@std/async": "jsr:@std/async@^1.0.5", "amqplib": "npm:amqplib@^0.10.4" "@std/assert": "jsr:@std/assert@^1.0.13", "@std/async": "jsr:@std/async@^1.0.13", "amqplib": "npm:amqplib@^0.10.8", "tsdown": "npm:tsdown@^0.12.7" }, "nodeModulesDir": "auto", "unstable": [ "temporal" ], "exclude": [ ".github", "npm" "node_modules", "npm", "pnpm-lock.yaml" ], "tasks": { "build": "pnpm build", "check": "deno fmt --check && deno lint && deno check */*.ts", "test": "deno test --allow-net --allow-env", "dnt": "deno run -A dnt.ts" "test:node": { "dependencies": [ "build" ], "command": "node --experimental-transform-types --test" }, "test:bun": { "dependencies": [ "build" ], "command": "bun test --timeout 15000" }, "test-all": { "dependencies": [ "test", "test:node", "test:bun" ] } } } deno.lock +405 −193 File changed.Preview size limit exceeded, changes collapsed. Show changes Loading
.github/workflows/main.yaml +26 −13 Original line number Diff line number Diff line Loading @@ -24,19 +24,22 @@ jobs: deno-version: v2.x - uses: actions/setup-node@v4 with: node-version: lts/* node-version: latest - uses: oven-sh/setup-bun@v1 with: bun-version: latest - uses: pnpm/action-setup@v4 with: version: latest - run: deno task test --junit-path=.test-report.xml - uses: EnricoMi/publish-unit-test-result-action@v2 if: always() with: files: .test-report.xml - run: deno task check - run: deno task dnt - run: bun run ./test_runner.js working-directory: ${{ github.workspace }}/npm/ - run: pnpm install - run: pnpm test - run: pnpm test:bun publish: if: github.event_name == 'push' Loading @@ -52,7 +55,10 @@ jobs: deno-version: v2.x - uses: actions/setup-node@v4 with: node-version: lts/* node-version: latest - uses: pnpm/action-setup@v4 with: version: latest - if: github.ref_type == 'branch' run: | jq \ Loading @@ -61,20 +67,27 @@ jobs: '.version = .version + "-dev." + $build + "+" + $commit' \ deno.json > deno.json.tmp mv deno.json.tmp deno.json jq \ --arg build "$GITHUB_RUN_NUMBER" \ --arg commit "${GITHUB_SHA::8}" \ '.version = .version + "-dev." + $build + "+" + $commit' \ package.json > package.json.tmp mv package.json.tmp package.json - if: github.ref_type == 'tag' run: '[[ "$(jq -r .version deno.json)" = "$GITHUB_REF_NAME" ]]' - run: 'deno task dnt "$(jq -r .version deno.json)"' env: DNT_TEST: false run: | set -ex [[ "$(jq -r .version deno.json)" = "$GITHUB_REF_NAME" ]] [[ "$(jq -r .version package.json)" = "$GITHUB_REF_NAME" ]] - run: pnpm install && pnpm build - run: | set -ex npm config set //registry.npmjs.org/:_authToken "$NPM_AUTH_TOKEN" pnpm config set //registry.npmjs.org/:_authToken "$NPM_AUTH_TOKEN" if [[ "$GITHUB_REF_TYPE" = "tag" ]]; then npm publish --provenance --access public pnpm publish --no-git-checks --access public else npm publish --provenance --access public --tag dev pnpm publish --no-git-checks --access public --tag dev fi env: NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} working-directory: ${{ github.workspace }}/npm/ NPM_CONFIG_PROVENANCE: "true" - run: deno publish --allow-dirty
.gitignore +2 −0 Original line number Diff line number Diff line .dnt-import-map.json dist/ node_modules/ npm/
README.md +3 −0 Original line number Diff line number Diff line Loading @@ -72,6 +72,9 @@ Changelog To be released. - The type of the `AmqpMessageQueue()` constructor's first parameter has been changed from `Connection` to `ChannelModel`. ### Version 0.2.0 Released on March 28, 2025. Loading
deno.json +29 −6 Original line number Diff line number Diff line Loading @@ -7,22 +7,45 @@ "./mq": "./src/mq.ts" }, "imports": { "@deno/dnt": "jsr:@deno/dnt@^0.41.2", "@alinea/suite": "jsr:@alinea/suite@^0.6.2", "@fedify/fedify": "jsr:@fedify/fedify@^1.5.0", "@std/assert": "jsr:@std/assert@^0.226.0", "@std/async": "jsr:@std/async@^1.0.5", "amqplib": "npm:amqplib@^0.10.4" "@std/assert": "jsr:@std/assert@^1.0.13", "@std/async": "jsr:@std/async@^1.0.13", "amqplib": "npm:amqplib@^0.10.8", "tsdown": "npm:tsdown@^0.12.7" }, "nodeModulesDir": "auto", "unstable": [ "temporal" ], "exclude": [ ".github", "npm" "node_modules", "npm", "pnpm-lock.yaml" ], "tasks": { "build": "pnpm build", "check": "deno fmt --check && deno lint && deno check */*.ts", "test": "deno test --allow-net --allow-env", "dnt": "deno run -A dnt.ts" "test:node": { "dependencies": [ "build" ], "command": "node --experimental-transform-types --test" }, "test:bun": { "dependencies": [ "build" ], "command": "bun test --timeout 15000" }, "test-all": { "dependencies": [ "test", "test:node", "test:bun" ] } } }