mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
This should shave down bundle sizes by 14.4 kb for many non-blaze projects. The other core meteor packages have not depended on `underscore` since #9362. However, we are only able to remove this last dependency now due to the previous commit, which eliminated usages of `underscore` from apps that did not have the package listed in their `packages` files. This was causing CI test failures that now should be corrected. Any meteor apps currently using `_` without `underscore` listed in their `packages` file will need to add the package explicitly. Version number of `meteor-base` bumped from 1.3.0 to 1.4.0. There are only a few uses of `underscore` in these apps, and two of them actually used `underscore` without having it explicitly listed in their `packages` file. This is a problem, because the apps were relying on the dependency from `meteor-base`, which we want to remove to cut down bundle sizes. For the `modules` test app, I've added `underscore` to the `packages` file, because it is using `_` in an assertion about the module system. For the other app and all other uses of `_`, rather than add `underscore` to the `packages` files, I took the modernization route and replaced the functions with their ES6 equivalents, and then removed `underscore` from all `packages` files.
meteor-base
Source code of released version | Source code of development version
A default set of packages that almost every app will have. You should only remove this package if you really, really know what you are doing.
It comes with the following packages:
meteor- Super basic stuff about the programming environment, and a handler for thecssfile type.webapp- The actual web server that handles connections, serves files, etc.underscore- A library with lots of useful utilities that most of Meteor is built on.hot-code-push- Refresh the client automatically when the server has new code.ddp- A protocol for communicating between the client and server. This is what enablesMeteor.methods,Meteor.publish,Meteor.subscribe, etc.