Skip to content

Commit aae6c60

Browse files
erunionkanadgupta
andauthored
feat: dropping support for non-native FormData implementations (readmeio#199)
* refactor: making the library async * feat: dropping support for non-native FormData implementations * fix: making `convert` async instead of having to call `.init()` * chore: running prettier on everything * feat: pr feedback * Update src/index.ts Co-authored-by: Kanad Gupta <[email protected]> --------- Co-authored-by: Kanad Gupta <[email protected]>
1 parent 487030f commit aae6c60

78 files changed

Lines changed: 314 additions & 416 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.eslintrc

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,12 @@
2020

2121
"unicorn/prefer-node-protocol": "error",
2222

23-
"vitest/require-hook": "off"
23+
"vitest/require-hook": [
24+
"error",
25+
{
26+
"allowedFunctionCalls": ["runCustomFixtures"]
27+
}
28+
]
2429
},
2530
"overrides": [
2631
{

.github/dependabot.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
version: 2
22
updates:
33
- package-ecosystem: github-actions
4-
directory: "/"
4+
directory: '/'
55
schedule:
66
interval: monthly
77
reviewers:
@@ -19,7 +19,7 @@ updates:
1919
prefix-development: chore(deps-dev)
2020

2121
- package-ecosystem: npm
22-
directory: "/"
22+
directory: '/'
2323
schedule:
2424
interval: monthly
2525
open-pull-requests-limit: 10
@@ -40,4 +40,4 @@ updates:
4040
# stringify-objectis now an ESM package and can't be used here without a rewrite.
4141
- dependency-name: stringify-object
4242
versions:
43-
- ">= 4"
43+
- '>= 4'

.github/workflows/ci.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ on:
88

99
jobs:
1010
build:
11-
1211
runs-on: ubuntu-latest
1312

1413
strategy:
@@ -18,13 +17,13 @@ jobs:
1817
- 20
1918

2019
steps:
21-
- uses: actions/checkout@v4
20+
- uses: actions/checkout@v4
2221

23-
- name: Use Node.js ${{ matrix.node-version }}
24-
uses: actions/setup-node@v3
25-
with:
26-
node-version: ${{ matrix.node-version }}
22+
- name: Use Node.js ${{ matrix.node-version }}
23+
uses: actions/setup-node@v3
24+
with:
25+
node-version: ${{ matrix.node-version }}
2726

28-
- run: npm ci
29-
- run: npm run build
30-
- run: npm test
27+
- run: npm ci
28+
- run: npm run build
29+
- run: npm test

.github/workflows/codeql-analysis.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: "CodeQL"
1+
name: 'CodeQL'
22

33
on:
44
push:
@@ -20,16 +20,16 @@ jobs:
2020
strategy:
2121
fail-fast: false
2222
matrix:
23-
language: [ 'javascript' ]
23+
language: ['javascript']
2424

2525
steps:
26-
- name: Checkout repository
27-
uses: actions/checkout@v4
26+
- name: Checkout repository
27+
uses: actions/checkout@v4
2828

29-
- name: Initialize CodeQL
30-
uses: github/codeql-action/init@v2
31-
with:
32-
languages: ${{ matrix.language }}
29+
- name: Initialize CodeQL
30+
uses: github/codeql-action/init@v2
31+
with:
32+
languages: ${{ matrix.language }}
3333

34-
- name: Perform CodeQL Analysis
35-
uses: github/codeql-action/analyze@v2
34+
- name: Perform CodeQL Analysis
35+
uses: github/codeql-action/analyze@v2

.github/workflows/integration-node.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ jobs:
44
build:
55
runs-on: ubuntu-latest
66
steps:
7-
- uses: actions/checkout@v4
7+
- uses: actions/checkout@v4
88

9-
- name: Run tests
10-
run: docker-compose run integration_node
9+
- name: Run tests
10+
run: docker-compose run integration_node
1111

12-
- name: Cleanup
13-
if: always()
14-
run: docker-compose down
12+
- name: Cleanup
13+
if: always()
14+
run: docker-compose down

.github/workflows/integration-php.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ jobs:
44
build:
55
runs-on: ubuntu-latest
66
steps:
7-
- uses: actions/checkout@v4
7+
- uses: actions/checkout@v4
88

9-
- name: Run tests
10-
run: docker-compose run integration_php
9+
- name: Run tests
10+
run: docker-compose run integration_php
1111

12-
- name: Cleanup
13-
if: always()
14-
run: docker-compose down
12+
- name: Cleanup
13+
if: always()
14+
run: docker-compose down

.github/workflows/integration-python.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ jobs:
44
build:
55
runs-on: ubuntu-latest
66
steps:
7-
- uses: actions/checkout@v4
7+
- uses: actions/checkout@v4
88

9-
- name: Run tests
10-
run: docker-compose run integration_python
9+
- name: Run tests
10+
run: docker-compose run integration_python
1111

12-
- name: Cleanup
13-
if: always()
14-
run: docker-compose down
12+
- name: Cleanup
13+
if: always()
14+
run: docker-compose down

.github/workflows/integration-shell.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ jobs:
44
build:
55
runs-on: ubuntu-latest
66
steps:
7-
- uses: actions/checkout@v4
7+
- uses: actions/checkout@v4
88

9-
- name: Run tests
10-
run: docker-compose run integration_shell
9+
- name: Run tests
10+
run: docker-compose run integration_shell
1111

12-
- name: Cleanup
13-
if: always()
14-
run: docker-compose down
12+
- name: Cleanup
13+
if: always()
14+
run: docker-compose down

.sink.d.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

.vscode/settings.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
{
2-
"files.insertFinalNewline": false, // controlled by the .editorconfig at root since we can't map vscode settings directly to files (see: https://github.com/microsoft/vscode/issues/35350)
3-
"editor.defaultFormatter": "esbenp.prettier-vscode"
2+
"editor.codeActionsOnSave": {
3+
"source.fixAll": true
4+
},
5+
"editor.defaultFormatter": "esbenp.prettier-vscode",
6+
7+
// controlled by the .editorconfig at root since we can't map vscode settings directly to files
8+
// https://github.com/microsoft/vscode/issues/35350
9+
"files.insertFinalNewline": false
410
}

0 commit comments

Comments
 (0)