Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
84 commits
Select commit Hold shift + click to select a range
a37768c
chore(deps): bump qs from 6.12.1 to 6.12.3 (#240)
dependabot[bot] Aug 1, 2024
1bf2736
chore(deps-dev): bump vitest and @vitest/coverage-v8 (#241)
dependabot[bot] Aug 1, 2024
b1be5b7
chore(deps-dev): bump @types/node from 20.14.9 to 22.0.2 (#242)
dependabot[bot] Aug 1, 2024
30b4b58
chore(deps-dev): bump the minor-development-deps group with 5 updates…
dependabot[bot] Aug 1, 2024
0bdffb5
chore(deps-dev): bump the minor-development-deps group with 4 updates…
dependabot[bot] Sep 4, 2024
265ae3a
chore(deps): bump qs from 6.12.3 to 6.13.0 (#244)
dependabot[bot] Sep 4, 2024
cb55858
fix: running `npm audit fix`
erunion Sep 4, 2024
281a09c
feat: modernizing our JS and Node snippet targets (#245)
erunion Sep 5, 2024
c1595bc
build: 10.1.0 release
erunion Sep 5, 2024
c65e264
revert: revert #245 (#247)
kanadgupta Sep 23, 2024
70faf2e
build: publish 10.1.1
kanadgupta Sep 23, 2024
862a48e
revert(again)!: bring back #245 (#249)
kanadgupta Sep 23, 2024
438f275
ci: shuffle a few things around (#250)
kanadgupta Sep 23, 2024
afc184b
build: v11.0.0 release
kanadgupta Sep 23, 2024
44188f4
chore(deps-dev): bump the minor-development-deps group across 1 direc…
dependabot[bot] Nov 4, 2024
4d02e86
chore(deps): bump qs and @types/qs (#255)
dependabot[bot] Dec 1, 2024
9d3be93
chore(deps-dev): bump the minor-development-deps group with 6 updates…
dependabot[bot] Dec 1, 2024
7c6052b
chore(deps-dev): bump the minor-development-deps group with 5 updates…
dependabot[bot] Jan 1, 2025
f7ee632
chore(deps): bump vite from 5.4.11 to 5.4.14 (#257)
dependabot[bot] Jan 22, 2025
7a2ea8d
chore(deps): bump qs and @types/qs (#261)
dependabot[bot] Feb 1, 2025
f19e2eb
chore(deps-dev): bump the minor-development-deps group with 4 updates…
dependabot[bot] Feb 1, 2025
b5c9903
chore(deps-dev): upgrading out of date deps
erunion Feb 4, 2025
7908ff0
chore(deps-dev): bump the minor-development-deps group with 8 updates…
dependabot[bot] Mar 2, 2025
58bbe54
chore(deps): bump vite from 6.2.0 to 6.2.4 (#265)
dependabot[bot] Mar 31, 2025
cf193bf
chore(deps-dev): bump the minor-development-deps group with 7 updates…
dependabot[bot] Apr 1, 2025
f489b1e
chore(deps): bump vite from 6.2.4 to 6.2.5 (#268)
dependabot[bot] Apr 4, 2025
f5e3d50
feat: support for making installation string generation dynamic (#269)
erunion Apr 8, 2025
f8b22bc
chore: various doc + typing + CI touchups (#270)
kanadgupta Apr 8, 2025
1d81a61
chore(deps-dev): upgrading out of date deps
erunion Apr 9, 2025
60639da
feat: enabling `isolatedDeclarations` (#271)
erunion Apr 9, 2025
80ddf54
refactor: stricter return types, tsconfig cleanup (#272)
kanadgupta Apr 9, 2025
e2dc67f
chore(deps): bump vite from 6.2.5 to 6.2.6 (#273)
dependabot[bot] Apr 11, 2025
8324568
chore(deps): bump vite from 6.2.6 to 6.3.4 (#274)
dependabot[bot] Apr 30, 2025
1321813
chore(deps): bump type-fest from 4.39.1 to 4.40.1 (#277)
dependabot[bot] May 1, 2025
44e72c9
chore(deps-dev): bump the minor-development-deps group with 3 updates…
dependabot[bot] May 1, 2025
dbd7055
chore: replacing `reviewers` in dependabot with a CODEOWNERS
erunion May 20, 2025
266d384
chore(deps): bump type-fest from 4.40.1 to 4.41.0 (#279)
dependabot[bot] May 20, 2025
2d7ee16
chore(deps-dev): bump the minor-development-deps group with 6 updates…
dependabot[bot] May 20, 2025
1b89277
chore(deps-dev): bump the minor-development-deps group with 2 updates…
dependabot[bot] Jun 2, 2025
6590b8b
chore(deps-dev): bump the minor-development-deps group with 3 updates…
dependabot[bot] Jul 1, 2025
77bfd8b
chore(deps-dev): bump @types/node from 22.15.29 to 24.0.8 (#284)
dependabot[bot] Jul 1, 2025
781e960
chore: moving from ESLint to Biome
erunion Aug 4, 2025
0b78483
chore: remove some eslint stragglers
erunion Aug 4, 2025
c7990f1
chore(deps-dev): bump the minor-development-deps group across 1 direc…
dependabot[bot] Aug 7, 2025
745af50
chore(deps): bump actions/checkout from 4 to 5 (#290)
dependabot[bot] Sep 3, 2025
fed0eb0
chore(deps): bump actions/setup-node from 4 to 5 (#292)
dependabot[bot] Oct 6, 2025
6d97291
chore(deps-dev): bump @readme/standards from 1.2.0 to 2.2.0 (#295)
dependabot[bot] Oct 6, 2025
ce56701
chore(deps): bump type-fest from 4.41.0 to 5.0.1 (#294)
dependabot[bot] Oct 6, 2025
95ea9f6
chore(deps-dev): bump the minor-development-deps group with 3 updates…
dependabot[bot] Oct 6, 2025
c120bc0
chore(deps): bump vite from 7.0.0 to 7.1.9 (#296)
dependabot[bot] Oct 6, 2025
504fb2a
chore(deps-dev): bump the minor-development-deps group across 1 direc…
dependabot[bot] Oct 6, 2025
d5658b2
chore(deps): bump vite from 7.1.9 to 7.1.11 (#298)
dependabot[bot] Oct 21, 2025
fd02478
chore(deps-dev): upgrade biome and vitest
erunion Oct 24, 2025
6a45135
chore(deps): bump type-fest from 5.0.1 to 5.1.0 (#302)
dependabot[bot] Nov 1, 2025
0e198c7
chore(deps-dev): bump the minor-development-deps group with 5 updates…
dependabot[bot] Nov 1, 2025
d2b0f97
chore(deps): bump github/codeql-action from 3 to 4 (#300)
dependabot[bot] Nov 1, 2025
0f776dc
chore(deps): bump actions/setup-node from 5 to 6 (#299)
dependabot[bot] Nov 1, 2025
08e168e
chore(deps-dev): bump the minor-development-deps group with 6 updates…
dependabot[bot] Dec 1, 2025
b869804
chore(deps): bump type-fest from 5.1.0 to 5.2.0 (#305)
dependabot[bot] Dec 1, 2025
bfe41b4
ci: configuring dependabot to group prod deps
erunion Dec 1, 2025
8f618e4
chore(deps): bump actions/checkout from 5 to 6 (#306)
dependabot[bot] Dec 1, 2025
48e5a20
chore(deps): bump qs from 6.14.0 to 6.14.1 (#310)
dependabot[bot] Jan 5, 2026
b46b471
chore(deps-dev): bump @types/node from 24.10.1 to 25.0.3 (#309)
dependabot[bot] Jan 5, 2026
6404702
chore(deps): bump the minor-production-deps group with 2 updates (#308)
dependabot[bot] Jan 5, 2026
5d238e6
chore(deps-dev): bump the minor-development-deps group with 4 updates…
dependabot[bot] Jan 5, 2026
4d25c24
chore(deps-dev): bump @biomejs/biome from 2.3.10 to 2.3.11 in the min…
dependabot[bot] Jan 5, 2026
07fe5b0
chore(deps-dev): bump the minor-development-deps group with 5 updates…
dependabot[bot] Feb 2, 2026
3246d3f
chore(deps): bump type-fest from 5.3.1 to 5.4.3 in the minor-producti…
dependabot[bot] Feb 2, 2026
ae49e9f
chore(deps): bump qs from 6.14.1 to 6.14.2 (#314)
dependabot[bot] Feb 24, 2026
d1f7c12
fix: use --data-urlencode for form-urlencoded curl snippets (#315)
HugoHSun Feb 24, 2026
d26dfcc
chore(deps): running `npm audit fix`
erunion Feb 24, 2026
fab7be1
chore(deps): updating out of date deps
erunion Feb 24, 2026
39b3dc0
build(release): 11.1.0
erunion Feb 24, 2026
2783bbf
chore(deps): bump rollup from 4.44.1 to 4.59.0 (#316)
dependabot[bot] Feb 28, 2026
6368213
chore(deps-dev): bump @types/node from 25.3.0 to 25.3.3 in the minor-…
dependabot[bot] Mar 3, 2026
7da471a
chore(deps): bump picomatch from 4.0.3 to 4.0.4 (#318)
dependabot[bot] Mar 26, 2026
fddc668
fix: regenerating httpbin certs
erunion Mar 26, 2026
d91c486
chore(deps): bump type-fest from 5.4.4 to 5.5.0 in the minor-producti…
dependabot[bot] Apr 2, 2026
3a4d24b
chore(deps-dev): bump the minor-development-deps group with 5 updates…
dependabot[bot] Apr 2, 2026
07225ed
chore(deps-dev): bump typescript from 5.9.3 to 6.0.2 (#321)
dependabot[bot] Apr 2, 2026
2d0dbb5
chore(deps): bump vite from 8.0.3 to 8.0.5 (#322)
dependabot[bot] Apr 6, 2026
ca90f13
Merge remote-tracking branch 'upstream/main'
mosch Apr 8, 2026
c185307
Remove unused @zuplo/formdata-to-string dependency
mosch Apr 8, 2026
6df902e
Update integration Dockerfiles to Node 22
mosch Apr 8, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .eslintignore

This file was deleted.

46 changes: 0 additions & 46 deletions .eslintrc

This file was deleted.

1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @erunion
9 changes: 5 additions & 4 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ updates:
directory: '/'
schedule:
interval: monthly
reviewers:
- erunion
labels:
- dependencies
groups:
Expand All @@ -23,8 +21,6 @@ updates:
schedule:
interval: monthly
open-pull-requests-limit: 10
reviewers:
- erunion
labels:
- dependencies
groups:
Expand All @@ -33,6 +29,11 @@ updates:
update-types:
- minor
- patch
minor-production-deps:
dependency-type: 'production'
update-types:
- minor
- patch
commit-message:
prefix: chore(deps)
prefix-development: chore(deps-dev)
Expand Down
20 changes: 14 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,25 @@ jobs:
strategy:
matrix:
node-version:
- 18
- 20
- lts/-1
- lts/*
- latest

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}

- run: npm cit

lint:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v6

- run: npm ci
- run: npm run build
- run: npm test
- run: npm run lint
6 changes: 3 additions & 3 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Initialize CodeQL
uses: github/codeql-action/init@v3
uses: github/codeql-action/init@v4
with:
languages: ${{ matrix.language }}

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
uses: github/codeql-action/analyze@v4
6 changes: 3 additions & 3 deletions .github/workflows/integration-c.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6

- name: Run tests
run: docker-compose run integration_c
run: docker compose run integration_c

- name: Cleanup
if: always()
run: docker-compose down
run: docker compose down
6 changes: 3 additions & 3 deletions .github/workflows/integration-csharp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6

- name: Run tests
run: docker-compose run integration_csharp
run: docker compose run integration_csharp

- name: Cleanup
if: always()
run: docker-compose down
run: docker compose down
6 changes: 3 additions & 3 deletions .github/workflows/integration-go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6

- name: Run tests
run: docker-compose run integration_golang
run: docker compose run integration_golang

- name: Cleanup
if: always()
run: docker-compose down
run: docker compose down
6 changes: 3 additions & 3 deletions .github/workflows/integration-node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6

- name: Run tests
run: docker-compose run integration_node
run: docker compose run integration_node

- name: Cleanup
if: always()
run: docker-compose down
run: docker compose down
6 changes: 3 additions & 3 deletions .github/workflows/integration-php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6

- name: Run tests
run: docker-compose run integration_php
run: docker compose run integration_php

- name: Cleanup
if: always()
run: docker-compose down
run: docker compose down
6 changes: 3 additions & 3 deletions .github/workflows/integration-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6

- name: Run tests
run: docker-compose run integration_python
run: docker compose run integration_python

- name: Cleanup
if: always()
run: docker-compose down
run: docker compose down
6 changes: 3 additions & 3 deletions .github/workflows/integration-shell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6

- name: Run tests
run: docker-compose run integration_shell
run: docker compose run integration_shell

- name: Cleanup
if: always()
run: docker-compose down
run: docker compose down
2 changes: 0 additions & 2 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
lockfile-version=3
//npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN}
@zuplo:registry=https://npm.pkg.github.com
16 changes: 0 additions & 16 deletions .prettierrc.js

This file was deleted.

9 changes: 7 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
{
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.codeActionsOnSave": {
"source.fixAll": "explicit"
},
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,

// controlled by the .editorconfig at root since we can't map vscode settings directly to files
// https://github.com/microsoft/vscode/issues/35350
"files.insertFinalNewline": false
"files.insertFinalNewline": false,

"search.exclude": {
"coverage": true
}
}
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ console.log(
}),
);

// generate Node.js: Unirest output
console.log(snippet.convert('node', 'unirest'));
// generate Node.js: Axios output
console.log(snippet.convert('node', 'axios'));
```

### addTarget(target)
Expand Down
55 changes: 55 additions & 0 deletions biome.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
"extends": ["@readme/standards/biome", "@readme/standards/biome/esm"],
"files": {
"ignoreUnknown": false,
"includes": ["**/*.{cjs,mjs,js,mts,ts}", "!coverage", "!dist", "!src/targets/**/fixtures"],
},
"linter": {
"enabled": true,
"domains": {
"project": "all",
"test": "all",
},
"rules": {
"correctness": {
// This is being flagged on Node built-ins. https://github.com/biomejs/biome/issues/8849
"noUnresolvedImports": "off",
},
"performance": {
"noAccumulatingSpread": "off", // @fixme
},
"style": {
"noParameterAssign": "off", // @fixme
"useDefaultSwitchClause": "off",
},
"suspicious": {
"noExplicitAny": "off",
"noPrototypeBuiltins": "off",

// We unfortunatley have an `escape` option in our core targets that's being seen as
// shadowing the global `escape` function.
"noShadowRestrictedNames": "off",
},
},
},
"overrides": [
{
"includes": ["src/**/*.test.ts"],
"linter": {
"rules": {
"correctness": {
// Because we dynamically load test fixtures, and have to use `require` to do so, those
// files need to be `.cjs` files which collides with this extension as it wants them
// to be `.js`.
"useImportExtensions": "off",

// For the same reasons as `useImportExtensions`, because we load in some `.cjs` files
// in tests those use `module.exports` and do not have a "default" export.
"noUnresolvedImports": "off",
},
},
},
},
],
}
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ services:
- HTTPS_KEY_FILE=/https-cert/httpbin.org-key.pem
networks:
default:
# on the docker-compose network, this proxy will be aliased as
# on the `docker compose` network, this proxy will be aliased as
# httpbin.org. To make this work with HTTPS, each integration test
# container needs to install the root CA contained in
# ./integrations/https-cert/rootCA.pem
Expand Down
4 changes: 2 additions & 2 deletions integrations/c.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM alpine:3.18
FROM node:22-alpine

COPY integrations/https-cert/rootCA.pem /root/integration-test.pem

Expand All @@ -9,7 +9,7 @@ RUN apk --no-cache add ca-certificates && \
update-ca-certificates

RUN apk update && \
apk add build-base curl-dev libcurl nodejs npm openssl-dev
apk add build-base curl-dev libcurl openssl-dev

WORKDIR /src

Expand Down
6 changes: 3 additions & 3 deletions integrations/csharp.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FROM node:20-alpine3.18 AS node
FROM mcr.microsoft.com/dotnet/sdk:7.0-alpine3.18
FROM node:22-alpine AS node
FROM mcr.microsoft.com/dotnet/sdk:8.0-alpine

COPY integrations/https-cert/rootCA.pem /root/integration-test.pem

Expand All @@ -23,7 +23,7 @@ WORKDIR /src
# folder with our test fixtures to run them
# - install RestSharp into that project
# - make a folder with the appropriate structure to hold the test fixtures
RUN dotnet new console -o IntTestCsharp -f net7.0 && \
RUN dotnet new console -o IntTestCsharp -f net8.0 && \
cd IntTestCsharp && \
dotnet add package RestSharp && \
mkdir -p /src/IntTestCsharp/src/fixtures/files
Expand Down
Loading
Loading