Thursday, October 16, 2025
HomeJavaScriptNew Meteor.js 2.14, updates to CLI and Tracker modifications | by Gabriel...

New Meteor.js 2.14, updates to CLI and Tracker modifications | by Gabriel Grubba | Dec, 2023


Meteor.js has launched model 2.14, which incorporates a number of updates and enhancements. Listed here are a number of the key options of this launch:

On this launch, we have now added two new options to the CLI. Now you can open your browser immediately by including --open to your run or take a look at command. Ranging from v2.14, your meteor CLI may allow you to via the creation of your undertaking, supplying you with choices and tasks from which you’ll be able to select to begin utilizing it. Guarantee your meteor device is in 2.14 and run meteor create in your terminal.
We have now made a demo video for these options:

Observe that this can be a characteristic on high of what we at present have within the meteor create command.

For some situations, it’s essential to await the completion of an invocation of a Tracker.autorun, that means that earlier than this characteristic, with lots of our codes changing into async, this take a look at would fail:

Tinytest.addAsync('tracker - async perform - synchronize', async take a look at => {
let counter = 0;
Tracker.autorun(async () => {
take a look at.equal(counter, 0);
counter += 1;
take a look at.equal(counter, 1);
await Promise.resolve();
take a look at.equal(counter, 1);
counter *= 2;
take a look at.equal(counter, 2);
});
Tracker.autorun(async () => {
take a look at.equal(counter, 2);
counter += 1;
take a look at.equal(counter, 3);
await Promise.resolve();
take a look at.equal(counter, 3);
counter *= 2;
take a look at.equal(counter, 6);
});
});

Now, with this new characteristic, we will rewrite our take a look at in order that it could move now:

Tinytest.addAsync('tracker - async perform - synchronize', async take a look at => {
let counter = 0;
await Tracker.autorun(async () => {
take a look at.equal(counter, 0);
counter += 1;
take a look at.equal(counter, 1);
await Promise.resolve();
take a look at.equal(counter, 1);
counter *= 2;
take a look at.equal(counter, 2);
}).firstRunPromise;

await Tracker.autorun(async () => {
take a look at.equal(counter, 2);
counter += 1;
take a look at.equal(counter, 3);
await Promise.resolve();
take a look at.equal(counter, 3);
counter *= 2;
take a look at.equal(counter, 6);
});
});

You may select between awaiting the .firstRunPromise property or simply await for the Tracker.autorun. Each choices have the identical output.

You may test all modifications within the changelog

On this launch, we up to date some dependencies. Essentially the most notable ones are:

  • MongoDB driver to v4.17.2;
  • Typescript to v4.9.5;
  • Cordova v12.0.1 for Android and v7.0.1 for iOS;

For Cordova customers, test our Migration Information. There’s a breaking change that wants motion.

We’re in Meteor v3.0-alpha.19. To see what’s lacking for our beta and official launch, you may test this GitHub dialogue right here.

For individuals who wish to see an app operating in Meteor v3, we have now efficiently migrated the SimpleTasks app to be operating within the 3.0-alpha.19. You may test it operating in galaxy and the migration PR right here

We wish to prolong particular because of the next contributors for his or her contributions to this launch:

Thanks in your exhausting work and dedication to the Meteor.js neighborhood!
We encourage all customers to replace to Meteor.js 2.14 to make the most of these new options and enhancements.
For extra details about Meteor.js, please go to the Meteor.js web site.

Completely satisfied coding!

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments