Commit Graph

15917 Commits

Author SHA1 Message Date
Ben Newman
2a3fcf2e7b Remove optimization that classified all .json files as lazy.
Fixes #6014.
Fixes #6174.
2016-02-11 11:41:38 -05:00
Ben Newman
bd144c4cc6 Properly exclude lazy files when prelinking.
Returning undefined from the _.map callback was leading to problems in
code that iterated over the resulting list.
2016-02-11 11:41:38 -05:00
Ben Newman
143121d644 Call scanner.addInputFiles even if the app is not using modules. 2016-02-09 13:39:33 -05:00
Martijn Walraven
88eda451d8 Merge pull request #6184 from dotansimha/release-1.3
Add default value for cordova run argument - extraPaths (Fixes #6178)
2016-02-09 12:38:40 +01:00
Martijn Walraven
a9abeedbfe Merge branch 'devel' into release-1.3 2016-02-09 11:03:26 +01:00
Sashko Stubailo
61a9d5b3d2 Merge pull request #6190 from fabienb4/patch-1
[Docs] Proper detection of key codes for search
2016-02-08 13:44:12 -08:00
Sashko Stubailo
0c332825bb Merge pull request #6171 from queso/contributing-pr-doc-change
First draft for sharing new ownership of code sections in Meteor.
2016-02-08 09:53:20 -08:00
Martijn Walraven
9a193c98d6 Reserve dev bundle version for cordova-improvements 2016-02-08 10:47:03 +01:00
Martijn Walraven
1f13515e4c Reserve dev bundle version for cordova-improvements 2016-02-08 10:30:52 +01:00
Martijn Walraven
60b8e926d7 Merge pull request #6181 from mitar/precise-cordova
Make clear those are Cordova platforms
2016-02-08 10:24:58 +01:00
Martijn Walraven
1bdaa04813 Merge pull request #6179 from mitar/webapp
Wrap connect middleware function into a Fiber
2016-02-08 10:21:11 +01:00
Martijn Walraven
fc508df990 Merge pull request #6101 from mitar/patch-25
Fixed manifest.json path on Windows
2016-02-08 10:17:34 +01:00
Martijn Walraven
aff1d4c17c Merge pull request #6060 from mitar/patch-23
Allow HTTP OPTIONS method to correctly support CORS preflight
2016-02-08 10:16:57 +01:00
Martijn Walraven
28b72f6caf Merge pull request #6059 from mitar/patch-22
Files without cache busters should not be set to cacheable
2016-02-08 10:16:12 +01:00
Fabien Blanchard
9e498b404a [Docs] Proper detection of key codes for search
Avoid opening search on function (FN) keys press (`String.fromCharCode()` returns letters with them).
2016-02-07 18:14:02 -06:00
Josh Owens
b782d187bd Addressing a few concerns. 2016-02-07 13:50:20 -05:00
Dotan Simha
84316073f9 Add default value for cordova run argument - extraPaths 2016-02-07 16:13:36 +02:00
Mitar
50dfce3a5d Make clear those are Cordova platforms. 2016-02-06 22:04:02 -08:00
Mitar
6bf646fd48 Wrap connect middleware function into a Fiber.
Fixes: #6170
2016-02-06 13:17:49 -08:00
Ben Newman
3405bb542c Bump 1.3 beta release numbers. 2016-02-05 19:44:36 -05:00
David Greenspan
7d639dc013 tools/PERFORMANCE.md 2016-02-05 16:41:32 -08:00
Ben Newman
546bed76b9 Bump $BUNDLE_VERSION to 0.5.24. 2016-02-05 18:49:27 -05:00
Ben Newman
c23a001d98 Upgrade dev bundle npm packages. 2016-02-05 18:49:26 -05:00
Ben Newman
35a02864af Allow client modules to be imported by server modules. 2016-02-05 18:37:54 -05:00
Josh Owens
af5f9c7869 *sigh* appropriate. 2016-02-05 17:38:31 -05:00
Josh Owens
5f78b892e1 Tweaks from @mitar 2016-02-05 17:36:59 -05:00
Ben Newman
ecf4fdb7b4 Update the package skeleton files to use modules. 2016-02-05 17:31:58 -05:00
Josh Owens
07b85772e1 First draft for sharing new ownership of code sections in Meteor. 2016-02-05 17:13:16 -05:00
Ben Newman
c9534b8156 Add a test that .es5.js files are not transpiled.
Part of #5782.
2016-02-05 17:03:50 -05:00
Ben Newman
ae90250f80 Don't assume strict mode when parsing ecmascript files.
This will require rebuilding the dev bundle before the next release.
2016-02-05 16:38:40 -05:00
Ben Newman
6d46ac6125 Add a basic test of import {Meteor} from meteor/meteor. 2016-02-05 16:38:40 -05:00
David Greenspan
d05db2b327 Fix PVP tests 2016-02-05 12:13:42 -08:00
David Greenspan
d6e9921bbb Try to constraint-solve the previousSolution first
To avoid solving the full constraint-solver problem when you start your
app with a previousSolution (i.e. .meteor/versions), we first try to
prove that .meteor/versions is correct as far as we can tell while only
loading the package versions mentioned there.

When it works, it saves both disk I/O and logic-solving time, starting
at a couple seconds and potentially much more.

Everything still works if .meteor/versions is missing, or partially or
totally invalid, or mentions package versions that need to be fetched in
a catalog update first, etc.
2016-02-05 12:13:33 -08:00
David Greenspan
bd213e143b Print trace on error in webapp boilerplate 2016-02-05 10:18:01 -08:00
David Greenspan
6acaa57398 Hook "Updating package catalog" for profiling 2016-02-05 10:04:42 -08:00
David Greenspan
601cfbcebd Don't re-parse versions during sorting; profiling
- We don't want to do a bunch of parsing *per comparison* when sorting
  a list of package version strings.  package-version-parser's `compare`
  (and server's `compare`, which it uses) both accept either a string
  or a parsed record.  By parsing explicitly with memoization, we avoid
  a super-linear blow-up in the amount of parsing.  This'll save someone
  half a second, at least.
- Adjust profiling hooks and messages
- Expose `Profile` to isopackets
2016-02-05 10:04:31 -08:00
David Greenspan
05ac1c1df2 Don't generate line numbers for tool and server js
When we link files and annotate them with those right-justified line
number comments, it blows up the file size by 2-3x, increasing the time
to copy the files and even for Node to parse them.  No user is ever
likely to see a raw generated server-side file, anyway.
2016-02-05 06:46:51 -08:00
David Greenspan
9696ee05a7 Remove unnecessary source map generation
There's no need to generate and parse a source map here, when the
`!smc` case is already handled below, and the header is already
taken into account.

Not sure why we ever added this:
e0fc1081b5
2016-02-05 05:42:52 -08:00
David Greenspan
58534baa80 ImportScanner: cache file stats and package.jsons
This helps performance quite a bit, taking what could otherwise be (say)
10 seconds down to a couple seconds in ImportScanner for an app that
imports a thousand files.
2016-02-05 03:40:49 -08:00
David Greenspan
0a22393c90 Profiler: Encode entry keys a little faster
Don't want too much overhead in there.
2016-02-05 02:30:28 -08:00
David Greenspan
2afe4f5767 files: do synchronous stat
It's a lot faster!  Checking if a WatchSet is up-to-date or looking
for imported modules was dominated by stat overhead.
2016-02-05 01:46:47 -08:00
David Greenspan
e50b182772 Avoid infinitely re-running the app on error
Bump up the crashCount reset delay from 3 seconds to 8 seconds.

If the delay is smaller than app start-up time, then an app that
crashes at start-up will be treated as an app that crashed while
running and will be automatically restarted, and this will lead to
an infinite loop of restarting.  Making the delay longer just increases
the time right after app start where a crash counts towards the max of
three restarts in a row.  For example, if we upped the delay to 60
seconds, then an app that crashed in its first minute would restart but
gain a crashCount of 1, and if there were two more crashes within the
first minute of running (without another crash *not* within the first
minute to reset the counter), the app would fail to automatically
restart.

This whole mechanism is a little janky and was written way way back.
The number 3 was previously 2, but app start-up got a little bit slower.
Hopefully the number 8 will last us until this code is replaced.
2016-02-05 01:18:17 -08:00
David Greenspan
5e6a6963af files.copyFile: don't stat again if have mode
we were already passing the mode of `from` into `files.copyFile`
in at least one place, but `files.copyFile` was dropping it on
the floor.  now we use it avoid doing a second stat.

Also, list copyFile in the profiler report.  copyFile does its own
custom file I/O, so it didn't show up as a readFile or writeFile
which are automatically profiled.
2016-02-05 00:55:26 -08:00
David Greenspan
2b1b95dd1b Profiler: show counts for hot leaves
we put a count in "other $foo" entries now so that you can
see them under hot leaves, but we still don't show the count
in the hierarchical report.
2016-02-05 00:52:31 -08:00
Ben Newman
f094c9608b Reserve dev bundle version for not yet released Meteor 1.3. 2016-02-05 00:09:40 -05:00
Ben Newman
b7c48ee8ed Bump 1.3 beta release numbers. release/METEOR@1.3-modules-beta.7 2016-02-04 23:48:45 -05:00
Ben Newman
7e68dacc3c Stop passing unnecessary options to Babel.parse in js-analyze.js. 2016-02-04 23:48:44 -05:00
Ben Newman
6bfb19b700 Fix Babel.compile call in isopack.js. 2016-02-04 23:46:21 -05:00
Ben Newman
8e5cb81138 Bump $BUNDLE_VERSION to 0.5.23. 2016-02-04 23:17:03 -05:00
Ben Newman
7fb2ffb945 Stop using reserved word 'package' in logic_tests.js. 2016-02-04 23:13:02 -05:00