Skip to content

Commit

Permalink
Update dev dependencies.
Browse files Browse the repository at this point in the history
Includes a workaround for a TypeScript v4.8.2 bug: microsoft/TypeScript#50286 .
  • Loading branch information
jaydenseric committed Aug 29, 2022
1 parent d290a70 commit 0b2bd03
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 10 deletions.
6 changes: 6 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# next-graphql-react changelog

## Next

### Patch

- Updated dev dependencies.

## 14.0.0

### Major
Expand Down
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,22 +44,22 @@
"react-waterfall-render": "^4.0.1"
},
"devDependencies": {
"@types/node": "^18.6.4",
"@types/react": "^18.0.15",
"@types/node": "^18.7.13",
"@types/react": "^18.0.17",
"@types/react-dom": "^18.0.6",
"abort-controller": "^3.0.0",
"eslint": "^8.21.0",
"eslint": "^8.23.0",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-simple-import-sort": "^7.0.0",
"event-target-shim": "^6.0.2",
"graphql-react": "^19.0.0",
"next": "^12.2.4",
"next": "^12.2.5",
"prettier": "^2.7.1",
"puppeteer": "^16.1.0",
"puppeteer": "^16.2.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"test-director": "^8.0.2",
"typescript": "^4.7.4"
"test-director": "^10.0.0",
"typescript": "^4.8.2"
},
"scripts": {
"eslint": "eslint .",
Expand Down
8 changes: 5 additions & 3 deletions test/fixtures/next-project/polyfills.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,12 @@ if (typeof window === "undefined") {
class CustomEvent extends Event {
/**
* @param {string} eventName
* @param {object} [options]
* @param {T} [options.detail]
* @param {CustomEventInit<T>} [options]
*/
constructor(eventName, { detail, ...eventOptions } = {}) {
constructor(eventName, options = {}) {
// Workaround a TypeScript bug:
// https://github.com/microsoft/TypeScript/issues/50286
const { detail, ...eventOptions } = options;
super(eventName, eventOptions);
if (detail) this.detail = detail;
}
Expand Down

0 comments on commit 0b2bd03

Please sign in to comment.