Skip to content

Commit

Permalink
feat: new download engine
Browse files Browse the repository at this point in the history
BREAKING CHANGE: New API, Support for browser download
  • Loading branch information
ido-pluto committed Feb 24, 2024
1 parent c0a0ac1 commit d2d3c13
Show file tree
Hide file tree
Showing 65 changed files with 4,019 additions and 947 deletions.
216 changes: 0 additions & 216 deletions .config/typedoc.css

This file was deleted.

6 changes: 5 additions & 1 deletion .config/typedoc.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
{
"$schema": "https://typedoc.org/schema.json",
"entryPoints": [
"../src/browser.ts",
"../src/index.ts"
],
"out": "../docs",
"tsconfig": "../tsconfig.json",
"customCss": "./typedoc.css",
"plugin": [
"typedoc-material-theme",
"typedoc-plugin-missing-exports"
],
"readme": "../README.md",
"excludeExternals": true,
"excludeInternal": true,
Expand Down
74 changes: 50 additions & 24 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,16 @@
"root": true,
"env": {
"node": true,
"browser": false,
"browser": true,
"es6": true
},
"ignorePatterns": [
"/dist"
"/dist",
"/docs"
],
"extends": [
"eslint:recommended"
"eslint:recommended",
"plugin:jsdoc/recommended"
],
"globals": {
"Atomics": "readonly",
Expand All @@ -29,13 +31,15 @@
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
"plugin:@typescript-eslint/recommended",
"plugin:jsdoc/recommended-typescript"
],
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint",
"import",
"node"
"jsdoc",
"n"
],
"rules": {
"@typescript-eslint/explicit-module-boundary-types": [
Expand All @@ -56,20 +60,58 @@
],
"@typescript-eslint/no-inferrable-types": [
"off"
],
"jsdoc/require-param": [
"off"
],
"jsdoc/check-param-names": [
"warn",
{
"checkDestructured": false
}
],
"jsdoc/require-returns": [
"off"
],
"jsdoc/require-jsdoc": [
"off"
],
"jsdoc/require-yields": [
"off"
],
"jsdoc/require-param-description": [
"off"
]
}
},
{
"files": [
"test/**/**.ts"
],
"rules": {
"max-len": [
"off"
]
}
}
],
"plugins": [
"@typescript-eslint",
"import",
"node"
"jsdoc",
"n"
],
"settings": {
"import/parsers": {
"@typescript-eslint/parser": [
".ts"
]
},
"jsdoc": {
"exemptDestructuredRootsFromChecks": true,
"tagNamePreference": {
"hidden": "hidden"
}
}
},
"rules": {
Expand Down Expand Up @@ -162,15 +204,9 @@
"warnOnUnassignedImports": true
}
],
"node/file-extension-in-import": [
"n/file-extension-in-import": [
"error",
"always",
{
"tryExtensions": [
".js",
".json"
]
}
"always"
],
"newline-per-chained-call": [
"error",
Expand Down Expand Up @@ -209,16 +245,6 @@
"array-callback-return": [
"error"
],
"valid-jsdoc": [
"error",
{
"requireParamType": true,
"requireReturnType": true,
"requireReturn": false,
"requireParamDescription": false,
"requireReturnDescription": false
}
],
"no-empty": [
"error",
{
Expand Down
5 changes: 0 additions & 5 deletions .gitattributes

This file was deleted.

1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
github: ido-pluto
6 changes: 4 additions & 2 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,10 @@
-->

- [ ] Code is up-to-date with the `main` branch
- [ ] `npm run format` to apply prettier formatting
- [ ] `npm run format` to apply eslint formatting
- [ ] `npm run test` passes with this change
- [ ] This pull request links relevant issues as `Fixes #0000`
- [ ] There are new or updated unit tests validating the change
- [ ] Documentation has been updated to reflect this change
- [ ] The new commits follow conventions explained
in [CONTRIBUTING.md](https://github.com/ido-pluto/pull/blob/main/CONTRIBUTING.md)
in [CONTRIBUTING.md](https://github.com/ido-pluto/ipull/blob/main/CONTRIBUTING.md)
6 changes: 4 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ jobs:
- name: Install modules
run: npm ci --ignore-scripts
- name: ESLint
run: npx eslint --ext .js --ext .ts .
run: npm run lint
- name: TypeScript validity
run: npm run test:typescript
run: npm run build
- name: Run Tests
run: npm run test
Loading

0 comments on commit d2d3c13

Please sign in to comment.