Skip to content

Commit a258471

Browse files
committed
0.3.0: Update Svelte dependency to at least 3.25.0, revert hack from 0.2.3
1 parent 11baf98 commit a258471

File tree

3 files changed

+6
-12
lines changed

3 files changed

+6
-12
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Changelog
22

3+
## 0.3.0
4+
- Update Svelte dependency to at least 3.25.0, revert hack from 0.2.3
5+
36
## 0.2.3
47
- Implement hack to work around sveltejs/svelte#4899
58

package.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package.describe({
22
name: 'rdb:svelte-meteor-data',
3-
version: '0.2.3',
3+
version: '0.3.0',
44
summary: 'Reactively track Meteor data inside Svelte components',
55
git: 'https://github.com/rdb/svelte-meteor-data',
66
documentation: 'README.md'
@@ -10,7 +10,7 @@ Package.onUse(function(api) {
1010
api.versionsFrom('1.8');
1111
api.use('ecmascript');
1212
api.use('tracker');
13-
api.use('svelte:compiler@3.16.4_1');
13+
api.use('svelte:compiler@3.25.0');
1414
api.use('reactive-var', {weak: true});
1515
api.use('session', 'client', {weak: true});
1616
api.use('mongo', {weak: true});

subscribe.js

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,9 @@
44
* - Makes the return value usable in {#await} blocks
55
*/
66

7-
import { current_component, set_current_component, tick } from 'svelte/internal';
7+
import { current_component } from 'svelte/internal';
88

99

10-
const promise = tick();
11-
const oldThen = promise.then;
12-
promise.then = function (fn) {
13-
oldThen.call(promise, () => {
14-
fn();
15-
set_current_component(null);
16-
});
17-
};
18-
1910
_subscribe = Meteor.subscribe;
2011
Meteor.subscribe = function subscribe(name) {
2112
const params = Array.from(arguments);

0 commit comments

Comments
 (0)