Skip to content

Commit

Permalink
V5 fix types (#239)
Browse files Browse the repository at this point in the history
* removing extra deps and fixing types

* remove types from rollup exclude

* deps update
  • Loading branch information
kwhitley committed Apr 9, 2024
1 parent 3c688e2 commit 062d875
Show file tree
Hide file tree
Showing 4 changed files with 476 additions and 1,221 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
## Changelog

- **v5.0.11**
- fixed: ./types was not being properly exported
- **v5.0.10**
- fixed: response formatters in finally stage could still cross pollute headers in Node
- **v5.0.9**
Expand Down
34 changes: 15 additions & 19 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,11 @@
"require": "./text.js",
"types": "./text.d.ts"
},
"./types": {
"import": "./types.mjs",
"require": "./types.js",
"types": "./types.d.ts"
},
"./webp": {
"import": "./webp.mjs",
"require": "./webp.js",
Expand Down Expand Up @@ -145,40 +150,31 @@
},
"homepage": "https://itty.dev/itty-router",
"devDependencies": {
"@cloudflare/workers-types": "^4.20240312.0",
"@cloudflare/workers-types": "^4.20240405.0",
"@rollup/plugin-multi-entry": "^6.0.1",
"@rollup/plugin-terser": "^0.4.4",
"@rollup/plugin-typescript": "^11.1.6",
"@skypack/package-check": "^0.2.2",
"@types/node": "^20.11.27",
"@typescript-eslint/eslint-plugin": "^7.2.0",
"@typescript-eslint/parser": "^7.2.0",
"@vitejs/plugin-vue": "^5.0.4",
"@vitest/coverage-c8": "^0.33.0",
"@vitest/coverage-v8": "^1.3.1",
"@whatwg-node/server": "^0.9.29",
"@types/node": "^20.12.6",
"@typescript-eslint/eslint-plugin": "^7.6.0",
"@typescript-eslint/parser": "^7.6.0",
"@vitest/coverage-v8": "^1.4.0",
"@whatwg-node/server": "^0.9.32",
"coveralls": "^3.1.1",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"fetch-mock": "^9.11.0",
"fs-extra": "^11.2.0",
"globby": "^14.0.1",
"gzip-size": "^7.0.0",
"http": "^0.0.1-security",
"itty-router": "^4.2.0",
"jsdom": "^24.0.0",
"npm-run-all": "^4.1.5",
"prettier": "^3.2.5",
"rimraf": "^5.0.5",
"rollup": "^4.13.0",
"rollup": "^4.14.1",
"rollup-plugin-bundle-size": "^1.0.3",
"rollup-plugin-copy": "^3.5.0",
"rollup-plugin-multi-input": "^1.4.1",
"ts-node": "^10.9.2",
"typescript": "^5.4.2",
"vite": "^5.1.6",
"vitest": "^1.3.1",
"yarn": "^1.22.22",
"typescript": "^5.4.4",
"vite": "^5.2.8",
"vitest": "^1.4.0",
"yarn-release": "^1.10.6"
}
}
2 changes: 1 addition & 1 deletion rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import fs from 'fs-extra'

// scan files to build
const files = (await globby('./src/*.ts', {
ignore: ['**/*.spec.ts', 'examples', '**/types.ts'],
ignore: ['**/*.spec.ts', 'examples'],
})).map(path => ({
path,
shortPath: path.replace(/(\/src)|(\.ts)/g, '').replace('./index', '.'),
Expand Down
Loading

0 comments on commit 062d875

Please sign in to comment.