Commit Graph

711 Commits

Author SHA1 Message Date
David Glasser
d310c3e3e6 Upgrade UglifyJS to 2.4.20 from 2.4.17
Fixes #3019.
2015-04-17 12:30:10 -07:00
David Glasser
aa18a9af01 History update 2015-04-14 21:59:36 -07:00
David Glasser
6a22e377de Use per-message websocket compression
(This is the third attempt to enable this. I believe as of
permessage-deflate 0.1.3, it works properly.)

By default, we attempt to use this for every websocket message on both
client and server.

On the server, we provide the SERVER_WEBSOCKET_COMPRESSION environment
variable to control compression. If $SERVER_WEBSOCKET_COMPRESSION is
set, then it must be valid JSON. If it represents a falsey value, then
we do not use permessage-deflate at all; otherwise, the JSON value is
used as an argument to deflate's configure method; see
https://github.com/faye/permessage-deflate-node/blob/master/README.md

We do not provide a way to use it only on some messages. The underlying
spec allows this but permessage-deflate does not; see
https://github.com/faye/permessage-deflate-node/issues/2

We do not provide a mechanism to control compression parameters on the
client side.  The assumption is that the common reason to care about
compression parameters is to control server per-connection memory
usage. (The noContextTakeover configuration parameter should save some
memory and still allow for some compression, for example.)

Addresses #3007 (which will not be fixed until this change is deployed
on the package server as well).
2015-04-10 13:37:58 -07:00
Sashko Stubailo
e75875e369 Merge branch 'master' into devel
Conflicts:
	History.md
	docs/client/data.js
	tools/run-mongo.js
	tools/tests/mongo.js
2015-04-06 11:30:20 -07:00
Sashko Stubailo
c7471b4b16 Update History.md 2015-04-06 10:45:49 -07:00
Slava Kim
cdaaa6b0eb Merge branch 'master' into devel 2015-04-02 14:43:23 -07:00
Slava Kim
7718e75679 Add a history.md record for #4097 2015-04-02 13:55:47 -07:00
Sashko Stubailo
e57c668568 Add History.md entries for recent PRs 2015-04-02 10:59:23 -07:00
David Glasser
44d387c3ab Detect 'drop database' in oplog observe driver
Fixes #3847.
2015-04-01 15:55:48 -04:00
David Glasser
a1e002a250 meteor run sees changes to .meteor/versions
`meteor run` doesn't always write changes to `.meteor/versions`: it only
does so if its release (or checkout-ness) matches `.meteor/release`.  So
it preferred to just remember the value of `.meteor/versions` from
rebuild to rebuild rather than forgetting what it knew and re-reading
the possibly-not-updated file.

However, if some other process changes `.meteor/versions`, it would
ignore that change.  With this fix, if `.meteor/versions` changes then
that is considered to be the previous versions list, not the last
version list from the same process.  For example, this would commonly
happen due to using `meteor update` to update packages (without changing
the tool, which would cause the runner to stop).

Fixes #3582.
2015-04-01 14:39:46 -04:00
David Glasser
0371c4ff26 Allow bare files on the server
This restriction was originally in place because we did not know of a
use case for bare files on the server.  The main use case for bare files
is putting pre-existing files in your app which expect top-level `var`s
to be "exported", which is common in browsers but not in Node.

However, there is a use case for this on the server: putting
pre-existing files that were originally written with clients in mind but
which function fine on the server into your server code. So we'll relax
the restriction.

