Saturday, May 18, 2024
HomeJavaScriptNew Meteor 2.8.1 and including varieties to the core | by Gabriel...

New Meteor 2.8.1 and including varieties to the core | by Gabriel Grubba | Nov, 2022


We plan to modernize MeteorJS and sustain with the most recent releases for NodeJS, bringing our model to 14.21. Now we have different superior updates on this model, equivalent to MongoDB Driver’s up to date to model 4.11. When the MeteorJS server restarts, it exhibits which port it’s working and the addition of the kinds within the core.

As that is only a minor improve, our spotlight might be concentrating on how you can add the sort definitions to your mission’s core.

The package deal zodern:varieties lets you use the TypeScript varieties for the Meteor core packages in your TypeScript or JavaScript code. With a view to use the kinds, you’ll want to set up the package deal by working the command: meteor add zodern:varieties

And add the next line to your tsconfig.json file (for those who should not have one, create one and add the code beneath):

{
“compilerOptions”: {
“preserveSymlinks”: true,
“paths”: {
“meteor”: [ “node_modules/@types/meteor/”, “.meteor/local/types/packages.d.ts” ]
}
}
}

then run the command:meteor lint it will create a file inside your .meteor folder together with your varieties for the core packages.

You’ll be able to proceed to make use of your code as you probably did earlier than, however now you’ve got entry to these varieties for the core packages even in case you are in JavaScript, which makes it simpler and likewise brings much more sort security to your initiatives. For extra details about the package deal, please go to the zodern:varieties.

You’ll be able to see this identical tutorial within the docs with this hyperlink right here.

If you wish to begin utilizing this model at present, simply run in your mission the replace command beneath and revel in this new Meteor model

meteor replace --release=2.8.1

I thank all contributors who’ve labored exhausting to make this launch doable with points, discussions, and PRs.

And a giant and heat hug to those contributors particularly that I’ve not talked about but:

Recognize the work that you simply all did to make this nice framework even higher!

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments