mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
This package was always included in apps, and even if it was possible to remove,
there wasn't a compelling story about when users would remove and replace
it. Plus, not all backwards-compatibility code could even live in it (eg, field
names of objects), so it was incomplete. It also introduced odd load order
constraints.
Instead, we introduce two conventions for backwards-compatibility code:
- Special comments of the form "// XXX COMPAT WITH 0.6.4"
- When feasible, put backwards-compatibility code in a file called
"deprecated.js" in the relevant package.
This is documented at:
https://github.com/meteor/meteor/wiki/Meteor-Style-Guide#deprecated-code-and-backwards-compatibility
Additionally, removed some symbols that existed for backwards compatibility with
Meteor 0.4.0 (changes made 10 months ago): Meteor.is_client, Meteor.is_server,
and (in a method) this.is_simulation.
9 lines
278 B
JavaScript
9 lines
278 B
JavaScript
// Reload functionality used to live on Meteor._reload. Be nice and try not to
|
|
// break code that uses it, even though it's internal.
|
|
// XXX COMPAT WITH 0.6.4
|
|
Meteor._reload = {
|
|
onMigrate: Reload._onMigrate,
|
|
migrationData: Reload._migrationData,
|
|
reload: Reload._reload
|
|
};
|