Commit Graph

18132 Commits

Author SHA1 Message Date
dr-dimitru
a71a6e6cd9 Overall listing, missed semicolons 2016-12-21 03:01:30 +03:00
dr-dimitru
cea6f4a806 No need to set variable to undefined 2016-12-21 02:57:04 +03:00
dr-dimitru
349a1b48fc beta version bump 2016-12-21 02:55:14 +03:00
dr-dimitru
69ef77bcb6 - Lines 66, 1011 and 1352: Linting
- Line 497: `return` after `throw`
- Lines 523 - 527: `e` already defined in same function scope
(hoisting)
- Line 937: Missed semicolon
- Line 1095: Very confused about ES6 “default parameter” set via
colon, which probably will be interpreted as Object - Babel failed to
build on my end, regarding [this
docs](https://mongodb.github.io/node-mongodb-native/api-generated/cursor
.html#count) it should be a Boolean, so we set it to `false` by default
- Line 1120: no need to set variable to `undefined`
- Lines 1122, 1128, and 1133: Define `doc` above while due to function
scope and hoisting `doc` is already allocated inside `while` and `try`
2016-12-21 02:55:02 +03:00
dr-dimitru
9df15fc224 Merge remote-tracking branch 'meteor/devel' into devel 2016-12-21 02:50:16 +03:00
David Glasser
8a81e7156e Fix missing var in mongo package. 2016-12-19 11:43:14 -08:00
Ben Newman
3b632c2281 Merge pull request #8166 from brucejo75/devel
fix for #8160
2016-12-19 12:50:32 -05:00
brucejo
ffd0a50f94 Check for is Array via _.isArray, instanceOf does not work cross window 2016-12-17 08:33:55 -08:00
Sashko Stubailo
8e32da57a1 Update formatting again 2016-12-13 19:25:45 -08:00
Sashko Stubailo
23994623f9 Update README formatting 2016-12-13 19:25:16 -08:00
Ben Newman
84ed04b8f3 Merge pull request #7985 from akvadrako/on_message_hook
add onMessage hook
2016-12-13 19:17:51 -05:00
Ben Newman
83b05896c3 Merge pull request #8142 from abernix/feature/fix-7849-stale-cordova-build
Cordova project preparation must occur before copying to the build
2016-12-13 19:01:49 -05:00
Ben Newman
a439ea1f69 Merge pull request #8081 from fuww/fix-oauth-root-url
Fix oauth ROOT_URL_PATH_PREFIX
2016-12-13 18:58:00 -05:00
Ben Newman
31077c8381 Merge pull request #8151 from abernix/feature/fix-4054-console-corruption
Fix console glitch when using some admin package functions
2016-12-13 18:55:13 -05:00
Ben Newman
95c228c325 Merge pull request #8152 from abernix/fix-5346
`meteor shell` should pass its TTY width to the server on connect
2016-12-13 18:49:37 -05:00
Sashko Stubailo
cf744f800b Update roadmap for december 2016 (#8153) 2016-12-13 14:31:08 -08:00
Jesse Rosenberger
4a16e649cc Fix console glitch when using some admin package functions
Tiny fix for an old issue where the console output would get corrupted when running `meteor admin set-unmigrated` or `meteor admin change-homepage` due to missing newline on `rawInfo` command.

Fixes meteor/meteor#4054
2016-12-13 15:54:10 +02:00
Jesse Rosenberger
1fda39b3a0 Cordova project preparation must occur before copying to the build
This fixes a regression caused by 88d43a0f16 which is demonstrated in meteor/meteor#7849.

Essentially, with the current implementation some Cordova build elements are "stale" when the build is copied.  For example, if you execute a `meteor run ios` and then `meteor build . --server=http://example.com/` (note: `example.com`) the `config.xml` (`<access origin />`), the boilerplate HTML (`__meteor_runtime_config__`) and other elements of the bundle (`Info.plist` on iOS) will still contain the previously used `http://<local_ip>:3000` address instead of `http://example.com` as they should.

Additionally, it would appear that it's impossible to actually checkout a project and immediately run `meteor build` without running `meteor run (android|ios)` first.

Various work-arounds for this seem to exist, such as running `meteor build` twice, or running `meteor run --server=http://production.com` first.

Ultimately, this is occurring because the bundle is being copied before the Cordova `prepareForPlatform` occurs which I believe was not intended.

There is already a test in place which fails without this fix, but marked as `slow` and therefore not executed on CircleCI.  Specifically, `cordova builds with server options` would have caught this.  Forcibly running this test locally now passes with this change.

Fixes meteor/meteor#7849
Fixes meteor/meteor#7291
Fixes meteor/meteor#6756
2016-12-12 17:11:55 +02:00
Jesse Rosenberger
23c52ff002 meteor shell should pass its TTY width to the server on connect
Previously, the width (or "columns") for the readline shell was being obtained on the server.  This causes problems for clients which are connecting to the server which are sized differently.

The client will still have problems if they resize AFTER they are connected to the REPL, but at least they have the option of being a different size.

A more complete solution would be to have the client listen on process.stdout "resize" and pass that to the server when it occurs, but I'm not sure of an easy way to do that with the current communication (perhaps pause-reconfigure-unpause?).

Fixes meteor/meteor#5346
2016-12-12 12:57:16 +02:00
Ben Newman
cf4133c763 Merge branch 'release-1.4.3' into devel 2016-12-07 14:12:42 -05:00
Ben Newman
c076276a11 Merge branch 'devel' into release-1.4.3 2016-12-07 14:11:52 -05:00
Ben Newman
4418acd080 Merge pull request #8133 from GeoffreyBooth/coffeescript-1.12.0
Use CoffeeScript 1.12.0
2016-12-06 20:32:26 -05:00
Sashko Stubailo
400302f0f8 Update LICENSE 2016-12-06 16:17:15 -08:00
Sashko Stubailo
f8b92d0eb9 Update LICENSE 2016-12-06 16:16:29 -08:00
Sashko Stubailo
0fc9d1bc4f Rename LICENSE.txt to LICENSE 2016-12-06 16:15:45 -08:00
Ben Newman
a90e4ee836 Call super.setDiskCacheDirectory to fix coffeescript cache tests. 2016-12-06 19:14:23 -05:00
Zoltan Olah
51f106becb Merge pull request #8128 from abernix/feature/cleanup-old-ci-tests
Remove skipped CI tests which don't exist anymore
2016-12-06 15:23:44 -08:00
Tom Coleman
3c94e69690 Merge pull request #7727 from peerlibrary/stylus-autoprefixer
Added autoprefixer to stylus
2016-12-07 10:16:10 +11:00
Tom Coleman
63c890738d Change log for #7727 2016-12-07 10:15:24 +11:00
Zoltan Olah
8e132121fe Merge pull request #8127 from abernix/feature/meteor-issue-7778
[docs] Clarify docs for handle returned by Meteor.setTimeout/setInterval
2016-12-06 15:13:40 -08:00
Ben Newman
5d0da71e27 Use process.env.METEOR_HEADLESS in CI tests.
This should also fix a bug where Console.isHeadless() was returning false
in tests.

Follow-up to #8037.
2016-12-06 12:47:05 -05:00
Ben Newman
ba5c8ff530 Bump package versions for 1.4.3-beta.1 release. release/METEOR@1.4.3-beta.1 2016-12-06 10:18:45 -05:00
Ben Newman
f42c137f55 Always copy node_modules/.bin into bundle/programs/server/npm.
Fixes #8136.
2016-12-06 10:16:43 -05:00
Geoffrey Booth
3326388d48 Enable Babel cache for CoffeeScript compiler 2016-12-05 18:51:35 -08:00
Geoffrey Booth
f4dbab623b Always pass through the coffee compiler output through ecmascript; the opt-in ES2015+ features are too varied to detect now in CoffeeScript 1.12.0+ 2016-12-04 14:20:46 -08:00
Geoffrey Booth
f749871edc Use CoffeeScript 1.12.0 2016-12-04 13:56:31 -08:00
Jesse Rosenberger
47a3dd526d [docs] Clarify docs for handle returned by Meteor.setTimeout/setInterval
The value passed into from `Meteor.clearTimeout` or `Meteor.clearInterval` is an opaque handle returned by `Meteor.setTimeout` and `Meteor.setInterval` accordingly.

That is to say, on some engines it will be a `Number` and on others an `Object` but you need not worry about the actual type.

Closes meteor/meteor#7778
2016-12-02 18:10:19 +02:00
Jesse Rosenberger
1c62dcc8a5 Remove skipped CI tests which don't exist anymore
Removing thest tests which aren't defined anywhere anymore but the exceptions to skip them are still in place:

* ^mongo - logged (in|out)
* ^logs - logged (in|out)
* ^can't publish package with colons
2016-12-02 16:13:15 +02:00
Ben Newman
b4290d7e17 Bump $BUNDLE_VERSION to 4.7.5 before rebuilding dev bundle. 2016-12-01 17:54:13 -05:00
Ben Newman
f434383c02 Upgrade the npm npm package to version 4.0.2. 2016-12-01 17:53:53 -05:00
Ben Newman
9ee7e46be9 Bump package versions for 1.4.3-beta.0 release. release/METEOR@1.4.3-beta.0 2016-12-01 16:44:48 -05:00
Ben Newman
134fa0d226 Move facebook package to packages/deprecated. 2016-12-01 16:44:43 -05:00
Ben Newman
5d9d06f3bd Update minifier-js shrinkwrap. 2016-12-01 15:50:34 -05:00
Ben Newman
2f3387f364 Merge pull request #8122 from abernix/feature/improve-ci-script
Make CI test runner more defensive and a bit more flexible.
2016-12-01 15:39:11 -05:00
Jesse Rosenberger
8c7232c0f7 Track error codes from all self-test instances and fail accordingly
Since multiple self-tests could run in a series now, this makes sure that when any of them fails, the error is propagated to CircleCI but still lets them all finish.
2016-12-01 19:12:59 +02:00
Jesse Rosenberger
b2e80f5cbc Revert "Reformat the pre-defined tests to not be multiple lines."
This reverts commit 7df3ccaa2195af2628f20752104b331997137b73 which introduced a change which required `bash`.

I don't want to force `bash` for a test runner.
2016-12-01 19:12:59 +02:00
Jesse Rosenberger
6701357c41 Reformat the pre-defined tests to not be multiple lines.
This might be overboard as it adds some additional code but the regex off the screen was midly unpleasant.

One additional benefit to this is that you could have a list of excluded tests stored in a separate file and use:

```
ADDL_SELF_TEST_EXCLUDE="$(cat addl_tests.txt)"
```

(note the importance of double quotes to preserve newlines)
2016-12-01 19:12:58 +02:00
Jesse Rosenberger
b0c6804b63 Allow changes to some CI settings which may vary by environment.
This permits changing TIMEOUT_SCALE_FACTOR using a variable instead of hard-coding it in the script.

Also adds ADDL_SELF_TEST_EXCLUDE to define environment specific tests which must be skipped.

For example, I run my preliminary (personal) Meteor tests on SemaphoreCI, but there is a particular test that just _will not work_.  This allows me to override particulary problematic tests without sed-ing the script.
2016-12-01 19:12:58 +02:00
Jesse Rosenberger
054796f35e Make CI test runner more defensive and a bit more flexible.
This changes the CI script to make sure it runs all tests, regardless of the environment configuration while still allowing flexibility in the size of the container parallelism.

While not having any effect on the Meteor configuration this will now run all 8 test groups across a fewer number of containers, if necessary.

This fixes issues where false-positives are achieved on contributor PRs, like seen on meteor/meteor#7963.  I explained here:

https://github.com/meteor/meteor/pull/7963#issuecomment-264188162

This change will also allow the script to run tests in their entirety if the parallelism configuration is missing, such as when run from a local dev box.
2016-12-01 19:12:54 +02:00
Ben Newman
e804c00e97 Merge pull request #8037 from mitar/headless
Respect METEOR_HEADLESS environment variable.
2016-12-01 10:18:52 -05:00