Skip to content

Commit 88b0b40

Browse files
chore: bump dts-buddy (#12134)
new dts-buddy makes sure that only the actual public types are exposed (only export { ... } ensures that, for TS historical reasons) --------- Co-authored-by: Simon Holthausen <[email protected]>
1 parent 8ae5885 commit 88b0b40

File tree

5 files changed

+155
-128
lines changed

5 files changed

+155
-128
lines changed

.changeset/modern-fishes-double.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"svelte": patch
3+
---
4+
5+
breaking: bump dts-buddy

packages/svelte/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@
122122
"@rollup/plugin-terser": "^0.4.4",
123123
"@rollup/plugin-virtual": "^3.0.2",
124124
"@types/aria-query": "^5.0.4",
125-
"dts-buddy": "^0.4.7",
125+
"dts-buddy": "^0.5.0",
126126
"esbuild": "^0.19.11",
127127
"knip": "^4.2.1",
128128
"rollup": "^4.9.5",

packages/svelte/src/store/index.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export function readable(value, start) {
2626
* @param {any} b
2727
* @returns {boolean}
2828
*/
29-
export function safe_not_equal(a, b) {
29+
function safe_not_equal(a, b) {
3030
return a != a ? b == b : a !== b || (a && typeof a === 'object') || typeof a === 'function';
3131
}
3232

@@ -213,11 +213,9 @@ export function readonly(store) {
213213
* @param {import('../store/public').Readable<T>} store
214214
* @returns {T}
215215
*/
216-
export function get_store_value(store) {
216+
export function get(store) {
217217
let value;
218218
subscribe_to_store(store, (_) => (value = _))();
219219
// @ts-expect-error
220220
return value;
221221
}
222-
223-
export { get_store_value as get };

0 commit comments

Comments
 (0)