-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Overhaul and update project (#11)
- Breaking Change: Dropping support for Node 11 and below. - Breaking Change: Dropping support for Flow. - Bug Fix: Resolves #5. Event handlers are cleaned up after each iteration, fixing some memory leak issues. - Bug Fix: Resolves #7. Code no longer depends on babel runtimes or regenerator. - Bug Fix: Handles stream not buffering due to starving the event loop. - Feature: Resolves #1. Now handles `.throw` and `.return` hooks on the async iterator. - Feature: Properly closes stream when finished. - Feature: Added support for TypeScript. - Feature: Support for Node.js versions 12, 14, and 16. - Chore: General overhaul of project setup (should not impact what is published).
- Loading branch information
Showing
46 changed files
with
12,060 additions
and
807 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,24 @@ | ||
.idea/ | ||
build/ | ||
flow-typed/ | ||
# project | ||
/.nyc_output/ | ||
/coverage/ | ||
/lib/ | ||
*.tsbuildinfo | ||
*.tgz | ||
|
||
# node | ||
/node_modules/ | ||
**/npm-debug.log* | ||
|
||
# editors | ||
/.idea/ | ||
**/*.kate-swp | ||
**/*.swp | ||
**/*~ | ||
|
||
# git | ||
**/*.orig | ||
|
||
# file managers | ||
**/.directory | ||
**/.DS_Store | ||
**/Thumbs.db |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
"use strict"; | ||
const config = { | ||
root: true, | ||
env: { | ||
es2022: true, | ||
node: true, | ||
}, | ||
extends: ["eslint:recommended"], | ||
rules: { | ||
strict: ["error"], | ||
"valid-jsdoc": [ | ||
"error", | ||
{ | ||
requireReturn: false, | ||
requireReturnType: false, | ||
requireParamType: false, | ||
}, | ||
], | ||
}, | ||
overrides: [ | ||
{ | ||
files: ["src/**"], | ||
parser: "@typescript-eslint/parser", | ||
parserOptions: { | ||
tsconfigRootDir: __dirname, | ||
project: ["./tsconfig.json"], | ||
}, | ||
plugins: ["@typescript-eslint/eslint-plugin"], | ||
extends: [ | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"plugin:@typescript-eslint/recommended-requiring-type-checking", | ||
"prettier", | ||
], | ||
}, | ||
], | ||
}; | ||
module.exports = config; |
This file was deleted.
Oops, something went wrong.
Empty file.
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* @basicdays |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
version: 2 | ||
|
||
updates: | ||
# see: https://docs.github.com/en/free-pro-team@latest/github/administering-a-repository/keeping-your-actions-up-to-date-with-github-dependabot | ||
- package-ecosystem: github-actions | ||
directory: "/" | ||
schedule: | ||
interval: daily | ||
reviewers: | ||
- basicdays |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: "build" | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
- v0.2 | ||
push: | ||
branches: | ||
- master | ||
- v0.2 | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-20.04 | ||
strategy: | ||
matrix: | ||
node: ["12", "14", "16"] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Setup Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
- run: npm install | ||
- run: npm run build | ||
- run: npm test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,24 @@ | ||
# project | ||
/.nyc_output/ | ||
/build/ | ||
/coverage/ | ||
/lib/ | ||
*.tsbuildinfo | ||
*.tgz | ||
|
||
# node | ||
node_modules/ | ||
npm-debug.log | ||
/node_modules/ | ||
**/npm-debug.log* | ||
|
||
# editors | ||
/.idea/dictionaries | ||
/.idea/*.local.xml | ||
/.idea/workspace.xml | ||
*.kate-swp | ||
*.swp | ||
/.idea/ | ||
**/*.kate-swp | ||
**/*.swp | ||
**/*~ | ||
|
||
# git | ||
*.orig | ||
**/*.orig | ||
|
||
# file managers | ||
.directory | ||
.DS_Store | ||
**/.directory | ||
**/.DS_Store | ||
**/Thumbs.db |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"require": ["./src/test/index.ts"], | ||
"spec": [ | ||
"./src/**/*.test.{ts,tsx,js,mjs}", | ||
"./src/test/**/*.{ts,tsx,js,mjs}" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"require": ["./lib/test/index.js"], | ||
"spec": ["./lib/**/*.test.js", "./lib/test/**/*.js"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,5 @@ | ||
test/ | ||
* | ||
!lib/**/* | ||
lib/**/*.map | ||
lib/**/*.test.{d.ts,js} | ||
lib/test/**/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# project | ||
/.nyc_output/ | ||
/coverage/ | ||
/lib/ | ||
*.tsbuildinfo | ||
*.tgz | ||
|
||
# node | ||
/node_modules/ | ||
**/npm-debug.log* | ||
|
||
# editors | ||
/.idea/ | ||
**/*.kate-swp | ||
**/*.swp | ||
**/*~ | ||
|
||
# git | ||
**/*.orig | ||
|
||
# file managers | ||
**/.directory | ||
**/.DS_Store | ||
**/Thumbs.db |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"type": "pwa-node", | ||
"request": "launch", | ||
"name": "Test", | ||
"skipFiles": ["<node_internals>/**"], | ||
"runtimeExecutable": "npm", | ||
"runtimeArgs": ["test"] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll.eslint": true | ||
}, | ||
"editor.defaultFormatter": "esbenp.prettier-vscode", | ||
"editor.formatOnSave": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"type": "npm", | ||
"script": "build", | ||
"group": { | ||
"kind": "build", | ||
"isDefault": true | ||
}, | ||
"problemMatcher": [], | ||
"label": "npm: build", | ||
"detail": "run-p 'build:*'" | ||
}, | ||
{ | ||
"type": "npm", | ||
"script": "test:mocha", | ||
"problemMatcher": [], | ||
"label": "npm: test:mocha", | ||
"detail": "mocha", | ||
"group": { | ||
"kind": "test", | ||
"isDefault": true | ||
} | ||
} | ||
] | ||
} |
Oops, something went wrong.