Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: "ERR_INVALID_THIS" on Node 20 #86

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
5 changes: 5 additions & 0 deletions .changeset/polite-eggs-jam.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@web-std/fetch": patch
---

fixes "ERR_INVALID_THIS" on Node 20
11 changes: 7 additions & 4 deletions .github/workflows/blob.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ jobs:
project:
- blob
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Setup node ${{ matrix.node-version }}
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

Expand All @@ -42,10 +42,13 @@ jobs:
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
node-version:
- 14
- 16
- 18
- 20
os:
- ubuntu-latest
- windows-latest
Expand All @@ -54,10 +57,10 @@ jobs:
- blob

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Setup Node
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

Expand Down
11 changes: 7 additions & 4 deletions .github/workflows/fetch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ jobs:
project:
- fetch
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Setup node ${{ matrix.node-version }}
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

Expand All @@ -44,10 +44,13 @@ jobs:
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
node-version:
- 14
- 16
- 18
- 20
os:
- ubuntu-latest
- windows-latest
Expand All @@ -62,10 +65,10 @@ jobs:
node-version: 14

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Setup Node
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

Expand Down
11 changes: 7 additions & 4 deletions .github/workflows/file.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ jobs:
project:
- file
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Setup node ${{ matrix.node-version }}
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

Expand All @@ -42,10 +42,13 @@ jobs:
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
node-version:
- 14
- 16
- 18
- 20
os:
- ubuntu-latest
- windows-latest
Expand All @@ -54,10 +57,10 @@ jobs:
- file

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Setup Node
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

Expand Down
11 changes: 7 additions & 4 deletions .github/workflows/form-data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ jobs:
project:
- form-data
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Setup node ${{ matrix.node-version }}
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

Expand All @@ -43,10 +43,13 @@ jobs:
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
node-version:
- 14
- 16
- 18
- 20
os:
- ubuntu-latest
- windows-latest
Expand All @@ -55,10 +58,10 @@ jobs:
- form-data

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Setup Node
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

Expand Down
15 changes: 9 additions & 6 deletions .github/workflows/stream.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ jobs:
- stream
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Setup node ${{ matrix.node-version }}
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

Expand All @@ -43,10 +43,13 @@ jobs:
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
node-version:
- 14
- 16
- 18
- 20
os:
- ubuntu-latest
- windows-latest
Expand All @@ -56,10 +59,10 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Setup Node
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

Expand All @@ -84,10 +87,10 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Setup Node
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: 16

Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"name": "@web-std/io",
"private": true,
"workspaces": [
"packages/blob",
Expand Down
4 changes: 2 additions & 2 deletions packages/blob/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@
},
"dependencies": {
"web-encoding": "1.1.5",
"@web-std/stream": "1.0.0"
"@web-std/stream": "^1.0.3"
},
"author": "Irakli Gozalishvili <dev@gozala.io> (https://gozala.io)",
"repository": "https://github.com/web-std/io",
"license": "MIT",
"devDependencies": {
"@types/node": "15.0.2",
"@web-std/fetch": "^3.0.0",
"@web-std/fetch": "^4.2.1",
"git-validate": "2.2.4",
"husky": "^6.0.0",
"lint-staged": "^11.0.0",
Expand Down
12 changes: 0 additions & 12 deletions packages/fetch/.github/FUNDING.yml

This file was deleted.

40 changes: 0 additions & 40 deletions packages/fetch/.github/ISSUE_TEMPLATE/bug_report.md

This file was deleted.

5 changes: 0 additions & 5 deletions packages/fetch/.github/ISSUE_TEMPLATE/config.yml

This file was deleted.

21 changes: 0 additions & 21 deletions packages/fetch/.github/ISSUE_TEMPLATE/feature-request.md

This file was deleted.

40 changes: 0 additions & 40 deletions packages/fetch/.github/ISSUE_TEMPLATE/support-or-usage.md

This file was deleted.

20 changes: 0 additions & 20 deletions packages/fetch/.github/PULL_REQUEST_TEMPLATE.md

This file was deleted.

Loading
Loading