Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 6d148bb59e | |||
| e0f586693c | |||
| df28cd4778 | |||
| f49cbd2b6a | |||
| 984b53cba2 | |||
| 4c55243646 | |||
| 49cfcaedd1 | |||
| 3996a69f91 |
@@ -23,24 +23,16 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Install pnpm and npmci
|
||||
run: |
|
||||
pnpm install -g pnpm
|
||||
pnpm install -g @ship.zone/npmci
|
||||
|
||||
- name: Run npm prepare
|
||||
run: npmci npm prepare
|
||||
|
||||
- name: Audit production dependencies
|
||||
run: |
|
||||
npmci command npm config set registry https://registry.npmjs.org
|
||||
npmci command pnpm audit --audit-level=high --prod
|
||||
npm config set registry https://registry.npmjs.org
|
||||
pnpm audit --audit-level=high --prod
|
||||
continue-on-error: true
|
||||
|
||||
- name: Audit development dependencies
|
||||
run: |
|
||||
npmci command npm config set registry https://registry.npmjs.org
|
||||
npmci command pnpm audit --audit-level=high --dev
|
||||
npm config set registry https://registry.npmjs.org
|
||||
pnpm audit --audit-level=high --dev
|
||||
continue-on-error: true
|
||||
|
||||
test:
|
||||
@@ -55,12 +47,10 @@ jobs:
|
||||
|
||||
- name: Test stable
|
||||
run: |
|
||||
npmci node install stable
|
||||
npmci npm install
|
||||
npmci npm test
|
||||
pnpm install
|
||||
pnpm test
|
||||
|
||||
- name: Test build
|
||||
run: |
|
||||
npmci node install stable
|
||||
npmci npm install
|
||||
npmci npm build
|
||||
pnpm install
|
||||
pnpm build
|
||||
|
||||
@@ -23,22 +23,16 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Prepare
|
||||
run: |
|
||||
pnpm install -g pnpm
|
||||
pnpm install -g @ship.zone/npmci
|
||||
npmci npm prepare
|
||||
|
||||
- name: Audit production dependencies
|
||||
run: |
|
||||
npmci command npm config set registry https://registry.npmjs.org
|
||||
npmci command pnpm audit --audit-level=high --prod
|
||||
npm config set registry https://registry.npmjs.org
|
||||
pnpm audit --audit-level=high --prod
|
||||
continue-on-error: true
|
||||
|
||||
- name: Audit development dependencies
|
||||
run: |
|
||||
npmci command npm config set registry https://registry.npmjs.org
|
||||
npmci command pnpm audit --audit-level=high --dev
|
||||
npm config set registry https://registry.npmjs.org
|
||||
pnpm audit --audit-level=high --dev
|
||||
continue-on-error: true
|
||||
|
||||
test:
|
||||
@@ -51,23 +45,15 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Prepare
|
||||
run: |
|
||||
pnpm install -g pnpm
|
||||
pnpm install -g @ship.zone/npmci
|
||||
npmci npm prepare
|
||||
|
||||
- name: Test stable
|
||||
run: |
|
||||
npmci node install stable
|
||||
npmci npm install
|
||||
npmci npm test
|
||||
pnpm install
|
||||
pnpm test
|
||||
|
||||
- name: Test build
|
||||
run: |
|
||||
npmci node install stable
|
||||
npmci npm install
|
||||
npmci npm build
|
||||
pnpm install
|
||||
pnpm build
|
||||
|
||||
release:
|
||||
needs: test
|
||||
@@ -79,28 +65,26 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Prepare
|
||||
run: |
|
||||
pnpm install -g pnpm
|
||||
pnpm install -g @ship.zone/npmci
|
||||
npmci npm prepare
|
||||
|
||||
- name: Release
|
||||
run: |
|
||||
npmci node install stable
|
||||
npmci npm install
|
||||
pnpm install
|
||||
# Extract server host from GITHUB_SERVER_URL (remove https://)
|
||||
GITEA_HOST="${GITHUB_SERVER_URL#https://}"
|
||||
GITEA_REGISTRY="$GITHUB_SERVER_URL/api/packages/$GITHUB_REPOSITORY_OWNER/npm/"
|
||||
# Configure Gitea npm registry
|
||||
npmci command npm config set @${GITHUB_REPOSITORY_OWNER}:registry "$GITEA_REGISTRY"
|
||||
npmci command npm config set "//${GITEA_HOST}/api/packages/${GITHUB_REPOSITORY_OWNER}/npm/:_authToken" "$GITEA_TOKEN"
|
||||
|
||||
# Create .npmrc for Gitea authentication
|
||||
echo "@${GITHUB_REPOSITORY_OWNER}:registry=${GITEA_REGISTRY}" > .npmrc
|
||||
echo "//${GITEA_HOST}/api/packages/${GITHUB_REPOSITORY_OWNER}/npm/:_authToken=${GITEA_TOKEN}" >> .npmrc
|
||||
|
||||
# Publish to Gitea
|
||||
npmci npm publish
|
||||
pnpm publish --no-git-checks
|
||||
|
||||
# Conditionally publish to npmjs.org if token exists
|
||||
if [ -n "$NPMCI_TOKEN_NPM" ]; then
|
||||
npmci command npm config set registry https://registry.npmjs.org
|
||||
npmci npm publish
|
||||
# Update .npmrc for npmjs.org
|
||||
echo "registry=https://registry.npmjs.org/" > .npmrc
|
||||
echo "//registry.npmjs.org/:_authToken=${NPMCI_TOKEN_NPM}" >> .npmrc
|
||||
pnpm publish --no-git-checks
|
||||
fi
|
||||
|
||||
metadata:
|
||||
@@ -114,24 +98,14 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Prepare
|
||||
run: |
|
||||
pnpm install -g pnpm
|
||||
pnpm install -g @ship.zone/npmci
|
||||
npmci npm prepare
|
||||
|
||||
- name: Code quality
|
||||
run: |
|
||||
npmci command npm install -g typescript
|
||||
npmci npm install
|
||||
|
||||
- name: Trigger
|
||||
run: npmci trigger
|
||||
npm install -g typescript
|
||||
pnpm install
|
||||
|
||||
- name: Build docs and upload artifacts
|
||||
run: |
|
||||
npmci node install stable
|
||||
npmci npm install
|
||||
pnpm install
|
||||
pnpm install -g @git.zone/tsdoc
|
||||
npmci command tsdoc
|
||||
tsdoc
|
||||
continue-on-error: true
|
||||
|
||||
32
changelog.md
32
changelog.md
@@ -1,5 +1,37 @@
|
||||
# Changelog
|
||||
|
||||
## 2025-11-01 - 4.3.7 - fix(ci)
|
||||
Update dependencies, add deno.lock, and reorganize tests for browser and Node environments
|
||||
|
||||
- Add deno.lock with resolved npm package versions for deterministic Deno/npm usage
|
||||
- Bump @push.rocks/smartenv dependency to ^6.0.0
|
||||
- Bump devDependencies: @git.zone/tsbuild -> ^2.6.8, @git.zone/tsrun -> ^1.6.2, @git.zone/tstest -> ^2.7.0
|
||||
- Reorganize tests: move browser tests to chromium variants and add environment-specific test files for node, bun, deno (streaming, timeout, streamNode, etc.)
|
||||
- Update package.json dependency ranges to match upgraded lockfile and test tooling
|
||||
|
||||
## 2025-10-26 - 4.3.6 - fix(ci)
|
||||
Use .npmrc for registry authentication in Gitea workflow and add conditional npmjs publish
|
||||
|
||||
- Replace npm config set commands with creating a .npmrc file for Gitea registry authentication in .gitea/workflows/default_tags.yaml
|
||||
- Add conditional update of .npmrc and publishing to npmjs.org when NPMCI_TOKEN_NPM is provided
|
||||
- Keep pnpm publish --no-git-checks; improve CI credential handling to be file-based
|
||||
|
||||
## 2025-10-26 - 4.3.5 - fix(workflows)
|
||||
Remove npmci wrappers from CI workflows and use pnpm/npm CLI directly
|
||||
|
||||
- Removed global npmci installation and npmci npm prepare steps from Gitea workflow files
|
||||
- Use pnpm install/test/build instead of npmci-wrapped commands in test jobs
|
||||
- Replace npmci command npm config set ... with direct npm config set calls for registry/auth configuration
|
||||
- Use pnpm publish --no-git-checks for Gitea publishing and use pnpm publish for conditional npmjs publish when token present
|
||||
- Simplified dependency auditing to run pnpm audit and set registry via npm config set
|
||||
- Install tsdoc globally and run tsdoc during docs build step (replacing npmci command usage)
|
||||
|
||||
## 2025-10-25 - 4.3.4 - fix(ci)
|
||||
Fix Gitea workflow publish invocation to run npm publish via npmci command
|
||||
|
||||
- Update .gitea/workflows/default_tags.yaml to use 'npmci command npm publish' for the publish step
|
||||
- Ensures the workflow runs npm publish through the npmci command wrapper to avoid incorrect task invocation
|
||||
|
||||
## 2025-10-25 - 4.3.3 - fix(ci)
|
||||
Improve Gitea release workflow: install deps, configure Gitea npm registry, and optionally publish to npmjs.org
|
||||
|
||||
|
||||
10
package.json
10
package.json
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@push.rocks/smartrequest",
|
||||
"version": "4.3.3",
|
||||
"version": "4.3.7",
|
||||
"private": false,
|
||||
"description": "A module for modern HTTP/HTTPS requests with support for form data, file uploads, JSON, binary data, streams, and more.",
|
||||
"exports": {
|
||||
@@ -39,7 +39,7 @@
|
||||
},
|
||||
"homepage": "https://code.foss.global/push.rocks/smartrequest#readme",
|
||||
"dependencies": {
|
||||
"@push.rocks/smartenv": "^5.0.13",
|
||||
"@push.rocks/smartenv": "^6.0.0",
|
||||
"@push.rocks/smartpath": "^6.0.0",
|
||||
"@push.rocks/smartpromise": "^4.0.4",
|
||||
"@push.rocks/smarturl": "^3.1.0",
|
||||
@@ -47,9 +47,9 @@
|
||||
"form-data": "^4.0.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@git.zone/tsbuild": "^2.6.4",
|
||||
"@git.zone/tsrun": "^1.3.3",
|
||||
"@git.zone/tstest": "^2.3.4",
|
||||
"@git.zone/tsbuild": "^2.6.8",
|
||||
"@git.zone/tsrun": "^1.6.2",
|
||||
"@git.zone/tstest": "^2.7.0",
|
||||
"@types/node": "^22.9.0"
|
||||
},
|
||||
"files": [
|
||||
|
||||
5682
pnpm-lock.yaml
generated
5682
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@@ -1,5 +1,5 @@
|
||||
import { tap, expect } from '@git.zone/tstest/tapbundle';
|
||||
import * as fs from 'fs';
|
||||
import * as fs from 'node:fs';
|
||||
import { SmartRequest } from '../ts/index.js';
|
||||
|
||||
tap.test('should send a buffer using buffer() method', async () => {
|
||||
@@ -3,6 +3,6 @@
|
||||
*/
|
||||
export const commitinfo = {
|
||||
name: '@push.rocks/smartrequest',
|
||||
version: '4.3.3',
|
||||
version: '4.3.7',
|
||||
description: 'A module for modern HTTP/HTTPS requests with support for form data, file uploads, JSON, binary data, streams, and more.'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user