Commit Graph

9277 Commits

Author SHA1 Message Date
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
Ben Newman
3c0354fbe2 Merge branch 'devel' into release-1.6.1 2017-12-01 18:45:46 -05:00
Ben Newman
efb35488da Use more ECMAScript classes in check/match.js. 2017-12-01 18:44:25 -05:00
Ben Newman
4aeb453c7b Use /__meteor__/dynamic-import/fetch URL for fetching dynamic modules. 2017-12-01 18:28:44 -05:00
Ben Newman
95d093a17a Use /__meteor__/bundle-visualizer/stats URL for bundle-visualizer stats. 2017-12-01 18:28:43 -05:00
Hugh Willson
93fe8f13a4 Stop serving the application manifest from /manifest.json (#9424)
* Stop serving the application manifest from /manifest.json

Meteor currently serves its own manifest file from
`/manifest.json`. This location is not application
configurable, and can conflict with other non-Meteor
defined manifest files, that are already being served
from this location. There isn't really any reason why
Meteor needs to use the `/manifest.json` location, so
this commit moves it to `/__meteor__/webapp/manifest.json`.

Fixes #6674.

* Add PR link to History.md
2017-12-01 18:28:15 -05:00
Jesse Rosenberger
aec76b766c Only import start from repl instead of the entire module.
It was previously necessary to have more from the `repl` module, but
it's sufficient to just have `start` now since we wrap the default
`eval`.
2017-11-30 19:57:00 +02:00
Hugh Willson
ac90219f20 Fail test when reverse.meteor.com cannot be connected to (#9416)
For a while the livedata `reconnect to a different server` test
was failing since the `reverse.meteor.com` host and application
were taken down, but nobody noticed. This is because even
though the test was still enabled, it was configured to swallow
the failure if the connection failed. `reverse.meteor.com` has
been brought back up, so this commit adjusts the test to make
sure it will properly fail if `reverse.meteor.com` goes down
again.

Fixes https://github.com/meteor/meteor/issues/8092.
2017-11-29 11:27:10 -05:00
Jesse Rosenberger
0df8a5a516 Ensure that require and module are always set.
I previously had thought that a duplicate call to `setRequireAndModule`
encountered in code-path would no longer be necessary after some
consolidation in previous steps of this re-factor, but the test failure
seen here made it clear what was happening:

https://circleci.com/gh/meteor/meteor/12445

Specifically, if a module was imported in a piped command (that is to say,
when no TTY is present and the `evaluateAndExit` code-path is taken), as so:

    echo 'import { Meteor } from "meteor/meteor"' | meteor shell

...the `module` and `require` symbols were not set.  Conveniently, this is
the environment in effect when the `meteor self-test` suite is ran since
they do not have a TTY.

This moves the `setAndRequire` from the "interactive-only" function into
the general REPL setup and further harmonizes the code.
2017-11-28 18:35:04 +02:00
Jesse Rosenberger
724a801d70 Remove unnecessary setting of repl.context.
This is superfluous residue that I inadvertently created when splitting the
existing `startREPL` function into `setupREPL` and `enableInteractiveMode`.

The context is already set in `setupREPL` (to the exact same value as
here) by the time that this occurrence in `enableInteractiveMode` is called.
2017-11-28 18:31:26 +02:00
Jesse Rosenberger
c8b5f42d05 Modernization of shell-server package. 2017-11-28 16:58:11 +02:00
Jesse Rosenberger
e0682c553d Wrap default repl "eval" function, rather than duplicating logic.
Addresses feedback from @benjamn.

Rather than copying the `IsRecoverableError` and `isCodeRecoverable`
methods from the Node.js `repl` module source (in order to capture
so-called "Recoverable" errors), wrap the default "eval" function with
our relatively thin logic, thus avoiding the need to continually update
the definition of what's "recoverable" as Node's implementation evolves.
2017-11-28 16:55:27 +02:00
Ben Newman
a8bb9c3a57 Merge branch 'devel' into release-1.6.1 2017-11-27 13:24:09 -05:00
Ben Newman
c09d8e57f0 Update coffeescript-compiler shrinkwrap.
Follow-up to https://github.com/meteor/meteor/pull/9420.
2017-11-27 10:11:36 -05:00