Commit Graph

20780 Commits

Author SHA1 Message Date
Ben Newman
f68affc09b Bump package versions for 1.6.2-beta.6 release. release/METEOR@1.6.2-beta.6 2018-02-10 11:05:57 -05:00
Ben Newman
926743536e Merge branch 'devel' into release-1.6.2 2018-02-10 11:01:41 -05:00
Christian Klaussner
63ed2e250c Update uglify-es to 3.3.10 (#9652) 2018-02-08 18:11:02 -05:00
Ben Newman
4b1c921768 Merge pull request #9650 from meteor/stop-running-test-packages-twice
Stop running test-packages twice in PhantomJS.
2018-02-08 12:42:57 -05:00
Ben Newman
c27b7418cf Stop running test-packages twice in PhantomJS.
During the Meteor 1.6.1 beta period, we introduced logic to render a
<script> tag to load the SockJS library in older browsers (#9353), and so
it seemed important to run test-packages both with and without the
<script> tag, using a special query parameter appended to the app URL.

The #9353 changes were ultimately reverted before Meteor 1.6.1 was
released (see 365804218f), and Meteor 1.6.2
will take a very different approach to bundling dependencies like SockJS
for legacy browsers (#9439). As part of this approach, PhantomJS is always
considered a legacy browser, and as such provides valuable feedback on the
behavior of web.browser.legacy bundles. However, since there's nothing to
configure with regard to SockJS anymore, there's no point in running the
test-packages suite twice in PhantomJS.

In order to run these tests in a modern browser environment, we should
probably revisit the idea of running tests in headless Chrome:
https://github.com/meteor/meteor-feature-requests/issues/254
2018-02-08 11:40:47 -05:00
Seba Kerckhof
640011a0bd Modernize rate limiter (#9604) 2018-02-08 10:43:06 -05:00
James Burgess
552764635e Modernize appcache package (#9600) 2018-02-08 10:35:13 -05:00
Christian Klaussner
b5a5935b09 Disable unsafe cssnano minification optimizations (#9635) 2018-02-08 10:32:28 -05:00
Robert Lowe
3332558ddb Introduce MONGO_BIND_IP override (#9606)
* Introduce MONGO_BIND_IP override

Introduces an environment variable (MONGO_BIND_IP) for overriding of meteor's mongod's `bind_ip` option to allow docker containers to bind on `0.0.0.0` to be able to expose mongod processs via docker's `-p 3001:3001` port bindings.

Related issue: https://serverfault.com/questions/758225/cannot-connect-to-mongodb-in-docker
Partially Related PR: https://github.com/meteor/meteor/pull/469

* Use METEOR_MONGO_BIND_IP over ambiguous MONGO_BIND_IP

Change request to use METEOR_MONGO_BIND_IP over ambiguous MONGO_BIND_IP
2018-02-08 10:30:28 -05:00
Ben Newman
6e6d176b7d Merge pull request #9466 from meteor/adam/synchronous-deploy
Make `meteor deploy` synchronous
2018-02-08 10:27:17 -05:00
James Burgess
8f30210b1a Modernize base64 package (#9608) 2018-02-08 10:24:02 -05:00
David Glasser
1dd7ad4544 Fix Galaxy discovery for version-status operation 2018-02-07 13:30:42 -08:00
Adam Zionts
d19f583e4f Make meteor deploy synchronous
- This changes meteor deploy to poll the /version-status/ REST endpoint
in Galaxy for the build and deploy status of the returned version
- Also fixes up a typo in a test
- Currently only configured to use a default polling configuration
- This change also adds a flag called --no-wait which allows users to
  specify that they want the deploy command to behave just as before
2018-02-07 13:30:21 -08:00
Jesse Rosenberger
52fb454803 Merge pull request #9644 from brucejo75/WSL_SQLITE_TRUNCATE
TRUNCATE journal mode for packaging DB on Windows like file systems
2018-02-07 08:32:19 +02:00
Ben Newman
9650679794 Bump ecmascript package version to 0.10.3.
This is necessary whenever we bump the babel-compiler package version,
which I just did.
2018-02-06 21:02:15 -05:00
Ben Newman
a5d9763186 Update meteor-babel to latest version. 2018-02-06 20:55:07 -05:00
Ben Newman
4294b5fd2f Bump $BUNDLE_VERSION to 8.9.22 before rebuilding dev bundle. 2018-02-06 20:13:26 -05:00
Ben Newman
2cd5b5c6d9 Update reify and optimism packages to latest versions. 2018-02-06 20:13:26 -05:00
Ben Newman
1d5da46afc Merge pull request #9627 from jamesmillerburgess/faster-circleci-workflow
Faster CircleCI workflow
2018-02-06 20:13:19 -05:00
Pravdomil
0a1e1f042a Correct jsdoc declarations for Meteor.apply (#9581)
* add docs for Meteor.apply options.returnStubValue
* remove old documentation (duplicated)
2018-02-06 19:27:59 +02:00
Jesse Rosenberger
53ceaca88b Merge pull request #9593 from meteor/abernix/test-docs-with-meteor
Attempt to generate "docs" during CircleCI tests.
2018-02-06 19:18:49 +02:00
Bruce Johnson
e34c72f665 TRUNCATE journal mode for packaging DB on Windows like file systems 2018-02-06 08:24:44 -08:00
Jesse Rosenberger
d6e1497350 Replace the Hexo test commands with new docs "npm test" script.
As implemented now on the meteor/docs repository.

Ref: https://github.com/meteor/docs/commit/af003a80bdf7f17f8ee0e95289add
2018-02-06 17:48:22 +02:00
Seba Kerckhof
58b4de5e18 Add support for string padLeft/padRight (#9641) 2018-02-06 09:09:06 -05:00
Ben Newman
c1bdeb7ea5 Bump package versions for 1.6.2-beta.5 release. release/METEOR@1.6.2-beta.5 2018-02-03 17:23:33 -05:00
Ben Newman
0d14d58017 Merge branch 'devel' into release-1.6.2 2018-02-03 17:22:08 -05:00
James Burgess
3ba41108c4 Expand CircleCI groups to 12 and rebalance tests 2018-02-03 11:57:36 +01:00
James Burgess
c9ff7a55aa Fix flakey test 'javascript hot code push' 2018-02-03 11:57:18 +01:00
Ben Newman
57a6f44a65 Make the class properties transform "loose" to fix #9628. 2018-02-02 16:25:10 -05:00
Ben Newman
bd5cf99edb Ignore babel-preset-meteor if found in a .babelrc file.
This could have prevented #9631 from being a problem in the first place,
and feels like the right thing to do, considering the number of cases
we've seen of people accidentally including babel-preset-meteor in their
.babelrc files.

As usual, we have to bump the ecmascript version as well, so that the
compiler plugin will be rebuilt.
2018-02-02 15:54:57 -05:00
Ben Newman
82e61fe085 Further refine ImportScanner METEOR_PROFILE output. 2018-02-01 12:44:16 -05:00
Ben Newman
dfb6a9b712 Avoid displaying package stats errors in headless mode.
Console.isInteractive() will be false during our Circle CI test runs,
since we set the METEOR_HEADLESS environment variable, so this change
should help prevent spurious test failures like these:
https://circleci.com/gh/meteor/meteor/15305.
2018-02-01 12:22:10 -05:00
Ben Newman
c6d481d53b Instrument more ImportScanner methods for METEOR_PROFILE.
This should help with analyzing how much time computeJsOutputFilesMap
spends scanning imports within individual packages (scanImports) versus
resolving cross-package imports (scanMissingModules).
2018-02-01 11:10:35 -05:00
Jesse Rosenberger
46eaab39b6 Add misssing JSDoc declarations for Mongo.Collection#upsert.
In the conversion to ECMAScript classes in
https://github.com/meteor/meteor/commit/6fcf190bb489db19, it appears that
JSDoc `@method`, `@instance` and `@memberof` declarations were already
in place for the (outgoing) `Mongo.Collection.prototype.{foo}` expressions,
with the exception of `upsert`.  The omission caused docs generation failure
with the new ES syntax since, presumably, it was less possible to be inferred
from the `MCp*` notation.

Additionally, this changes the casing of `@memberOf` to `@memberof`,
mainly because:

* The JSDocs use this notation.
* The data JSON outputted by JSDoc lowercases property keys, including
  cases where `memberOf` was capitalized, making it less clear that
  there is a 1:1 mapping.
* My editor refuses to syntax-highlight jsdoc declarations with [A-Z],
  possilby because of the above reasons.
2018-02-01 11:59:27 +02:00
Jesse Rosenberger
053352f74d Merge branch 'devel' into abernix/test-docs-with-meteor 2018-02-01 09:54:02 +02:00
Ben Newman
5c8a3737d7 Bump package versions for 1.6.2-beta.4 release. release/METEOR@1.6.2-beta.4 2018-01-31 18:38:16 -05:00
Ben Newman
c87f467320 Merge branch 'devel' into release-1.6.2 2018-01-31 18:37:11 -05:00
Ben Newman
9daf412b2b Merge pull request #9611 from meteor/modernize-tracker
Modernize tracker package.
2018-01-31 18:35:41 -05:00
Ben Newman
29e48758df Merge branch 'devel' into release-1.6.2 2018-01-31 18:26:12 -05:00
Ben Newman
14f6f9328b Modernize Tracker package.
Changes:

* Use ECMAScript class and arrow function syntax for Tracker.Computation
  and Tracker.Dependency.

* Remove the deprecated.js file (no more Deps, Tracker.depend, or
  Tracker-related Meteor.* APIs).
2018-01-31 17:37:14 -05:00
Ben Newman
0f0ef96611 Prevent _typeof(Reflect) from throwing in older browsers.
Should fix #9598, thanks to @abernix's diagnosis of the problem:
https://github.com/meteor/meteor/issues/9598#issuecomment-361570289

My later comment in that issue thread is not accurate, since the Babel
wrapNativeSuper helper already pulls in the core-js Reflect.construct
polyfill. Instead, the root of the problem really seems to be Babel's
generation of an unguarded _typeof(Reflect) expression.
2018-01-31 17:29:15 -05:00
Ben Newman
3f5d0d9c52 Bump $BUNDLE_VERSION to 8.9.21 before rebuilding dev bundle. 2018-01-31 16:24:58 -05:00
Ben Newman
312094cec9 Use a version of meteor-babel that exactly pins its dependencies.
146c11425b

The recent 7.0.0-beta.39 versions of some Babel dependencies snuck into
the last dev_bundle/lib/node_modules build, due to using ^7.0.0-beta.38
version constraints in babel-preset-meteor/package.json, even though
meteor-babel exactly pins the version of babel-preset-meteor.

After I rebuild the dev bundle, this change should fix the current test
failures on the devel branch.
2018-01-31 15:57:10 -05:00
Ben Newman
9d3e23c9b1 Bump $BUNDLE_VERSION to 8.9.20 before rebuilding dev bundle. 2018-01-30 17:50:18 -05:00
Ben Newman
85d74f8d2b Revert "Upgrade to Mongo 3.6 (#9533)"
This reverts commit dfc0702558.

We've seen some odd test failures (e.g. `passwords - tokens`) and trouble
updating from 1.6.1 to 1.6.2-beta.3 (easily solved with `meteor reset`,
but also worth investigating), so I think we should keep working on the
Mongo 3.6 upgrade in a PR, rather than running all of our tests against
a devel branch that includes Mongo 3.6.

cc @abernix @hwillson
2018-01-30 17:47:12 -05:00
Jesse Rosenberger
4d861735c5 Export check as a named function declaration for JSDoc.
The change made in a30f42c4ac switched
from CommonJS to ECMAScript export notation.

It seems JSDoc isn't smart enough to make the same association as it did with
the previous notation as it does for an anon. function expression `export`-ed
as a `const`ant.  We could annotate this with `@function check`, but it seems
reasonable to just export a function declaration directly, which JSDoc will
understand.

This, along with ababb18aef, corrects the
failure of docs generation originally discovered in:
8f7ceb5de5.

Refs: https://github.com/meteor/meteor/pull/9593
2018-01-30 22:34:59 +02:00
Ben Newman
99ddadca22 Bump jquery Meteor package version to match jquery version.
It's nice to match versions, but we couldn't bump the minor version of the
Meteor jquery package without breaking compatibility with the current Meteor
release (1.6.1), since jquery is a core package.

The next Meteor release (either 1.6.1.1 or 1.6.2) will either use the new
1.12.1 version or (ideally) jquery will no longer be a core package, and
thus will not be constrained by the release.

Related: #9605
2018-01-30 12:39:01 -05:00
Ben Newman
4e074be6a8 Update default meteor/jquery version to 1.12.1 to fix #9605.
Note that you can run `meteor npm install jquery` (any version) in your
top-level application directory, and the meteor/jquery package will use
that version instead of 1.12.1.
2018-01-30 12:32:14 -05:00
Jesse Rosenberger
ababb18aef Augment JSDoc declarations for Meteor.* connection convenience methods.
The changes made in 8bbfd531c1 prevent
JSDoc (used to generate docs for https://docs.meteor.com via the
https://github.com/meteor/docs repository) from associating the
convenience methods which are exposed on the `Meteor` namespace
(e.g. `Meteor.call`, `Meteor.apply`, `Meteor.reconnect,` etc.) as they are
being identified as members of the `Connection` class.  While this is
techincally true, and all of these are also available on
`Meteor.connection` (e.g. `Meteor.connection.status`), we have
historically exposed them in the docs using their (preferred) `Meteor.*`
aliases.

Hopefully, this at least partially resolves
8f7ceb5de5.
2018-01-30 19:20:20 +02:00
Ben Newman
17eaa5bd6f Implement Mongo.Collection as a function again.
This reverts commit b06a6af335, where I
attempted to allow `Mongo.Collection` to be subclassed by non-native class
syntax by implementing static `call` and `apply` methods.

As the reproduction in #9595 demonstrates, in order to subclass
`Mongo.Collection` properly given this trick, one would need to override
not only the `constructor` method but also the `init` method that the
`Mongo.Collection` base class calls. Since this implicit expectation is
too much to ask of new subclassing code, let alone existing subclassing
code, I'm afraid the only remaining option is to go back to implementing
`Mongo.Collection` as a traditional constructor function, rather than
using native `class` syntax, so that subclasses can invoke the constructor
using `Function.prototype.{call,apply}` as they've always done.
2018-01-29 19:23:13 -05:00