Commit Graph

20904 Commits

Author SHA1 Message Date
Ben Newman
05d62dbf9e Bump package versions for 1.6.2-beta.14 release. release/METEOR@1.6.2-beta.14 2018-03-27 12:41:58 -04:00
Ben Newman
efdc66d614 Merge branch 'devel' into release-1.6.2 2018-03-27 12:15:11 -04:00
Ben Newman
ddaa6d1284 Clean up History.md entries re: Mongo, cordova-plugin-meteor-webapp. 2018-03-27 12:12:10 -04:00
Cyrille Colin
cb525f37ae update cordova-plugin-meteor-webapp dependency to 1.6.0 (#9761) 2018-03-27 12:06:09 -04:00
Ben Newman
c30bdbca1f Merge pull request #9771 from meteor/compile-symlinked-node_modules
Allow selective compilation of packages and modules within node_modules.
2018-03-27 12:05:24 -04:00
Ben Newman
61226bc299 Reword to avoid implying that meteor npm install ... is special. 2018-03-27 10:16:24 -04:00
Ben Newman
e24dadca54 Expand History.md entry about selective node_modules compilation. 2018-03-27 10:10:23 -04:00
Ben Newman
602dffb8b1 Mention selective compilation of npm packages in History.md. 2018-03-26 18:03:31 -04:00
Ben Newman
9401f0d572 Add tests of selective node_modules compilation using symlinks. 2018-03-26 14:51:51 -04:00
Ben Newman
d35987d929 Enable selective compilation of node_modules via symlinking.
If a package in node_modules needs to be compiled for older browsers,
simply symlink the package directory into your application somewhere, and
then import the package as you normally would.

Because of the symlink, code within the package will be compiled as if it
was part of your application, and any imports that refer to modules in the
package will automatically use the compiled code rather than the raw code
from node_modules.

Note that you can also symlink individual files to make them be compiled
like application modules, rather than linking an entire package directory.

Creating symlinks could be considered a form of configuration, but
otherwise this is a zero-configuration solution to selectively compiling
packages within node_modules, which has been something of a holy grail in
the JavaScript community lately.

https://github.com/meteor/meteor-feature-requests/issues/6
2018-03-26 14:47:38 -04:00
Ben Newman
970d58409f Move realpathOrNull into tools/fs/files.js. 2018-03-26 12:04:13 -04:00
Ben Newman
9c95b78d9e Upgrade install.js package to avoid calling Module.prototype.useNode.
f69158f0a1
2018-03-26 12:04:13 -04:00
Ben Newman
ebd84317d8 Decompose _readDepFile helper from ImportScanner#_scanFile. 2018-03-26 12:04:13 -04:00
Ben Newman
0fca4c56aa Fix handling of old files in ImportScanner#_addFile. 2018-03-26 12:04:13 -04:00
Ben Newman
1757a69d8b Generate stubs that call module.useNode() for server node_modules.
Once this logic is established, the install.js library will no longer need
to know anything about module.useNode():
6412f4aabb/install.js (L322-L325)
2018-03-26 12:04:12 -04:00
Ben Newman
c6c92255e5 Relax options.from precondition in Builder#copyNodeModulesDirectory. 2018-03-26 12:04:12 -04:00
Ben Newman
e7ad5d2a42 Call files.cp_r with { preserveSymlinks: true } in more places.
Now that symlinks can be used to enable selective compilation of
node_modules, it's important to preserve them.
2018-03-26 12:04:12 -04:00
Ben Newman
e50da2f367 Merge branch 'devel' into release-1.6.2 2018-03-23 21:17:53 -04:00
Ben Newman
db1c03e3eb Merge pull request #9768 from meteor/issue-9738-multiple-package-node_modules
Fix copying/symlinking of node_modules directories during build.
2018-03-23 19:23:31 -04:00
Ben Newman
22e3f99565 Fix copying/symlinking of node_modules directories during build.
The bulk of this commit implements `builder.copyNodeModulesDirectory` to
allow more than one `node_modules` directory to be copied to the same
destination with as much safe symlinking as possible.

However, the crux of the fix for #9738 is the removal of the call to
`builder.generateFilename`, which deserves additional explanation.

If multiple directories are copied to the same output path by the builder,
in some cases it makes sense to ensure distinct directory names by adding
numeric suffixes to some of the directories.

In general, `builder.generateFilename` can get away with this renaming
only if the exact names of the directories are an implementation detail.

However, the code changed by this commit was altering the names of
`node_modules` directories whenever a package had both an `Npm.depends`
and a local `node_modules` directory.

Not only is it totally invalid to change the name of a `node_modules`
directory, but there is also no harm in copying the contents of multiple
`node_modules` directories into one final directory called `node_modules`.

Should fix #9738.
2018-03-23 18:59:32 -04:00
Ben Newman
ee32e1328e Merge pull request #9762 from MKRazz/remove-oauth-fiber
Remove oauth fiber import
2018-03-23 09:25:11 -04:00
Matt
e0c800587c Bump oauth Meteor package version to 1.2.3. 2018-03-22 17:19:24 -04:00
Matt
42983d7063 Removed Fiber import from oauth package.
With commit 857edc2, Fiber is no longer used in oauth server so it is no longer necessary to import.
2018-03-22 17:18:34 -04:00
Ben Newman
eead9c100d Bump package versions for 1.6.2-beta.13 release. release/METEOR@1.6.2-beta.13 2018-03-21 15:29:53 -04:00
Ben Newman
339f128bd4 Merge branch 'devel' into release-1.6.2 2018-03-21 15:23:01 -04:00
Jesse Rosenberger
b7ea617838 Bump minimongo package version to 1.4.4. 2018-03-21 21:11:44 +02:00
Jesse Rosenberger
69e488b139 Bump $BUNDLE_VERSION to 8.9.26 before rebuilding dev bundle. 2018-03-21 20:31:49 +02:00
Jesse Rosenberger
39030204a9 Merge branch 'hwillson-mongo-3.6-upgrade-with-test-fix' into devel 2018-03-21 20:24:37 +02:00
Hugh Willson
84e0d944dc Update to use latest Mongo 3.6.3 and 3.2.19 versions 2018-03-21 19:27:04 +02:00
Hugh Willson
57ef6e9cc4 Add mention of db fix when jumping back to older versions 2018-03-21 19:27:04 +02:00
Hugh Willson
9db6a437bc Add PR link to History.md 2018-03-21 19:27:04 +02:00
Hugh Willson
7eaed1b43a Add $v operator to fix issue #9623 2018-03-21 19:27:04 +02:00
Hugh Willson
ec840e1e0d Removed the now invalid History entry 2018-03-21 19:27:03 +02:00
Hugh Willson
aca266d1f5 Add back in the missing History entry 2018-03-21 19:27:03 +02:00
Hugh Willson
824d2d613b Adjust accounts connection close delay for tests
The accounts system `logoutOtherClients` method is using
a connection close delay to make sure clients have a chance
to get updated tokens, before older tokens are removed.
Certain tests are setting this delay to 0, to help speed
things up. The Meteor Mongo 3.6 changes have brought back in
the need to use Mongo journaling, since the ability to disable
journaling has been deprecated by Mongo. This means there is
now a slight performance hit on certain Mongo operations,
due to the increased time needed to cover the write to disk.
This slight performance hit is causing the tests that use the
0 connection close delay to fail, since they are not waiting
long enough for clients to get updated tokens, before they're
removed. These changes increase the test connection close
delay, to fix the failing tests.
2018-03-21 19:27:03 +02:00
Hugh Willson
542ad06b75 Revert the revert of "Upgrade to Mongo 3.6 (#9533)"
This reverts commit 85d74f8d2b.
2018-03-21 19:27:03 +02:00
MKRazz
857edc2079 Removed fiber wrapper around OAuth middleware. (#9740)
* Removed fiber wrapper around OAuth middleware.

With commit 3b18863, connect handlers are guaranteed to run in a fiber, making the fiber wrapper in the OAuth middleware superfluous. Additionally, because it manually wraps the middleware in a Fiber directly, it is losing access to the properties stored in the existing fiber (meteor/meteor-feature-requests#156).

* Bump oauth Meteor package version to 1.2.2.
2018-03-21 12:05:13 -04:00
Ben Newman
f9050936fa Merge pull request #9756 from meteor/update-meteor-babel-to-7.0.0-beta.42
Update meteor-babel to 7.0.0-beta.42.
2018-03-21 12:01:05 -04:00
Hugh Willson
d2db339087 Move markdown and showdown to packages/deprecated (#9737) 2018-03-21 11:52:01 -04:00
James Burgess
3b7c237ef8 Improve CircleCI caching strategy (#9728) 2018-03-21 11:50:56 -04:00
Pravdomil
ecf726ebf3 Make _debug reporting more consistent (#9678) 2018-03-21 11:43:48 -04:00
Ben Newman
41b0b309c6 Bump @babel/runtime to latest version in various package[-lock].json files. 2018-03-20 21:13:52 -04:00
Ben Newman
228e5d8090 Bump $BUNDLE_VERSION to 8.9.25 before rebuilding dev bundle. 2018-03-20 19:57:01 -04:00
Ben Newman
4b2d6c22bc Update meteor-babel to version 7.0.0-beta.42.
https://github.com/babel/babel/releases/tag/v7.0.0-beta.41
https://github.com/babel/babel/releases/tag/v7.0.0-beta.42
2018-03-20 19:57:00 -04:00
Ben Newman
5fba1fd3e2 Bump meteor package version to 1.8.6 to publish with Meteor 1.6.0.1.
cc @abernix
2018-03-17 12:11:07 -04:00
Ben Newman
39ff1f413c Revert "Allow EnvironmentVariable#withValue callbacks to return Promises." (#9750)
This reverts commit 573f14f171.

As discussed with @glasser, this change may have been more disruptive than
helpful (e.g. #9730) and could also have negative performance
consequences. Since we don't actually rely on `withValue` awaiting the
result of the callback (yet), it seems safest to revert this change, and
possibly add a different method called something like `withAwaitedValue`
at some later time, if necessary.

Fixes #9730.
2018-03-17 02:59:28 -04:00
Cyrille Colin
db31fbc606 Open Xcode project folder instead of project file (#9724) 2018-03-15 19:49:22 -04:00
Ben Newman
46257bad26 Update Roadmap.md to say more about Meteor 1.6.2. 2018-03-09 13:27:40 -05:00
Ben Newman
3ee4b61b1d Bump package versions for 1.6.2-beta.12 release. release/METEOR@1.6.2-beta.12 2018-03-07 14:39:22 -05:00
Ben Newman
cc77e963c5 Merge branch 'devel' into release-1.6.2 2018-03-07 12:31:43 -05:00