Commit Graph

9290 Commits

Author SHA1 Message Date
Ben Newman
3f2a79eaba Bump package versions for 1.6.1-beta.19 release. 2017-12-19 18:41:38 -05:00
Ben Newman
bf6d0dabc9 Merge branch 'devel' into release-1.6.1 2017-12-19 18:22:51 -05:00
Ben Newman
7583fc0bb6 Update meteor-babel and reify to latest versions. 2017-12-19 18:14:38 -05:00
Hugh Willson
d644705aa8 Deprecate stylus (#9445)
* Deprecate the stylus package

Better / more up to date 3rd party stylus packages exist and
there isn't really any technical reason why Meteor core needs
to include its own stylus package. Since a stylus package
can be fully built and managed outside of core, this commit
moves the `stylus` package into `deprecated` (and preps the
package contents for deprecation if we decide to publish a
final version).

* Removed dupe

* Add test placeholder css file to console test runner

Some of Meteor's package tests require at least one `.css`
file to be available in the tested application bundle
(e.g. "appcache - sections validity" and "webapp -
content-type header"). The inclusion of this file makes
sure that at least one `.css` file can always be found,
when the tests are run.

* Bump test-in-console package version

* Bump package minor version

Putting the minor version at something unreachable to
make sure the deprecated version isn't accidientally
pulled into an app when running
`meteor update --all-packages` or `meteor update stylus`.

* Add PR link
2017-12-14 09:47:02 -05:00
Hugh Willson
ce3885b6df Ignore undefined fields when inserting/updating in Mongo (#9444)
* Ignore undefined fields when inserting/updating in Mongo

The Mongo Node driver that Meteor uses currently replaces
`undefined` field values with `null`, when doing an
insert/update. This approach can lead to unexpected behaviour,
as outlined in #1646, #6051 and several other issues. This commit
configures the default Mongo connection to `ignoreUndefined`
fields, which means `undefined` fields are not inserted/updated,
instead of being inserted/updated as `null`.

Fixes #6051.

* Add PR link to History.md
2017-12-13 11:36:54 -05:00
Hugh Willson
ae1783bd4b Update Email.send docs to show how to add header objects (#9443)
* Update Email.send docs to show how to add header objects

Recent versions of `mailcomposer` (which Meteor is now using) no
longer `JSON.stringify` added header objects. This commit updates
the `Email.send` `options.headers` docs to show how to properly
associate objects with custom headers using `JSON.stringify`.

Fixes #8660.

* Adjust header object docs property naming to avoid confusion
2017-12-13 11:30:19 -05:00
Hugh Willson
56a86bf298 Help browser account saving with accounts-ui login/signup forms (#9442)
* Help browser account saving with accounts-ui login/signup forms

`accounts-ui-unstyled` currently uses `<div />`'s to hold its
login/signup forms, as well as `<div />`'s to represent the
login/signup buttons in the form. By not using proper
`<form />` and `<button />` elements, certain browser's do not
notice incoming login/signup requests, and therefore do not
trigger their built in "would you like to save your user/password"
functionality. This commit adjusts the `accounts-ui-unstyled`
login/signup form to use proper `<form />` and `<button />`
elements, allowing most (Chrome, Firefox, IE - Safari will
recognize the request when a user attempts to leave the page)
browsers to recognize incoming login/signup requests.

Fixes #1746.

* Add History.md entry outlining potential back compat issues

* Bump minor versions
2017-12-13 11:29:55 -05:00
Ben Newman
0b8757bed9 Bump package versions for 1.6.1-beta.18 release. 2017-12-12 18:04:56 -05:00
Ben Newman
710869baca Merge branch 'devel' into release-1.6.1 2017-12-12 17:58:27 -05:00
Ben Newman
bee21a63f8 Bump modules package version to 0.11.1. 2017-12-12 17:57:24 -05:00
Ben Newman
9a391d9b04 Fix #9428 by registering dynamic-import HTTP endpoint earlier. (#9465) 2017-12-12 17:27:41 -05:00
Ben Newman
ac705ebd92 Bump reify npm package to version 0.13.3. 2017-12-12 13:30:59 -05:00
PHuRinaT PuEkkHaM
c6e3695534 Change http link to https in README.md file
-change two link
1. from "http://docs.meteor.com/#ddp_connect" to "https://docs.meteor.com/api/connections.html#DDP-connect"
2. from "http://docs.meteor.com/" to "https://docs.meteor.com/"
2017-12-10 01:55:40 +07:00
Ben Newman
d045663fcd Bump package versions for 1.6.1-beta.17 release.
The 1.6.1-beta.16 release was DOA and should be avoided (if it can even be
installed), due to an unfortunate interruption of my internet connection.
2017-12-08 19:02:55 -05:00
Ben Newman
a40ab79a9c Merge branch 'devel' into release-1.6.1 2017-12-08 18:41:38 -05:00
Ben Newman
2babb70764 Fix merge typo in mongo/collection.js. 2017-12-08 18:41:15 -05:00
Ben Newman
d0b5fc5b7b Bump package versions for 1.6.1-beta.15 release. 2017-12-08 18:31:31 -05:00
Ben Newman
f098648d8a Merge branch 'devel' into release-1.6.1 2017-12-08 18:07:19 -05:00
Ben Newman
bf9624f644 Merge branch 'master' into devel 2017-12-08 18:02:55 -05:00
Ben Newman
5533aa7ce8 Bump package versions for the official 1.6.0.1 release. 2017-12-08 14:19:21 -05:00
Ben Newman
feb68df4d6 Bump package versions for 1.6.0.1-rc.0 release. 2017-12-08 12:10:11 -05:00
Ben Newman
e49c632316 Bump package versions for 1.6.0.1-beta.0 release. 2017-12-07 18:53:27 -05:00
Ben Newman
04e645906c Update blaze submodule to latest master revision. 2017-12-07 17:42:51 -05:00
Ben Newman
7f8ed5692e 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 17:42:51 -05:00
Ben Newman
91d6f22076 Bump package versions for 1.6.1-beta.14 release. 2017-12-05 11:48:27 -05:00
Ben Newman
1979bdd2ac Merge branch 'devel' into release-1.6.1 2017-12-05 11:44:21 -05:00
Ben Newman
0bbfe11e58 Bump minor versions of [standard-]minifier-js to tolerate babel-compiler@7. 2017-12-05 11:43:40 -05:00
Ben Newman
5fd81f2e76 Remove ~ version syntax from coffeescript/package.js.
This seems to have caused an internal error in the package server while
publishing, which is something we should investigate later.
2017-12-05 11:31:23 -05:00
Ben Newman
463d45afc7 Bump package versions for 1.6.1-beta.13 release. 2017-12-05 11:25:38 -05:00
Ben Newman
7d379aecf0 Merge branch 'devel' into release-1.6.1 2017-12-05 11:00:18 -05:00
Ben Newman
162f458306 Merge pull request #9440 from meteor/babel-7-with-builtins
Update the babel-compiler package use to Babel 7, like the command-line tool.
2017-12-05 10:57:31 -05:00
David Brown
ed10ede29d Fix error message for invalid ROOT_URL #8026 (#9261) 2017-12-05 10:14:28 -05:00
Ben Newman
1a13cbe1b9 Update meteor-babel to version 7.0.0-beta.34-1.
This temporarily reverts back to using @babel/runtime/helpers/* rather
than @babel/runtime/helpers/builtin/*, since some helpers (for example,
`slicedToArray`) were using code patterns that cannot be made to work via
polyfills in older browsers, e.g.

  if (Symbol.iterator in Object(arr)) {...}

to test whether `arr` is iterable.
2017-12-05 09:52:55 -05:00
Ben Newman
eedb74dbac Update coffeescript packages for new major babel-compiler version. 2017-12-05 09:52:55 -05:00
Ben Newman
baf889695a Use Babel 7 to compile package and application code, too. 2017-12-05 09:52:54 -05:00
Ben Newman
71da2d327c Bump package versions for 1.6.1-beta.12 release. 2017-12-05 09:43:01 -05:00
Ben Newman
371edf5021 Bump bundle-visualizer patch version to 1.1.2. 2017-12-05 09:42:58 -05:00
Ben Newman
ad80b2068c Bump bundle-visualizer patch version to 1.1.2. 2017-12-05 09:41:55 -05:00
Ben Newman
d10d3225ad Merge branch 'devel' into release-1.6.1 2017-12-05 09:31:20 -05:00
Ben Newman
7aae1ad131 Bump appcache patch version to 1.1.1 (w/ TODO, style tweaks). 2017-12-05 09:25:53 -05:00
Kevin Newman
491f678c0b Remove "dynamic js" and .map files from appcache (app.manifest). (#9434)
Remove type:"dynamic js" and .map files from `appcache` (app.manifest) since the
dynamic-import package doesn't load dynamic modules from `appcache`, so caching
those files with `appcache` is redundant.
2017-12-05 09:22:13 -05:00
Jesse Rosenberger
bc0a25156b Merge pull request #9437 from hwillson/issue-9435
Fix check for Google OAuth2 expiresIn property in tokens
2017-12-05 15:41:34 +02:00
Jesse Rosenberger
5933834ece Bump google-oauth minor version to 1.2.5.
Refs: https://github.com/meteor/meteor/pull/9437
2017-12-05 14:45:54 +02:00
Phurinat Puekkham
61cbd79879 Update README.md
edit link from http to https
2017-12-05 15:50:32 +07:00
Hugh Willson
8987289234 Fix check for Google OAuth2 expiresIn property in tokens
Google's OAuth2 token endpoint
(https://accounts.google.com/o/oauth2/token) returns an
`expires_in` property in its response, which was being stored
internally as `expiresIn`. The `getServiceDataFromTokens`
function would only attempt to work with the `expiresIn` value
if the `tokens` object had a set `expiresAt` property, meaning
the `expiresIn` property was never used. This commit switches
the `expiresAt` check to `expiresIn`.

Fixes #9435.
2017-12-04 06:01:25 -05:00
Ben Newman
20fc65d2fe Go back to exporting packageName from bundle-visualizer/common.js.
This mistake was introduced by 95d093a17a.
2017-12-03 11:31:45 -05:00
Ben Newman
ba4e3c26d0 Merge branch 'devel' into release-1.6.1 2017-12-02 17:52:43 -05:00
Ben Newman
c6bc841386 Bump package patch versions for minimongo and shell-server changes. 2017-12-02 17:49:56 -05:00
Ben Newman
855dfe8960 Merge pull request #9406 from meteor/abernix/server-shell-underscore
Avoid clobbering global _ when running `meteor shell`.
2017-12-02 17:20:39 -05:00
Seba Kerckhof
ff588b436c Add support for $type aliases. (#9402) 2017-12-02 17:18:09 -05:00