diff --git a/CHANGELOG.md b/CHANGELOG.md index 13b7780..4dc2bd5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # Changelog +## 0.3.0 +- Update Svelte dependency to at least 3.25.0, revert hack from 0.2.3 + ## 0.2.3 - Implement hack to work around sveltejs/svelte#4899 diff --git a/package.js b/package.js index 4a801f0..6d0e8fe 100644 --- a/package.js +++ b/package.js @@ -1,6 +1,6 @@ Package.describe({ name: 'rdb:svelte-meteor-data', - version: '0.2.3', + version: '0.3.0', summary: 'Reactively track Meteor data inside Svelte components', git: 'https://github.com/rdb/svelte-meteor-data', documentation: 'README.md' @@ -10,7 +10,7 @@ Package.onUse(function(api) { api.versionsFrom('1.8'); api.use('ecmascript'); api.use('tracker'); - api.use('svelte:compiler@3.16.4_1'); + api.use('svelte:compiler@3.25.0'); api.use('reactive-var', {weak: true}); api.use('session', 'client', {weak: true}); api.use('mongo', {weak: true}); diff --git a/subscribe.js b/subscribe.js index 47a095b..1fcf099 100644 --- a/subscribe.js +++ b/subscribe.js @@ -4,18 +4,9 @@ * - Makes the return value usable in {#await} blocks */ -import { current_component, set_current_component, tick } from 'svelte/internal'; +import { current_component } from 'svelte/internal'; -const promise = tick(); -const oldThen = promise.then; -promise.then = function (fn) { - oldThen.call(promise, () => { - fn(); - set_current_component(null); - }); -}; - _subscribe = Meteor.subscribe; Meteor.subscribe = function subscribe(name) { const params = Array.from(arguments);