Compare commits

...

10 Commits

Author SHA1 Message Date
df28cd4778 4.3.6
Some checks failed
Default (tags) / security (push) Successful in 4s
Default (tags) / test (push) Successful in 43s
Default (tags) / release (push) Failing after 29s
Default (tags) / metadata (push) Successful in 54s
2025-10-26 14:12:38 +00:00
f49cbd2b6a fix(ci): Use .npmrc for registry authentication in Gitea workflow and add conditional npmjs publish 2025-10-26 14:12:37 +00:00
984b53cba2 4.3.5
Some checks failed
Default (tags) / security (push) Successful in 11s
Default (tags) / test (push) Successful in 47s
Default (tags) / release (push) Failing after 29s
Default (tags) / metadata (push) Successful in 57s
2025-10-26 14:07:55 +00:00
4c55243646 fix(workflows): Remove npmci wrappers from CI workflows and use pnpm/npm CLI directly 2025-10-26 14:07:55 +00:00
49cfcaedd1 4.3.4
Some checks failed
Default (tags) / security (push) Successful in 34s
Default (tags) / test (push) Successful in 1m1s
Default (tags) / release (push) Failing after 46s
Default (tags) / metadata (push) Successful in 56s
2025-10-25 17:16:01 +00:00
3996a69f91 fix(ci): Fix Gitea workflow publish invocation to run npm publish via npmci command 2025-10-25 17:16:01 +00:00
629f6dd425 4.3.3
Some checks failed
Default (tags) / security (push) Successful in 43s
Default (tags) / test (push) Successful in 1m5s
Default (tags) / release (push) Failing after 48s
Default (tags) / metadata (push) Successful in 57s
2025-10-25 17:09:33 +00:00
d141ceeaf7 fix(ci): Improve Gitea release workflow: install deps, configure Gitea npm registry, and optionally publish to npmjs.org 2025-10-25 17:09:33 +00:00
7d3c94cae6 4.3.2
Some checks failed
Default (tags) / security (push) Successful in 58s
Default (tags) / test (push) Successful in 1m45s
Default (tags) / release (push) Failing after 59s
Default (tags) / metadata (push) Successful in 1m0s
2025-10-17 09:09:12 +00:00
5bae452365 fix(core): Remove stray console.log from core module 2025-10-17 09:09:12 +00:00
6 changed files with 78 additions and 65 deletions

View File

@@ -23,24 +23,16 @@ jobs:
steps: steps:
- uses: actions/checkout@v3 - 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 - name: Audit production dependencies
run: | run: |
npmci command npm config set registry https://registry.npmjs.org npm config set registry https://registry.npmjs.org
npmci command pnpm audit --audit-level=high --prod pnpm audit --audit-level=high --prod
continue-on-error: true continue-on-error: true
- name: Audit development dependencies - name: Audit development dependencies
run: | run: |
npmci command npm config set registry https://registry.npmjs.org npm config set registry https://registry.npmjs.org
npmci command pnpm audit --audit-level=high --dev pnpm audit --audit-level=high --dev
continue-on-error: true continue-on-error: true
test: test:
@@ -55,12 +47,10 @@ jobs:
- name: Test stable - name: Test stable
run: | run: |
npmci node install stable pnpm install
npmci npm install pnpm test
npmci npm test
- name: Test build - name: Test build
run: | run: |
npmci node install stable pnpm install
npmci npm install pnpm build
npmci npm build

View File

