-
-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat!: drop CJS and use VueUse v13 #254
Changes from 12 commits
fe96dbc
45d3613
01f638f
90da3bd
c995559
d7f2a5e
77b45c1
ef6e36f
ae47631
19315fe
3df5c4e
a1b1ac8
9d85cc8
1a2d483
6795d5a
a38df57
a8c4ce7
0df607d
53fe1bc
d82eb9b
22e7d2a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,15 +22,12 @@ | |
"sideEffects": false, | ||
"exports": { | ||
".": { | ||
"import": "./dist/index.mjs", | ||
"require": "./dist/index.cjs" | ||
"import": "./dist/index.mjs" | ||
}, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. use |
||
"./nuxt": { | ||
"import": "./dist/nuxt/module.mjs", | ||
"require": "./dist/nuxt/module.cjs" | ||
"import": "./dist/nuxt/module.mjs" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. use |
||
} | ||
}, | ||
"main": "./dist/index.cjs", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. add the main entry using |
||
"module": "./dist/index.mjs", | ||
"types": "./dist/index.d.ts", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. use |
||
"typesVersions": { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. since we're not using "typesVersions": {
"*": {
"nuxt": [
"./dist/nuxt/module.d.mts"
]
}
} There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So should we have the following? "typesVersions": {
"*": {
"*": [
"./dist/*",
"./*"
],
"nuxt": [
"./dist/nuxt/module.d.mts"
]
}
}, There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. or just use There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
no, just nuxt entry There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. in fact Nuxt will drop support for node10 module resolution (if not yet removed), we can remove "typesVersions" entry There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nuxt still supports node 10 , so it is fine |
||
|
@@ -79,8 +76,8 @@ | |
"vue": ">=3.0.0" | ||
}, | ||
"dependencies": { | ||
"@vueuse/core": "^10.10.0", | ||
"@vueuse/shared": "^10.10.0", | ||
"@vueuse/core": "^13.0.0", | ||
"@vueuse/shared": "^13.0.0", | ||
"csstype": "^3.1.3", | ||
"framesync": "^6.1.2", | ||
"popmotion": "^11.0.5", | ||
|
@@ -106,7 +103,6 @@ | |
"lint-staged": "^15.2.5", | ||
"nuxt": "^3.13.0", | ||
"pkg-pr-new": "^0.0.20", | ||
"prettier": "^3.2.5", | ||
"typescript": "^5.4.5", | ||
"unbuild": "^2.0.0", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we should also update typescript and unbuild versions |
||
"vite": "5.2.12", | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove rollup entry, and change declaration to
node16