Commit Graph

6786 Commits

Author SHA1 Message Date
Ben Newman
bf6d0dabc9 Merge branch 'devel' into release-1.6.1 2017-12-19 18:22:51 -05:00
Ben Newman
a7585da87c Bump MIN_NODE_VERSION to enforce Node >= 8 in production. (#9485)
Clearly we haven't remembered to bump this version for some time now,
which is too bad, because it could have provided a more helpful error for
developers using an older version of Node in their non-Galaxy deployment
environments: https://github.com/meteor/meteor/issues/9470
2017-12-19 13:10:54 -05:00
Jesse Rosenberger
9b056f5e91 Merge pull request #9341 from meteor/glasser/progress-status-only
Improved console behavior within the Emacs shell, and also general
Console refactoring to modernize ECMAScript use and remove Underscore.
2017-12-13 20:14:13 +02:00
Hugh Willson
7c48bb5a73 Prevent Tool crash when settings file contains BOM (#9459)
* Prevent Tool crash when settings file contains BOM

The use of a byte order mark in a `--settings` file
crashes the Meteor Tool, when it attempts to JSON parse
the loaded settings data. Since a BOM is not required
(or recommended) when using UTF-8, this commit removes
it from the loaded settings data, before it is parsed.

Fixes #5180.

* Add PR link to History.md

* Update History.md
2017-12-13 12:05:42 -05:00
Andrew Mao
25a7439769 Update URL for information about file watchers (#9460)
The documentation itself could benefit from an update to describe the new polling/watcher priority system, but that's a task for another PR.
2017-12-13 11:50:50 -05:00
Jesse Rosenberger
e8fad2af2d Define Sandbox clients when running versioning hot code push test.
Since this test utilizes the `testWithAllClients` technique, which runs
the tests in various clients/browsers, it's necessary for the tests
`Sandbox` to define `clients`, otherwise the function within
`testWithAllClients` will not be executed at all.  This was causing this
particular test to always return success (it was running without failure
on exactly zero clients).

Also the technique of setting `this.baseTimeout` appeared to cause
problems, likely because it overrides various other values instead of
using `waitSecs` (we don't use the `baseTimeout` technique in other
places within self-tests either).

Discovered during testing, as mentioned in
https://github.com/meteor/meteor/pull/9439#pullrequestreview-83139232.
2017-12-13 16:07:59 +02:00
Ben Newman
710869baca Merge branch 'devel' into release-1.6.1 2017-12-12 17:58:27 -05:00
Ben Newman
b16a61c98b Fix #9235 by bundling package.json stubs even if "main" absent. 2017-12-12 15:45:02 -05:00
Ben Newman
d4d3df1428 Inline Resolver#_resolvePkgJsonMain into sole calling method. 2017-12-12 15:45:01 -05:00
Jesse Rosenberger
ae3c05cb34 Merge pull request #9448 from skirunman/patch-3
Update to Cordova iOS v4.5.4
2017-12-12 22:06:17 +02:00
Ben Newman
b343ec8568 Fix #9305 by including default when mirroring module exports.
This functionality was added in reify@0.13.3:
10c90cd0a2

The changes to modules-test-plugin/plugin.js cause files like array.arson
to mirror array.arson.js, which exercises module.makeNsSetter(true) and
relies on default exports.
2017-12-12 13:31:28 -05:00
Ben Newman
c28440ab81 Fix warnings about missing @-scoped npm packages. 2017-12-12 13:30:59 -05:00
Jesse Rosenberger
f1ab4d7b37 Remove iPad sizes which aren't expected to be supported.
The current believe, per @skirunman (whose perspective on the matter I trust), is that these sizes won't be supported in this manner by Apple, but rather as storyboards.

Ref: https://github.com/meteor/meteor/pull/9448#issuecomment-351123720
2017-12-12 19:37:25 +02:00
Jesse Rosenberger
20307f8d72 Change top-level const-like variables to actual consts. 2017-12-12 17:19:55 +02:00
Jesse Rosenberger
b70d01c5b0 Remove Underscore from Meteor "console" module. 2017-12-12 17:19:50 +02:00
Jesse Rosenberger
6f01d18252 Change tool "cleanup" module to use ESM format and remove Underscore. 2017-12-12 17:19:42 +02:00
Jesse Rosenberger
d35b1e240e Use Object.create(null) rather than object literal notation.
To avoid any unintended inheritance of non-"own" properties.
2017-12-12 17:19:35 +02:00
Jesse Rosenberger
0f18f96a18 Switch to using import syntax in Meteor console module. 2017-12-12 17:19:27 +02:00
Jesse Rosenberger
7268fb8ca0 Improve Emacs shell support by auto-detecting Emacs.
This adds a memoized helper function for detecting Emacs throughout the
CLI tool and automatically resorts to "ProgressDisplayStatus" mode when
Emacs is enabled.

In my tests with both Emacs 22 and 27, this nearly doubled performance
when using Meteor from within the Emacs shell (i.e. `M-x shell`).
2017-12-12 17:19:16 +02:00
skirunman
8e83391b62 Update to Cordova iOS v4.5.4
Update to Cordova iOS v4.5.4 to fix iPhone X splash screen issue.
Fixes https://github.com/meteor/meteor/issues/9447
2017-12-07 13:46:07 -08: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
baf889695a Use Babel 7 to compile package and application code, too. 2017-12-05 09:52:54 -05:00
Ben Newman
d10d3225ad Merge branch 'devel' into release-1.6.1 2017-12-05 09:31:20 -05: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
Ben Newman
ba4e3c26d0 Merge branch 'devel' into release-1.6.1 2017-12-02 17:52:43 -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
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
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
Ben Newman
fb080c1a83 Merge branch 'devel' into release-1.6.1 2017-11-24 11:38:19 -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
Jesse Rosenberger
204270694c Add support for a --retries flag to meteor self-test.
While running the tests three times might make a lot of sence in CI
environments, it certainly slows things down in development, especially
when you've failed a test on purpose, but still have to wait for it to
run three times to get the output.

This not only implements the `--retries` flag, but also activates it in
both CircleCI and AppVeyor test suites.
2017-11-23 18:39:34 +02:00
Ben Newman
26189d93b9 Avoid hiding the first line of get-machine deprecation notice.
As explained in the entry for the `meteor` command, the first line of each
entry in help.txt is the summary for autogenerated command lists, and thus
will not be displayed in the help for the command.
2017-11-22 15:35:24 -05:00
Ben Newman
a6b90f85c3 Merge branch 'devel' into release-1.6.1 2017-11-22 14:52:58 -05:00
Ben Newman
c8c88300a6 Fix remaining problems with PR #9237. 2017-11-22 14:44:22 -05:00
Edgar HIPP
16b74e5c0c Fix isNpmUrl to handle http/https urls (Closes #9236) 2017-11-22 14:44:22 -05:00
Ben Newman
6a312c49cd Guard against undefined process.env.NPM_CONFIG_REGISTRY.
https://github.com/meteor/meteor/pull/9398#discussion_r152610836
2017-11-22 13:12:37 -05:00
skirunman
1d5bf0f1a4 iPhone X status bar fix (#9375) 2017-11-22 11:36:45 -05:00
James Burgess
2547957268 Fix meteor test file matching patterns (#9339)
* Adjust test filename RegExps to match Meteor guide. Fixes #9332.
* Adjusted help text for --drive-package on meteor test.
* Add integration tests for `meteor test` eager file loading.
* Fix typo in selftest.forbid comment.
* Improve test file eager load integration test coverage and clarity.
2017-11-22 11:21:49 -05:00
Hugh Willson
8da6c84eac Update the default CSS parsing/combining/minifying tools (#9263)
* Update the default CSS parsing/combining/minifying tools

The `minifier-css` package is currently using outdated
(and abandoned) npm packages (`css-parse` and `css-stringify`),
as part of its parsing/minification process. This commit
replaces those packages with the robust, modern and maintained
`postcss` package.

* Adjust CSS source file fallback value

* Self test adjustments and cleanup

* Disable sourcesContent generation by postcss

The `standard-minifier-css` package is already associating
source content with the source map, so we don't need to
do this twice.

* Add History.md entry covering backwards compatibility details

* Bump major version due to backwards compatibility breaking changes

* Bump minor versions

* Code review changes (boolean formatting, concat to spread)
2017-11-22 11:13:54 -05:00
sebakerckhof
4ce2645fbf Add scoped packages to shrinkwrap 2017-11-20 17:57:19 +01:00
sebakerckhof
1bb46bc103 Don't use resolved urls as package version when using a private NPM server 2017-11-20 17:54:45 +01:00