Commit Graph

20369 Commits

Author SHA1 Message Date
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
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
Ben Newman
c998ca724f History.md entry for Babel 7 upgrade. [ci skip] 2017-12-05 10:55:28 -05:00
David Brown
ed10ede29d Fix error message for invalid ROOT_URL #8026 (#9261) 2017-12-05 10:14:28 -05:00
Ben Newman
1cedafb91e Bump $BUNDLE_VERSION to 8.8.5 before rebuilding dev bundle. 2017-12-05 09:52:55 -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
7424fd633e Bump $BUNDLE_VERSION to 8.8.4 before rebuilding dev bundle. 2017-12-05 09:52:54 -05:00
Ben Newman
bdb28bc74f Update meteor-babel and @babel/runtime to 7.0.0-beta.34.
This applies only to the command-line tool, for now.
2017-12-05 09:52:54 -05:00
Ben Newman
ad80b2068c Bump bundle-visualizer patch version to 1.1.2. 2017-12-05 09:41:55 -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
Jesse Rosenberger
1fc2d83aa3 Merge pull request #9441 from peterparkers/patch-1
Edit http link in README.md
2017-12-05 13:23:49 +02:00
Phurinat Puekkham
61cbd79879 Update README.md
edit link from http to https
2017-12-05 15:50:32 +07:00
Jesse Rosenberger
74aa18b253 Merge pull request #9364 from meteor/abernix/decompose-self-test
Decompose self-test logic into separate files.
2017-12-04 17:03:22 +02: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
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
Hugh Willson
76736137b7 Prevent Tool crash when node_modules source watcher is removed (#9433)
When sources in the `node_modules` directory are being watched
by a build plugin, if that build plugin is removed while the
Tool is running, the Tool can crash. This is because the Tool
currently see's this situation as an improbable edge case, and
purposely errors out instead of allowing the Tool to continue.
This commit adjusts the Tool to swallow this exception
thereby allowing the rebuild process to continue normally
(and avoiding a Tool crash). Given that the liklihood of this
situation happening is quite low, and the impact of allowing
the rebuild to continue is neglibile (if source files are
no longer handled by a build plugin, app developers will
notice quickly), this seems like an acceptable way forward.

Fixes #8644.
2017-12-02 17:19:11 -05:00
Seba Kerckhof
ff588b436c Add support for $type aliases. (#9402) 2017-12-02 17:18:09 -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
Jesse Rosenberger
ba118085dc Test which ensures that the global _ isn't compromised.
As demonstrated in https://github.com/meteor/meteor/issues/9276.

This test wouldn't have caught the regression in the previous solution
since the lack of a TTY in the `self-test` test harness caused the tests
themselves to take the path through `shell-server`'s `evaluateAndExit`
logic, which didn't use the `global` scope in the same way as the
interactive shell.  That is no longer the case as of e0682c553d.
2017-11-30 19:15:25 +02:00
Jesse Rosenberger
1a52d77a40 Change the memuse.txt artifact on CircleCI to be more compact. 2017-11-29 23:40:58 +02:00
Jesse Rosenberger
6b27c69cd9 Remove unused meteor open-ide command from help.txt. 2017-11-29 23:16:52 +02:00
Jesse Rosenberger
bf6e401be4 Add --retries help to help.txt for meteor self-test. 2017-11-29 23:16:47 +02:00
Jesse Rosenberger
3c1ab6a3a7 Merge branch 'devel' into abernix/decompose-self-test 2017-11-29 22:28:01 +02:00
Jesse Rosenberger
1c796a69e1 Change some strings to be template literals.
There's probably a ways to go here, but these seemed like easy targets.
2017-11-29 21:51:15 +02:00
Jesse Rosenberger
936884e740 Address feedback from @benjamn regarding setRunningTest.
A great suggestion!

Refs: https://github.com/meteor/meteor/pull/9364#discussion_r150981769
2017-11-29 21:50:49 +02:00
Jesse Rosenberger
5475add47f Re-factor and re-enable BrowserStack Automate for meteor self-test.
Much of the infrastructure to run "self test" tests (those which test
core functionality of the `meteor` tool itself) in PhantomJS and
BrowserStack was already in place, though the BrowserStack portion had
been disabled some time ago, though the exact reason isn't entirely
clear.

BrowserStack could play an important roll in Meteor's future as Meteor
works to ensure that the bundle delivered to the client is appropriate
for that client's capabilities, including appropriate polyfills to
implement functionality not natively available in the browser (e.g.
ECMAScript features, SockJS, etc.).
2017-11-29 21:40:00 +02:00
Jesse Rosenberger
0ab298dd34 Change failedTests to live on the testList.
Since tests themselves already keep track of their failure, and the test
list (i.e. the `TestList` class) tracks other concepts of grouped tests,
such as "all tests", "filtered tests", etc. (like a `TestList` class
would!) I believe it makes sense for it to also maintain a collection of
"failed tests"... (in list form, of course!)

This will allow the `Run.runTest` logic to move into `run.js` file without
needing to pass back a separate `failed` variable in the event of a
failure, since that is already being tracked through the  `notifyFailed`
facility.
2017-11-29 21:33:26 +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
c09d8e57f0 Update coffeescript-compiler shrinkwrap.
Follow-up to https://github.com/meteor/meteor/pull/9420.
2017-11-27 10:11:36 -05:00
Geoffrey Booth
4b9e50dfa6 Bump CoffeeScript to 2.0.3 (#9420) 2017-11-27 10:04:13 -05:00
Ben Newman
64d1a59f74 Bump minor versions of packages changed by #9343.
https://github.com/meteor/meteor/pull/9274#issuecomment-346892876
2017-11-25 11:09:45 -05:00
Hugh Willson
92bcfaef84 Add os.windows.x86_64 to meteor build --architecture help (#9413)
The `meteor build --architecture` help was missing
`os.windows.x86_64`. This commit adds it in and also updates
an out of date comment in the source that referred to there
only being 3 allowed architectures.
2017-11-24 11:35:42 -05:00
George Ehrhorn
febb18922e Fix broken link (#9412)
The link to the ```tracker``` api was broken.
2017-11-24 11:34:56 -05:00
Ben Newman
f3c6460406 Merge pull request #9343 from meteor/jbaxleyiii/streaming-server-render
Improved server rendering, now with stream support.
2017-11-23 15:50:14 -05:00
Ben Newman
a8cf9c0804 Merge pull request #9409 from meteor/modernize-tinytest
Modernize tinytest by using ecmascript, and allow Tinytest.addAsync test functions to return Promise objects.
2017-11-23 15:47:14 -05:00