Commit Graph

8365 Commits

Author SHA1 Message Date
Ben Newman
80d46d2e18 Bump package versions for the official 1.4.4.5 release. 2017-12-08 16:36:06 -05:00
Ben Newman
0b89e7a235 Bump package versions for 1.4.4.5-beta.0 release. 2017-12-07 20:45:37 -05:00
Ben Newman
2594470e07 Avoid using Object.getOwnPropertyDescriptors to clone inserted documents. 2017-12-07 20:39:55 -05:00
Ben Newman
9c53e186d4 Shallow-clone inserted documents more reliably.
In a previous commit, I changed

  doc = _.extend({}, doc);

to avoid using underscore, thus:

  doc = { ...doc };

While this may seem harmless, it broke a few Mongo.Collection tests
because _.extend copies *all* properties, both own and inherited, whereas
object ...spread only copies own properties.

However, the correct way to fix this problem is *not* to revert to the old
behavior, since flattening the inherited properties of a document was
never actually what we wanted. The old behavior was subtly broken, too.

Instead, we need to create a new object with the same prototoype as the
provided document, then shallow-copy the own properties. Any properties or
methods inherited from the original prototype will then be available on
the new object, even though they didn't get copied over.

I've intentionally left some trivial formatting changes in this commit to
remind myself which broken tests were fixed by this change.
2017-12-07 19:49:09 -05:00
Jesse Rosenberger
5cc99149d0 Bump package versions for 1.4.4.4-rc.0 release. 2017-09-25 20:48:27 +03:00
Jesse Rosenberger
7308d46a86 Avoid Array.prototype.includes.
Array.prototype.includes was not available in older implementations
and this avoids tighter version contraints and maximum compatibility.
2017-09-25 20:45:57 +03:00
Jesse Rosenberger
8b87abe41a Bump allow-deny package patch version. 2017-09-25 20:45:52 +03:00
Ben Newman
174f3dc135 Avoid Array.from, Set, and spread elements when computing union. 2017-09-25 20:45:24 +03:00
Jesse Rosenberger
8b8622960b Replace Underscore methods with native ECMAScript.
This removes `underscore` entirely from `allow-deny`.
2017-09-25 20:45:24 +03:00
Ben Newman
7e52b10ba4 Bump package versions for the official 1.4.4.3 release. 2017-05-22 18:42:17 -04:00
Ben Newman
994558ccd7 Bump package versions for 1.4.4.3-rc.0 release. 2017-05-22 17:00:06 -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
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
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
caf7f3d7dd Merge branch 'master' into devel 2017-04-07 18:46:07 -04:00
Ben Newman
384023ecbd Bump package versions for the official 1.4.4.1 release. 2017-04-07 17:58:50 -04:00
Ben Newman
ce29815ae7 Bump package versions for 1.4.4.1-rc.0 release. 2017-04-07 16:27:22 -04:00
Ben Newman
e1ac5bf1f3 Replace module.importSync with module.import in older Meteor versions.
Also bumping the ecmascript version because it registers a compiler plugin
that uses babel-compiler.

Fixes #8572, albeit somewhat hackily.
2017-04-07 16:27:17 -04:00
Ben Newman
ac5131d1d7 Replace module.importSync with module.import in older Meteor versions.
Also bumping the ecmascript version because it registers a compiler plugin
that uses babel-compiler.

Fixes #8572, albeit somewhat hackily.
2017-04-07 11:53:46 -04:00
Jesse Rosenberger
948ec2b05f Merge branch 'master' into devel 2017-04-07 18:50:17 +03:00
Jesse Rosenberger
68afef2050 Bump package versions for the official 1.4.4 release. 2017-04-07 13:55:36 +03:00
Jesse Rosenberger
13c55e734c Bump package versions for 1.4.4-rc.9 release. 2017-04-06 22:51:33 +03:00
Jesse Rosenberger
f62b25e3f0 Bump package versions for 1.4.4-rc.8 release. 2017-04-05 20:09:52 +03:00
Max Nowack
759671dc6c add function to expose tracker inFlush variable (#8565) 2017-04-05 11:54:40 -04:00
ScaY
52fb594659 test(accounts-password): tests email verification for same email (#8555)
Test that email verification is case-insensitive.
2017-04-05 11:41:28 -04:00
mutdmour
9bcb3a47b6 Store expiresAt for all OAuth providers (#8547).
Fixes #576.
2017-04-05 11:33:05 -04:00
Hugh Willson
f4e41cbf1b Adjust Mongo.Collection._rewriteSelector to allow a custom fallback _id. (#8525)
* Adjust Mongo.Collection._rewriteSelector to allow a custom fallback _id.

* Adjusted insertedId fallback handling to include the options.insertedId.

* Adjusted _rewriteSelector to use an options object for fallbackId.
2017-04-05 11:25:09 -04:00
Jesse Rosenberger
eb827b2515 Bump package versions for 1.4.4-rc.7 release. 2017-04-05 14:43:43 +03:00
Ben Newman
fc626eaf4c Use fork of cordova-plugin-googleplus to ease iOS keychain sharing.
https://github.com/meteor/meteor/issues/8253
https://github.com/EddyVerbruggen/cordova-plugin-googleplus/pull/366
2017-04-04 15:26:28 -04:00
Ben Newman
f3c2eaf5bf Bump package versions for 1.4.4-rc.6 release. 2017-04-03 20:24:06 -04:00
Ben Newman
954efa7f5a Support Google Sign-In in google-oauth package. (#8549)
* Support Google Sign-In in google-oauth package.

Addresses #8253.

* Use Meteor.startup instead of listening for deviceready event.

* Fix mobile-config.js typo.

* Bump accounts-google and google-oauth package versions.

I'm only bumping the patch versions, even though the recent changes to
these packages may seem significant, for two reasons:

1. Bumping the minor versions would force Meteor 1.4.3 developers to
   upgrade to Meteor 1.4.4 if they wanted to use these changes.

2. The accounts-google and google-oauth packages without these changes
   will stop working completely in two weeks, which is much worse than the
   risks of upgrading.
2017-04-03 17:07:55 -04:00
Ben Newman
0a73a80b4b Upgrade uglify-js in an attempt to fix #8536. 2017-04-03 16:54:20 -04:00
Jesse Rosenberger
2fd61b83a7 Bump package versions for 1.4.4-rc.5 release. 2017-03-30 15:47:07 +03:00