@@ -23,22 +23,16 @@ jobs:
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Prepare
run: |
pnpm install -g pnpm
pnpm install -g @ship.zone/npmci
npmci npm prepare
- name: Audit production dependencies - name: Audit production dependencies
run: | run: |
npmci command npm config set registry https://registry.npmjs.org npm config set registry https://registry.npmjs.org
npmci command pnpm audit --audit-level=high --prod pnpm audit --audit-level=high --prod
continue-on-error: true continue-on-error: true
- name: Audit development dependencies - name: Audit development dependencies
run: | run: |
npmci command npm config set registry https://registry.npmjs.org npm config set registry https://registry.npmjs.org
npmci command pnpm audit --audit-level=high --dev pnpm audit --audit-level=high --dev
continue-on-error: true continue-on-error: true
test: test:
@@ -51,23 +45,15 @@ jobs:
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Prepare
run: |
pnpm install -g pnpm
pnpm install -g @ship.zone/npmci
npmci npm prepare
- name: Test stable - name: Test stable
run: | run: |
npmci node install stable pnpm install
npmci npm install pnpm test
npmci npm test
- name: Test build - name: Test build
run: | run: |
npmci node install stable pnpm install
npmci npm install pnpm build
npmci npm build
release: release:
needs: test needs: test
@@ -79,16 +65,27 @@ jobs:
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Prepare
run: |
pnpm install -g pnpm
pnpm install -g @ship.zone/npmci
npmci npm prepare
- name: Release - name: Release
run: | run: |
npmci node install stable pnpm install
npmci npm publish # 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/"
# 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
pnpm publish --no-git-checks
# Conditionally publish to npmjs.org if token exists
if [ -n "$NPMCI_TOKEN_NPM" ]; then
# 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: metadata:
needs: test needs: test
@@ -101,24 +98,14 @@ jobs:
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Prepare
run: |
pnpm install -g pnpm
pnpm install -g @ship.zone/npmci
npmci npm prepare
- name: Code quality - name: Code quality
run: | run: |
npmci command npm install -g typescript npm install -g typescript
npmci npm install pnpm install
- name: Trigger
run: npmci trigger
- name: Build docs and upload artifacts - name: Build docs and upload artifacts
run: | run: |
npmci node install stable pnpm install
npmci npm install
pnpm install -g @git.zone/tsdoc pnpm install -g @git.zone/tsdoc
npmci command tsdoc tsdoc
continue-on-error: true continue-on-error: true

View File

@@ -1,5 +1,42 @@
# Changelog # Changelog
## 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
- Run npm install in the release job to ensure dependencies are available before publishing.
- Configure Gitea/npm registry using GITHUB_SERVER_URL and set auth token for the @<owner> scope.
- Publish to the Gitea npm registry during release.
- If NPMCI_TOKEN_NPM is provided, also publish to the public npmjs.org registry (conditional publish).
- Extract host from GITHUB_SERVER_URL to correctly set the registry auth URL.
## 2025-10-17 - 4.3.2 - fix(core)
Remove stray console.log from core module
- Removed a stray debug console.log(modulePath) from ts/core/index.ts that printed the module path during Node environment initialization
## 2025-08-19 - 4.3.1 - fix(core) ## 2025-08-19 - 4.3.1 - fix(core)
Improve streaming support and timeout handling; add browser streaming & timeout tests and README clarifications Improve streaming support and timeout handling; add browser streaming & timeout tests and README clarifications

View File

@@ -1,6 +1,6 @@
{ {
"name": "@push.rocks/smartrequest", "name": "@push.rocks/smartrequest",
"version": "4.3.1", "version": "4.3.6",
"private": false, "private": false,
"description": "A module for modern HTTP/HTTPS requests with support for form data, file uploads, JSON, binary data, streams, and more.", "description": "A module for modern HTTP/HTTPS requests with support for form data, file uploads, JSON, binary data, streams, and more.",
"exports": { "exports": {

View File

@@ -3,6 +3,6 @@
*/ */
export const commitinfo = { export const commitinfo = {
name: '@push.rocks/smartrequest', name: '@push.rocks/smartrequest',
version: '4.3.1', version: '4.3.6',
description: 'A module for modern HTTP/HTTPS requests with support for form data, file uploads, JSON, binary data, streams, and more.' description: 'A module for modern HTTP/HTTPS requests with support for form data, file uploads, JSON, binary data, streams, and more.'
} }

View File

@@ -15,7 +15,6 @@ if (smartenvInstance.isNode) {
plugins.smartpath.dirname(import.meta.url), plugins.smartpath.dirname(import.meta.url),
'../core_node/index.js', '../core_node/index.js',
); );
console.log(modulePath);
const impl = await smartenvInstance.getSafeNodeModule(modulePath); const impl = await smartenvInstance.getSafeNodeModule(modulePath);
CoreRequest = impl.CoreRequest; CoreRequest = impl.CoreRequest;
CoreResponse = impl.CoreResponse; CoreResponse = impl.CoreResponse;