Skip to content

Commit

Permalink
0.3.0: Update Svelte dependency to at least 3.25.0, revert hack from …
Browse files Browse the repository at this point in the history
…0.2.3
  • Loading branch information
rdb committed Oct 5, 2020
1 parent 11baf98 commit a258471
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 12 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
4 changes: 2 additions & 2 deletions package.js
Original file line number Diff line number Diff line change
@@ -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'
Expand All @@ -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});
Expand Down
11 changes: 1 addition & 10 deletions subscribe.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a258471

Please sign in to comment.