Commit Graph

19645 Commits

Author SHA1 Message Date
Ben Newman
8822e90f87 Bump package versions for 1.6-beta.22 release. release/METEOR@1.6-beta.22 2017-08-16 14:17:03 -04:00
Ben Newman
52e695ddd2 Bump $BUNDLE_VERSION to 8.4.0 before rebuilding dev bundle. 2017-08-16 14:10:09 -04:00
Ben Newman
82db51f216 Upgrade Node to version 8.4.0.
Most notable new feature: HTTP/2 support!

https://nodejs.org/en/blog/release/v8.4.0/
2017-08-16 14:09:13 -04:00
Ben Newman
f04545accf Merge pull request #9021 from meteor/abernix/fix-windows-npm-1.6
Changes to npm installation methods for npm@5 / Meteor 1.6.
2017-08-16 11:38:55 -04:00
Jesse Rosenberger
fe9401a5ef Observe requirements for running .cmd scripts on Windows.
The `child_process` documentation indicates that .cmd scripts (such as
the `npm.cmd` script for npm) must be started within a shell, such as
cmd.exe.

While it was tempting to switch this to use `child_process`'s `spawn`,
which supports a `shell` option, it would have required us to buffer
our own stdout/stderr output via `data` event handlers.

Ref: https://nodejs.org/api/child_process.html#child_process_spawning_bat_and_cmd_files_on_windows
2017-08-16 00:59:07 +03:00
Jesse Rosenberger
f68de59464 Stop setting NPM_CONFIG_PREFIX in getEnv.
This was causing problems with `npm@5`, but realistically it may not be
be necessary anymore since `npm@5` has a much smarter global,
self-healing `cacache`.
2017-08-15 14:16:53 -07:00
Ben Newman
b290bcaa1b Bump package versions for 1.6-beta.21 release. release/METEOR@1.6-beta.21 2017-08-15 12:27:21 -04:00
Ben Newman
f405c443fe Move coffeescript to non-core so we don't have to publish a beta.
@GeoffreyBooth and I are still deciding exactly what to do with the
coffeescript package in #8960, but in the meantime I need to publish
another 1.6 beta, and I'd like to avoid publishing a beta version of
coffeescript along with it.
2017-08-15 12:26:57 -04:00
Ben Newman
8e10361721 Bump package versions for 1.6-beta.20 release. 2017-08-14 22:53:13 -04:00
Ben Newman
f53288efb7 Merge branch 'release-1.5.2' into release-1.6 2017-08-14 22:37:58 -04:00
Ben Newman
3c98a605ad Merge branch 'devel' into release-1.5.2 2017-08-14 22:35:15 -04:00
Ben Newman
34b0237364 Avoid api.export("process") in modules package.js.
Declaring a package-local variable called `process` in the `modules`
package causes uglify-js not to replace `process.env.NODE_ENV` with a
string literal value in any `node_modules` contained by the `modules`
package, which causes React Dev Tools to display a warning.
2017-08-14 22:32:19 -04:00
Ben Newman
d727ad02a7 Bump coffeescript package version to 1.13.0.
This Meteor package version does not need to track the npm version of the
coffeescript package, and probably should not change as often as the
version of the packages/non-core/coffeescript-compiler package.
2017-08-14 18:34:55 -04:00
Geoffrey Booth
eb3c7dd344 Move coffeescript and coffeescript-test-helper packages back into core. (#8960)
They depend on core packages like caching-compiler, but coffeescript-compiler
can remain in non-core, so it can update more frequently as npm coffeescript
gets updated.
2017-08-14 18:07:04 -04:00
Geoffrey Booth
8344cbf59d Split coffeescript package into coffeescript / coffeescript-compiler. 2017-08-14 13:40:09 -04:00
Geoffrey Booth
491cbc3bfe Instructions for how to test the coffeescript package 2017-08-14 13:40:09 -04:00
Geoffrey Booth
eb78811070 Bump CoffeeScript version 2017-08-14 13:40:09 -04:00
Ben Newman
86b82169d0 Replace for-in loops in minimongo package with Object.keys/forEach.
This fixes a problem reported by @arggh:
https://github.com/meteor/meteor/pull/8913#issuecomment-322048927

The problem appears to have been introduced by this commit:
2c5094fa0c

The reason this commit was problematic is that it turned several
Object.keys/forEach loops into for-in loops, which caused a few unchanged
return statements to take on a new meaning: instead of "continuing" the
loop by returning from the forEach callback function, the return
statements now returned from the enclosing function:
2c5094fa0c (commitcomment-23638205)
2c5094fa0c (commitcomment-23638216)

Besides this refactoring hazard, what else is wrong with for-in loops?

First, for-in loops iterate over not only own but also inherited keys,
which makes them not exactly equivalent to Object.keys/forEach, which
iterates over only own keys. Another way to address that problem is to
initialize this.queries to Object.create(null) instead of {} (which I've
also done in this commit), so that there is no prototype chain.

Second, for-in loops are a trigger for deoptimization in V8:
https://github.com/petkaantonov/bluebird/wiki/Optimization-killers#5-for-in

Since 2c5094fa0c was supposed to be about
improving performance, and these changes introduced some logical problems
as well, I think it's best that we avoid for-in loops.
2017-08-14 13:35:35 -04:00
Ben Newman
2dabbf0b60 Make timing of minimongo observeChanges test more reliable. 2017-08-14 12:30:16 -04:00
Ben Newman
9ba9a359f5 Update Blaze submodule to latest master version.
Specifically, this version corresponds to the branch
https://github.com/meteor/blaze/commits/revert-html5-tests, which is based
on the current master branch tip
621608c823
with one additional commit:
6a82100e09.

cc @mitar @abernix
2017-08-14 12:19:36 -04:00
Lee Pender
092c0af3dc Add sizes necessary for legacy iOs icon support. (#9012) 2017-08-14 11:31:26 -04:00
Ben Newman
3bdc0bb4eb Move standard-minifiers self-test timeout *after* slow run.match. 2017-08-11 19:36:32 -04:00
Ben Newman
a7e8e27ca7 Move standard-minifiers self-test timeout *after* slow run.match. 2017-08-11 19:36:01 -04:00
Ben Newman
73b43690ef Bump package versions for 1.6-beta.19 release. release/METEOR@1.6-beta.19 2017-08-11 17:28:19 -04:00
Ben Newman
688d9211b7 Fix Mongo hint test by waiting for collection.createIndex Promise. 2017-08-11 16:28:33 -04:00
Ben Newman
fff7d62b38 Fix Mongo hint test by waiting for collection.createIndex Promise. 2017-08-11 16:28:15 -04:00
Jesse Rosenberger
073fb0c1fd Remove duplicated import of ../tool-env/install-runtime.js.
From the d16552112e merge of `release-1.5.2`.
2017-08-11 22:53:32 +03:00
Ben Newman
0b9ea6e2c5 Merge branch 'release-1.5.2' into release-1.6 2017-08-11 15:52:26 -04:00
Ben Newman
18c14ec899 Bump package versions for 1.5.2-beta.10 release. release/METEOR@1.5.2-beta.10 2017-08-11 15:26:02 -04:00
Ben Newman
0e723593a6 Merge branch 'devel' into release-1.5.2 2017-08-11 15:23:39 -04:00
Ben Newman
93d0c5f2ba Merge pull request #9007 from meteor/immediately-dirty-optimistic-functions
Immediately dirty optimistic functions when relevant paths modified.
2017-08-11 15:22:49 -04:00
Ben Newman
4dfa9c3ae2 Add METEOR_WATCH_PRIORITIZE_CHANGED=false back to two self-tests. 2017-08-11 15:21:50 -04:00
Ben Newman
837f12c3c4 Add additional timeouts to 'update during run' self-test. 2017-08-11 15:21:50 -04:00
Ben Newman
56aea02723 Stop setting METEOR_WATCH_PRIORITIZE_CHANGED=false in self-tests.
Assuming #9007 fixes the file watcher timing problems, it should no longer
be necessary to disable the optimizations of #8866.
2017-08-11 15:21:50 -04:00
Jesse Rosenberger
5c011253f7 Change "expected" for meteor list command-line test.
This test doesn't actually run normally, as it's quite slow, but
started failing with the changes to #8936.  This fixes that!
2017-08-11 21:17:41 +03:00
Ben Newman
0f9c58d6b9 Immediately dirty optimistic functions when relevant paths modified.
Should fix #8988 and #8942.

Now that #8866 is the default behavior, it can take up to 5000ms for
changes to files modified during the build process to be noticed.

Before #8866, when we called e.g. files.writeFile(path), a native file
watcher would notice the change immediately, almost always before the
build process read the file again. This was definitely racy, but we were
getting away with it consistently... until #8866.

I was able to reproduce the problem in #8988 by running

  echo some-local-package-name >> .meteor/packages

in an app with a local package of the given name. After debugging the
endless rebuild cycle, I found that .meteor/versions was being rewritten
by files.writeFile during the build process, but the file watching system
was not noticing the change in time to prevent watch.isUpToDate from
returning true. The change was finally detected when restarting the
Watcher responsible for .meteor/versions, which of course triggered
another rebuild, so the same problem kept happening again and again.
2017-08-11 13:57:16 -04:00
Ben Newman
184b21a72b Talk about blockers to Meteor adoption in Roadmap.md 2017-08-11 13:50:34 -04:00
Sashko Stubailo
132728ee73 Update Roadmap.md 2017-08-11 10:29:35 -07:00
Sashko Stubailo
c512eee3b6 Add reference to feature request issue (#9010) 2017-08-11 10:28:51 -07:00
Sashko Stubailo
348223cae8 Add React section to Roadmap.md (#9008) 2017-08-11 13:20:53 -04:00
Ben Newman
97469911d8 Updates to Roadmap.md 2017-08-11 13:19:27 -04:00
Jesse Rosenberger
a581fa644b Update ISSUE_TEMPLATE.md 2017-08-11 16:20:07 +03:00
Jesse Rosenberger
859e17af0d Update ISSUE_TEMPLATE.md
In retrospect, I could have tested this new issue template formatting by copying and pasting into the issue textarea, but I didn't.  Sorry for the incremental commits on `devel`.  This should be the last one. :)
2017-08-11 16:18:22 +03:00
Jesse Rosenberger
aa0da9afa9 Update ISSUE_TEMPLATE.md
Formatting.
2017-08-11 16:15:24 +03:00
Jesse Rosenberger
a27ab661eb Update ISSUE_TEMPLATE.md 2017-08-11 16:12:38 +03:00
Ben Newman
2c042016fe Bump package versions for 1.6-beta.18 release. release/METEOR@1.6-beta.18 2017-08-10 19:05:35 -04:00
Ben Newman
630c2595e6 Add a test that code after an await runs in a Fiber.
Part of #9002.
2017-08-10 18:58:42 -04:00
Ben Newman
5e4543b271 Bump $BUNDLE_VERSION to 8.3.1 before rebuilding dev bundle. 2017-08-10 18:46:24 -04:00
Ben Newman
5669e05431 Update meteor-babel to version 0.24.6 to fix #9002. 2017-08-10 18:45:39 -04:00
Ben Newman
d16552112e Merge branch 'release-1.5.2' into release-1.6 2017-08-10 16:16:03 -04:00