mirror of
https://github.com/flarum/framework.git
synced 2025-04-02 15:15:24 +08:00
chore: update JS dependencies (#3695)
* chore: lock mithril to `2.0` because `2.2` has breaking changes with no upgrade guide * chore: update JS dependencies `yarn upgrade` * chore: fix typings after js deps updates * chore(review): better semver Co-authored-by: David Wheatley <hi@davwheat.dev>
This commit is contained in:
parent
c99d04fce2
commit
64fa35f2f3
@ -14,7 +14,7 @@
|
||||
"focus-trap": "^6.7.1",
|
||||
"jquery": "^3.6.0",
|
||||
"jquery.hotkeys": "^0.1.0",
|
||||
"mithril": "^2.0.4",
|
||||
"mithril": "~2.0.4",
|
||||
"nanoid": "^3.1.30",
|
||||
"punycode": "^2.1.1",
|
||||
"textarea-caret": "^3.1.0",
|
||||
|
@ -439,8 +439,6 @@ export default class Application {
|
||||
// a dud response, we don't want the application to crash. We'll show an
|
||||
// error message to the user instead.
|
||||
|
||||
// @ts-expect-error Typescript doesn't know we return promisified `ReturnType` OR `string`,
|
||||
// so it errors due to Mithril's typings
|
||||
const defaultDeserialize = (response: string) => response as ResponseType;
|
||||
|
||||
// When extracting the data from the response, we can check the server
|
||||
|
@ -7,4 +7,4 @@
|
||||
"js-packages/*"
|
||||
],
|
||||
"scripts": {}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user