Commit Graph

8458 Commits

Author SHA1 Message Date
Ben Newman
6fb8e1f0ab Bump package versions for 1.5-beta.18 release. 2017-05-02 11:42:53 -04:00
Ben Newman
64aa28cb6f Merge branch 'devel' into release-1.5 2017-05-02 11:20:28 -04:00
Ben Newman
6b34e1edc0 Merge branch 'master' into devel 2017-05-02 11:17:04 -04:00
Ben Newman
807c4224eb Update to latest meteorInstall.fetch API.
90fd573f86
2017-05-02 11:06:28 -04:00
Jesse Rosenberger
5e617b93c8 Bump minimongo package version to 1.0.23 in preparation for publishing. 2017-05-02 12:28:24 +03:00
Jesse Rosenberger
1ac0d4ca2f Bump package versions for the official 1.4.4.2 release. 2017-05-02 10:56:09 +03:00
Ben Newman
9c7778da36 Let the install npm package implement Module.prototype.prefetch.
Now anyone can define meteorInstall.fetch however they see fit, and the
install.js implementation will handle everything else.

This separation of concerns leads to significantly less code, too.
2017-05-01 23:55:00 -04:00
Ben Newman
79ad707c6a Bump package versions for 1.5-beta.17 release. 2017-04-27 17:43:45 -04:00
Ben Newman
d7cae3c939 Support pkg.module in client bundles, even for node_modules.
As proposed here: https://github.com/rollup/rollup/wiki/pkg.module

By supporting ECMAScript module entry points for npm packages in Meteor
1.5, we will be well-positioned to do more effective import/export-based
tree shaking in future versions of Meteor.

We can't do the same thing on the server because we can't change how
native Node resolves package entry points based on the "main" field of the
package.json module.

On the other hand, all npm packages have to work in Node using the "main"
field, and client bundles stand to benefit the most from tree shaking, so
this client/server difference should not be problematic.

Note that the "jsnext:main" property is also supported as a legacy synonym
for "module".
2017-04-27 17:34:34 -04:00
Ben Newman
dbc3f8461e Upgrade the reify npm package to version 0.8.3. 2017-04-27 17:18:32 -04:00
Ben Newman
b023f5c67a Merge branch 'release-1.4.4.2' into release-1.5 2017-04-27 17:16:05 -04:00
Jesse Rosenberger
30e9e01afa Bump package versions for 1.4.4.2-rc.1 release. 2017-04-26 13:26:09 -07:00
mutdmour
9da6767447 Handle legacy coordinates as GeoJSON in minimongo (#2077) (#8620) 2017-04-26 13:23:21 -07:00
mutdmour
f46b5f9e41 [Fix #5165] don't allow invalid field names (#8608) 2017-04-26 13:23:00 -07:00
Ben Newman
ff86dcd5f1 Upgrade meteor-babel, reify, and meteor-ecmascript-runtime. 2017-04-26 15:11:49 -04:00
mutdmour
b7932ce9aa Handle legacy coordinates as GeoJSON in minimongo (#2077) (#8620) 2017-04-26 11:42:11 -04:00
mutdmour
c50cf4f49b [Fix #5165] don't allow invalid field names (#8608) 2017-04-26 11:33:46 -04:00
Jesse Rosenberger
3d04c48b25 Bump package versions for 1.4.4.2-rc.0 release. 2017-04-25 17:36:24 -07:00
Jesse Rosenberger
11db32b40d Bump google-oauth package version in preparation for publishing. 2017-04-25 16:05:10 -07:00
Jesse Rosenberger
c527be388b Exchange serverAuthCode for an accessToken in packages/google-oauth.
The `accessToken` isn't always immediately provided (for example on
Android devices) but instead needs to be retrieved by exchanging the
`serverAuthCode`.

Fixes https://github.com/meteor/meteor/issues/8613.
2017-04-25 16:05:09 -07:00
Akarshit
11cf43f348 Index creation in the file using the query 2017-04-25 16:05:08 -07:00
Erik Demaine
beb60090d7 Switch to modern nodemailer 4, Node 4 version. Fix #8591 (#8605)
* Switch to modern nodemailer 4, Node 4 version. Fix #8591

* Most critically, use a pool instead of direct SMTP connection,
  to handle dropped connections and increase throughput,
  like mail module 1.1.  (#8591)
* New nodemailer's sendMail wants an options object, not a MailComposer
  object.  Luckily, a MailComposer object has a "mail" field that
  remembers the original options, so we can keep original behavior.
* However, we no longer support the mailComposer option set to a compiled
  MailComposer object (functionality that was briefly added in 1.2.0).
* nodemailer does SMTP URL parsing now automatically for us, simplifying code.
* Tests' outputs now end with additional "\r\n"
* Drop underscore package dependency (no longer needed)

* General formatting/style cleanup for `packages/email`.

* snake_cased => camelCased for some local variables.
* Added curly-brackets to `if`s.
* Removed trailing spaces.
* Removed commented-out code.
* Removed older doc text and changed some links.

* Get rid of back-and-forth assigning of `mailUrlString`.
2017-04-25 16:05:07 -07:00
Ben Newman
d5ba2a1a37 Use tokens from Google Sign-In instead of calling getTokens. (#8604)
* Use tokens from Google Sign-In instead of calling getTokens.

Follow-up to https://github.com/meteor/meteor/pull/8588.

* Bump google-oauth package version to 1.2.3.
2017-04-25 16:05:07 -07:00
Ben Newman
0d1cf9e7ed Bump ecmascript package version to 0.7.3.
Bumping this version is necessary after upgrading babel-compiler since
ecmascript registers a compiler plugin that uses babel-compiler.
2017-04-25 16:05:06 -07:00
Ben Newman
708bbe4991 Update npm-shrinkwrap.json for babel-compiler package. 2017-04-25 16:05:05 -07:00
Ben Newman
0d8e58b09d Upgrade meteor-babel and reify to fix #8595. (#8599)
* Upgrade meteor-babel to version 0.20.1 and reify to 0.7.4.
* Bump $BUNDLE_VERSION to 4.7.25 before rebuilding dev bundle.
2017-04-25 16:05:04 -07:00
Ben Newman
bc7cc19d41 Bump minimongo package version to 1.0.22. 2017-04-25 16:05:03 -07:00
Jesse Rosenberger
eedf8bddbf Change MinimongoError to accept field in a new options parameter.
This allows the field name to be dynamically introduced into the error
message.

Follows-up on meteor/meteor#8529.
2017-04-25 16:05:02 -07:00
Sudhanshu
9163643906 Add the field name in the error
When Minimongo throws an error, most of the times, the field names are not present, making it a bit difficult to debug. Updated the error messages to include the field name for which it threw the error.
2017-04-25 16:05:01 -07:00
Ben Newman
a954efc2f2 Bump google-oauth package version to 1.2.2. 2017-04-25 16:05:00 -07:00
Ben Newman
6b44ded1e4 Remove underscore dependency from google-oauth package. 2017-04-25 16:04:59 -07:00
Tomas Brambora
db093ff316 Fixed Google OAuth user data fetching. 2017-04-25 16:04:58 -07:00
Ben Newman
d9264e3b4b Better API for module.prefetch(id). 2017-04-25 10:26:24 -04:00
Ben Newman
5477aeac3f Support module.prefetch(id) to fetch but not evaluate dynamic modules.
Generally, module.prefetch(id) will not throw even if the fetched module
is missing. If you need to know whether module.prefetch(id) succeeded,
simply await the result of the promise, which will be null on success, or
an Error object if the module could not be imported.
2017-04-24 16:40:58 -04:00
Ben Newman
f4fc2a904d Use final hashes of dynamic modules for browser caching.
Previously, the linker included a "version" hash in each stub entry
corresponding to a dynamic module in the meteorInstall bundle. These stub
entries also contain information about any module identifiers ("deps")
imported by the module, and various other metadata.

This hash was derived from the source code of the dynamic module, instead
of its fully-processed generated code, which created a small risk that the
source hash would remain the same when anything changed in the post-linker
processing logic.

This new implementation uses the same hashes found in program.json
manifest files, which more reliably reflect changes in the actual final
contents of the modules.

Because these hashes are not known at link time, they are now injected as
one blob into the meteor/dynamic-import/dynamic-versions.js module, rather
than appearing in the meteorInstall bundles for their containing packages.
2017-04-21 16:15:09 -04:00
Ben Newman
de6deb5954 Use module.importSync instead of module.import in getNamespace. 2017-04-21 16:14:01 -04:00
Ben Newman
29a3f310ca Bump package versions for 1.5-beta.16 release. 2017-04-20 17:36:02 -04:00
Ben Newman
b057415048 Merge branch 'devel' into release-1.5 2017-04-20 16:46:03 -04:00
Jesse Rosenberger
ce54e02269 Bump google-oauth package version in preparation for publishing. 2017-04-20 05:50:54 -07:00
Jesse Rosenberger
936df52b92 Exchange serverAuthCode for an accessToken in packages/google-oauth.
The `accessToken` isn't always immediately provided (for example on
Android devices) but instead needs to be retrieved by exchanging the
`serverAuthCode`.

Fixes https://github.com/meteor/meteor/issues/8613.
2017-04-20 05:29:40 -07:00
Ben Newman
6f75eae135 Remove automatic Buffer polyfill.
This polyfill is unnecessary in Node, and added a whopping 22KB to the
minified client bundle. If you really need the Buffer API on the client,
you can get it from require("buffer").Buffer.
2017-04-19 17:41:11 -04:00
Ben Newman
0042ae55f1 Split ecmascript-runtime into client and server packages.
This split gives us the ability to use different sets of polyfills for
server and client, which allows us to take better advantage of native
support in Node 4+.

We now rely on core-js as a peer dependency on the client (which is a win
because core-js is always installed along with babel-runtime), and as an
Npm.depends-style dependency on the server (which is necessary because
there's not always an an application to provide peer node_modules on the
server, e.g. in isopackets and compiler plugins).

Since we're using different sets of polyfills on the client and the
server, it didn't seem to make sense to rely on a single npm package, so
meteor-ecmascript-runtime has been removed.
2017-04-19 17:36:04 -04:00
Ben Newman
b491985b4a Make babel-runtime use ecmascript-runtime on server only. 2017-04-19 15:56:33 -04:00
Jesse Rosenberger
6a9f8b9044 Merge pull request #8571 from Akarshit/fix-passwordIndex
Move the index creation to a location which will cover applications which do not use `accounts-password` but still need the benefit of the index.
2017-04-19 08:28:18 -07:00
Wexpo Lyu
1c9eacaeb8 Accounts login functions (#2375) (#8452)
Provide AccountsClient#{call,apply}LoginFunction methods.
2017-04-19 11:17:53 -04:00
Erik Demaine
6d45626566 Switch to modern nodemailer 4, Node 4 version. Fix #8591 (#8605)
* Switch to modern nodemailer 4, Node 4 version. Fix #8591

* Most critically, use a pool instead of direct SMTP connection,
  to handle dropped connections and increase throughput,
  like mail module 1.1.  (#8591)
* New nodemailer's sendMail wants an options object, not a MailComposer
  object.  Luckily, a MailComposer object has a "mail" field that
  remembers the original options, so we can keep original behavior.
* However, we no longer support the mailComposer option set to a compiled
  MailComposer object (functionality that was briefly added in 1.2.0).
* nodemailer does SMTP URL parsing now automatically for us, simplifying code.
* Tests' outputs now end with additional "\r\n"
* Drop underscore package dependency (no longer needed)

* General formatting/style cleanup for `packages/email`.

* snake_cased => camelCased for some local variables.
* Added curly-brackets to `if`s.
* Removed trailing spaces.
* Removed commented-out code.
* Removed older doc text and changed some links.

* Get rid of back-and-forth assigning of `mailUrlString`.
2017-04-17 12:41:44 -07:00
Ben Newman
7a9dd2b7a4 Use tokens from Google Sign-In instead of calling getTokens. (#8604)
* Use tokens from Google Sign-In instead of calling getTokens.

Follow-up to https://github.com/meteor/meteor/pull/8588.

* Bump google-oauth package version to 1.2.3.
2017-04-14 18:11:06 -04:00
Ben Newman
353bea75b7 Bump ecmascript package version to 0.7.3.
Bumping this version is necessary after upgrading babel-compiler since
ecmascript registers a compiler plugin that uses babel-compiler.
2017-04-14 02:38:27 -04:00
Ben Newman
d8fa46b5aa Update npm-shrinkwrap.json for babel-compiler package. 2017-04-14 02:37:35 -04:00
Ben Newman
895321e35f Upgrade meteor-babel and reify to fix #8595. (#8599)
* Upgrade meteor-babel to version 0.20.1 and reify to 0.7.4.
* Bump $BUNDLE_VERSION to 4.7.25 before rebuilding dev bundle.
2017-04-14 02:35:01 -04:00