Skip to content

chore: bump dts-buddy #12134

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

Merged
merged 4 commits into from
Jun 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/modern-fishes-double.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"svelte": patch
---

breaking: bump dts-buddy
2 changes: 1 addition & 1 deletion packages/svelte/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@
"@rollup/plugin-terser": "^0.4.4",
"@rollup/plugin-virtual": "^3.0.2",
"@types/aria-query": "^5.0.4",
"dts-buddy": "^0.4.7",
"dts-buddy": "^0.5.0",
"esbuild": "^0.19.11",
"knip": "^4.2.1",
"rollup": "^4.9.5",
Expand Down
6 changes: 2 additions & 4 deletions packages/svelte/src/store/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export function readable(value, start) {
* @param {any} b
* @returns {boolean}
*/
export function safe_not_equal(a, b) {
function safe_not_equal(a, b) {
return a != a ? b == b : a !== b || (a && typeof a === 'object') || typeof a === 'function';
}

Expand Down Expand Up @@ -213,11 +213,9 @@ export function readonly(store) {
* @param {import('../store/public').Readable<T>} store
* @returns {T}
*/
export function get_store_value(store) {
export function get(store) {
let value;
subscribe_to_store(store, (_) => (value = _))();
// @ts-expect-error
return value;
}

export { get_store_value as get };
Loading
Loading