Meteor 1.3 *early beta* now available

Seems like this commit fixes it. Running Meteor from the latest checkout and now files in imports/ are not eagerly loaded :+1:

3 Likes

yep. there are loading always. May be @benjamn’s meaning of lazy evaluation is something else.

Anyway, they are modules so I don’t care whether they load or not. So, I simply ignore using imports and use regular files as usually and import as needed.

1 Like

No, this was a bug, but will be fixed in the next beta.

1 Like

So, I’ve probably missed a lot of discussion on 1.3.

What’s the plan with Atmosphere/Meteor packages?

Here’s my situation:

  • Can’t use just NPM modules since most Meteor-centric things are in Meteor packages.
  • Don’t want to use just Meteor packages since NPM modules are more up-to-date.
  • Sharing code between your apps is harder, since for that you still need Meteor packages (can’t claim dependencies in modules and sharing the same packages file between all the apps would not be a good solution).

Essentially, packaging in Meteor is not simple anymore. You have to mix and match things. I don’t find that very good. Is MDG planning on doing something about this?

I feel like Meteor has been almost unusable as a development environment for me ever since the 1.2 release. I kept hoping 1.3 was just around the corner yet it never seems to arrive. So… has anyone got a time estimate on when this release will finally drop?

maybe this can give you a sense of the direction it is going

3 Likes

are you using either:

  • meteor create/update --release 1.3-modules-beta.*
  • git clone/checkout/pull meteor from git branch release-1.3

if you want to advance, that’s the way to go. (and you can track the commits and issues step by step)
works for me.

https://github.com/meteor/meteor/commits/release-1.3

New release!

To update to the latest beta release, run the following command in your meteor project:

meteor update --release 1.3-modules-beta.3

Changes: https://github.com/meteor/meteor/issues/5788#issuecomment-170176449

The biggest change is that module identifiers for Meteor packages must now have a meteor/... prefix. So, if you were previously doing import {Accounts} from "accounts-base", you now need to do import {Accounts} from "meteor/accounts-base".

13 Likes

Hi @benjamn - what’s the ETA on Meteor 1.3 final release?

I’m working on a new project early stage, and just want to know if when to brace myself for the migration. Will there be a clear migration path to upgrade Meteor versions? I’m using FlowRouter and React for the view.

3 Likes

@benjamn Great work! Updated my app from beta version 2 and everything just works :sunglasses:

One question - is there any reason in particular why I don’t have to import {Accounts} from "accounts-base" and I just automatically get access to the Accounts global?

Oh, yeah, Accounts is still auto-imported if you’re did meteor add accounts-base, so you don’t have to import it explicitly unless you want to be absolutely sure you know where it’s coming from. For those (rare?) cases when you want to import things explicitly from packages, the syntax of the module identifiers is now slightly different. That’s all.

2 Likes

Personally I’m doing it to better use ESLint - I need comments like /* global Accounts */ anyway, so I may as well make them into imports, which helps track unused imports, etc.

4 Likes

This is great. Hope that, NPM module overriding issue is fixed with this.

Great to see this release! The “normal” npm support is one of the best things coming to Meteor so far. This really helps to get tons of awesome packages available in Meteor (server AND client) without any special (wrapper) workarounds. Love it!

6 Likes

Proper imports instead of globals is going to save me SO much time tracking down “system exited with error 1” when I’m trying to reference a global that doesn’t exist. I should get a real compiler error when I miss an import which is worlds better.

1 Like

I hope to see globals gone as soon as possible. Thank you for taking the logical first step towards that :sunny:

6 Likes

Anyone using Flow Router SSR & React? I am having tons of errors… had to revert back. Also, was having ‘unable to import’ from braintree npm modules.

1 Like

Have no fear, Ben is here!

Known issue, hopefully a fix soon!

1 Like

New release!

To update to the latest beta release, run the following command in your meteor project:

meteor update --release 1.3-modules-beta.4

Bugs fixed in this release:

14 Likes

That was quick! Awesome job!