Fixes #3681.
2015-04-01 12:36:42 -04:00
David Greenspan
8557d054dc Merge branch 'master' into devel 2015-03-31 16:36:15 -07:00
Sashko Stubailo
497a26de49 Fix typo 2015-03-31 11:29:04 -07:00
Sashko Stubailo
d899f9a672 Improve History.md for 1.1 2015-03-31 11:27:54 -07:00
David Glasser
911a92a41d Update contributors list 2015-03-31 13:37:54 -04:00
David Glasser
89c22bf634 Fix crash on duplicate files in a package
Adding the same file twice in the same package is now an
error. Previously, this could either lead to the file being included
multiple times (eg, JS), or to a build time crash (eg, client-side
assets).
2015-03-31 10:52:43 -04:00
David Glasser
31b7744000 History note for #3999 2015-03-31 10:52:42 -04:00
David Glasser
26d4a18507 deregisterService -> unregisterService (#4014) 2015-03-27 23:35:23 -07:00
Slava Kim
46d0e33b56 Add a history.md record for fixing #4049 2015-03-27 22:59:15 -07:00
David Glasser
82884c4ec6 History update 2015-03-27 12:21:43 -07:00
David Glasser
ba95469aa9 History update for recent changes 2015-03-27 12:00:02 -07:00
David Glasser
073dd7e1e3 Move an initial version of 1.1 History over
We were mixing up things on devel but not 1.1 with things in 1.1 (like
the Velocity change).
2015-03-27 11:57:29 -07:00
David Greenspan
dcdfea3a96 Improve <style> tag parsing and add tests 2015-03-26 19:07:30 -07:00
David Greenspan
ae09e3fae6 History.md entry for Blaze bug fix 2015-03-26 10:04:22 -07:00
Slava Kim
c9fd50d0f4 Merge branch 'tracker-errors' into release-1.1 2015-03-25 19:33:56 -07:00
Slava Kim
858813c2ef Add history.md remarks for #3822 2015-03-25 19:33:02 -07:00
Sashko Stubailo
21723a0668 Update heading 2015-03-25 17:00:47 -07:00
Sashko Stubailo
8a27c44464 Add Windows to History.md 2015-03-25 17:00:02 -07:00
Sashko Stubailo
4ff636c7df Merge branch 'master' into release-1.1
Conflicts:
	History.md
2015-03-25 16:07:42 -07:00
Sashko Stubailo
39b11ca456 Merge branch 'master' into devel
Conflicts:
	History.md
2015-03-25 14:58:21 -07:00
Sashko Stubailo
0b2d6b40c0 Update release date in History.md 2015-03-25 14:57:29 -07:00
Jonas Aschenbrenner
63df4b1ce5 Velocity timing and mirror url fix
Velocity has visited the mirror sometimes before
it is ready. With this new check that is already
used in the testing frameworks this no longer
happens.

This commit also handles the upcoming breaking
change regarding the rootUrl of the mirror.
See: https://github.com/meteor-velocity/velocity/issues/260
2015-03-24 13:53:40 -07:00
David Glasser
4506fc3f93 History update for 1.0.5 2015-03-23 14:59:28 -07:00
Sashko Stubailo
aab90ea7c2 Merge branch 'windows-preview-0.2.1' into release-1.1
Conflicts:
	History.md
	packages/accounts-password/package.js
	packages/autoupdate/package.js
	packages/constraint-solver/package.js
	packages/less/package.js
	packages/meteor-tool/package.js
	packages/minifiers/package.js
	packages/observe-sequence/package.js
	packages/package-version-parser/package-version-parser.js
	packages/package-version-parser/package.js
	packages/templating/package.js
	packages/tracker/package.js
	scripts/admin/meteor-release-experimental.json
	tools/selftest.js
2015-03-20 17:52:29 -07:00
David Glasser
87a0366352 Merge branch 'master' into devel for 1.0.4.2 2015-03-20 11:34:44 -07:00
David Glasser
9e2539bcd1 1.0.4.2 2015-03-20 11:13:06 -07:00
David Glasser
601f007922 Merge branch 'master' into devel 2015-03-18 00:56:51 -07:00
David Glasser
92ba69e860 1.0.4.1 2015-03-18 00:29:35 -07:00
David Glasser
21bdac8734 Merge branch 'master' into devel
Conflicts:
	History.md
	packages/accounts-password/package.js
	packages/accounts-password/password_server.js
	packages/constraint-solver/package.js
	packages/meteor-tool/package.js
	packages/non-core/npm-bcrypt/package.js
	packages/package-version-parser/package-version-parser-tests.js
	packages/package-version-parser/package-version-parser.js
	packages/package-version-parser/package.js
	tools/selftest.js
2015-03-17 13:41:14 -07:00
David Glasser
765aef5e35 Stamp History with date 2015-03-17 13:01:56 -07:00
David Glasser
bc4392ed54 History update 2015-03-17 13:01:43 -07:00
David Glasser
04228e06c0 Update contributors list 2015-03-17 10:28:32 -07:00
David Greenspan
0e0e8a39f1 Mention Version Solver env vars in History.md 2015-03-14 12:32:54 -07:00
Sashko Stubailo
c6ea68f9b3 Make meteor create --package not use prefix
It used to create a directory with an underscore instead of a colon
Now, it just removes the prefix.

In cases where the name of the package has more than one colon or starts or ends
witha colon, we report an error.
2015-03-12 17:57:27 -07:00
David Greenspan
7c245285fe meteor update with no args patches indirect deps
With this change, `meteor update` with no arguments, in addition to
updating direct dependencies, updates patch versions of indirect
dependencies, so you will get your version 1.4.2 in the above example.

Background: As of the new solver, we already prefer patched versions 
when selecting a version for a new indirect dependency.  For example,
if 1.4.0 is the oldest version we could choose, we will take 1.4.1
instead if available.  However, if 1.4.2 came out, there would never
be an occasion to take it, unless you explicitly typed
`meteor update the-indirect-dependency`.  `meteor update` with no
args expands to `meteor update <all direct deps>`.

Also improve comments, tests, and code around CS.Input.
2015-03-12 16:24:05 -07:00
David Greenspan
73129f7477 Version Solver History.md 2015-03-12 16:24:05 -07:00
David Glasser
14887d8c9c Avoid infinite loops in the Tracker flush cycle
Tracker.flush() will still guarantee that all computations and
afterFlush callbacks have been fully flushed, but the implicit flush
cycle started by an invalidation or afterFlush call will yield to the
event loop for 10ms every thousand computations.

Fixes #3901.

Reviewed at https://rbcommons.com/s/meteor/r/25/
2015-03-12 11:02:09 -07:00
David Glasser
dc5573332f Remove upgraded lines for reverted commit 2015-03-10 17:31:19 -07:00
David Glasser
55e006dbf1 Remove redundant header 2015-03-10 17:14:43 -07:00
David Glasser
a2f724fd47 Upgrade uglify-js to 2.4.17 from 2.4.13
Fixes #2877.  Fixes #3360.
2015-03-10 15:48:06 -07:00