Commit Graph

9300 Commits

Author SHA1 Message Date
Ben Newman
b19e8a6af0 Bump package versions for 1.6.1-beta.21 release. 2017-12-20 18:32:31 -05:00
Ben Newman
7b83066822 Return null from requireWithPrefixes when .babelrc plugin missing. 2017-12-20 15:21:08 -05:00
Ben Newman
29140f8c31 Copy rather than mutating .babelrc configuration objects.
Helps with #9469, since any extraneous "env" property will be removed from
the copied object.
2017-12-20 15:21:08 -05:00
Ben Newman
f1c3c0ad4e Try all {@babel/,babel-}{preset,plugin}- prefixes for .babelrc plugins. 2017-12-20 15:21:08 -05:00
Ben Newman
8bf3484314 Update meteor-babel to version 7.0.0-beta.35-1.
f5b8d7f24c
2017-12-20 14:36:40 -05:00
Ben Newman
4268785ffe Bump package versions for 1.6.1-beta.20 release. 2017-12-20 12:12:07 -05:00
Ben Newman
bd4ae26433 Merge branch 'devel' into release-1.6.1 2017-12-20 12:08:18 -05:00
Kevin Newman
23e3ac9677 Prefetch dynamic modules when appcache is active (#9482) 2017-12-20 12:06:23 -05:00
Hugh Willson
f6fcc5633e Unescape ampersands in oauth redirect URLs (#9484)
When using the `oauth` package "redirect" `loginStyle`, the
redirect URL is escaped before it is embedded in the HTML
page that is used to finalize the oauth process. This
escaped redirect URL is then assigned directly to
`window.location` to finalize the redirect. Browsers can
properly handle most of the escaped URL components, with
the exception of HTML entity based ampersands: `&`.
The `&`'s are left in the redirect URL after the
redirect has completed, leading to broken redirects in
some cases.

This commit makes sure `&`'s are converted back to
`&`'s before the redirect URL is assigned to
`window.location`.

Fixes #9279
2017-12-20 11:45:55 -05:00
Hugh Willson
85c8dc3ec5 Update minifier-js uglify-es dependency to latest version (#9483) 2017-12-20 11:37:23 -05:00
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