Commit Graph

2339 Commits

Author SHA1 Message Date
Naomi Seyfer
d76562f0fb Docuentation for allowing _id to be spec by the user 2013-02-01 15:24:45 -08:00
Naomi Seyfer
031d4dc103 Stop requiring _id to be specified by the insert() code.
Now users can put _id into their documents prior to insert, and insert() will
respect that.  This is useful if you want to write any Meteor Method that inserts
documents -- it allows you to have the same ID on both client and server, so you
don't get flicker when the server document wins
2013-02-01 15:24:45 -08:00
Nick Martin
6c849f72a2 Merge branch 'pr-615' into devel 2013-02-01 15:22:33 -08:00
Nick Martin
fb3aafc794 Rework text a bit. 2013-02-01 15:22:01 -08:00
Miles Matthias
b013c573ea Adding documentation explaining Collections in the introductory Data section, fixes #149. 2013-02-01 15:07:51 -08:00
Nick Martin
514bf73807 Move serverId to __meteor_runtime_config__. This prevents a race condition where the server restarts between when the client loads app.html and when it makes a DDP connection. Fixes #653. Thanks @awwx! 2013-02-01 12:21:08 -08:00
Nick Martin
df93f65bb3 Merge branch 'pr-628' into devel 2013-02-01 11:21:17 -08:00
Nick Martin
48010de100 Comment on app.manifest exclusion. 2013-02-01 11:20:22 -08:00
Andrew Wilcox
0fcb503fa4 also exclude app.manifest from returning app_html 2013-02-01 11:15:59 -08:00
Nick Martin
d71e31b5b5 Make inFiber help pass arguments through. This fixes with_password in meteor deploy/logs/mongo. 2013-01-31 12:24:42 -08:00
David Glasser
6616d9aac6 Make new less test less sensitive to browser zoom.
Apparently a 1px border may not have a 1px computed value if your browser is
zoomed (it may be fractional).
2013-01-31 11:59:01 -08:00
David Glasser
cc6d08b94f Merge branch 'dev-bundle-node-0.8.18' into devel 2013-01-30 11:08:36 -08:00
David Glasser
5a54a5c79f Update Node to 0.8.18.
We now used TypedArrays (Uint8Arrays), and versions of Node prior to 0.8.17 have
a security vulnerability related to TypedArrays.
2013-01-30 09:55:47 -08:00
Avital Oliver
b2cc217cfb Exit meteor run --once on bundler crash 2013-01-28 13:40:02 -08:00
Avital Oliver
1fa2006eb7 Fix standalone tests for the 'stream' package 2013-01-28 13:39:47 -08:00
Avital Oliver
6745745643 Fix #203: support less @import directives 2013-01-25 18:48:04 -08:00
Avital Oliver
d2319bc134 Wrap some CLI functions in a Fiber 2013-01-25 18:48:04 -08:00
Avital Oliver
2551d88014 minor rename 2013-01-25 16:29:30 -08:00
Avital Oliver
06f1308b4b Reorg facebook_server.js 2013-01-25 15:57:34 -08:00
Morten N.O. Nørgaard Henriksen
a404490ceb Update packages/accounts-facebook/facebook_server.js - add expiresAt 2013-01-25 15:56:19 -08:00
Mark van Straten
cb78d24ee3 Fix for allowing piping of password to deploy
When piping password from bash $echo MYPASSWD | meteor deploy MYSITE stdin.setRawMode() is not available. Check availability before calling.
2013-01-18 19:05:15 -08:00
xenolf
9e66735cec update bootstrap to 2.2.2 2013-01-18 19:05:02 -08:00
Andrew Wilcox
a8349f3973 Fix exclusion of favicon.ico and robots.txt on Windows.
The use of path.sep is incorrect because req.url is a URL, not a file
path, and so always contains forward slashes.

I verified that the original code does not work on Windows and that
the new code does.
2013-01-18 19:04:32 -08:00
David Glasser
c054d16589 Merge branch 'fibers-uglify-upgrade' into devel
This branch:

 - Updates fibers to 1.0.0, which hopefully fixes crash/stack overflow
   issues. This version stops exporting a global 'Fiber' object which
   means some server code needs to do some more requires.

 - Updates uglify-js to (a Meteor bugfix fork) off of 2.2.3. This is a complete
   rewrite of Uglify and appears to fix infinite recursion bugs that were
   discovered on the engine branch and while investigating lodash. We also now
   are able to minify all code in one pass instead of as separate pieces.

 - Stops using a Meteor bugfix fork of fstream, because they have taken our
   fork. This also affects the nested copy used by tar.
2013-01-16 15:45:00 -05:00
David Glasser
24d652af3e Stop using our fork of fstream. 2013-01-16 15:12:42 -05:00
David Glasser
21db9164d4 Use our fork of uglify-js2. 2013-01-16 15:12:28 -05:00
David Glasser
2aa92b2ed3 Update to use APIs from new versions of fibers and uglify-js.
Combine files before minimizing.

minimongo - subkey sort fails when minized, so clearly there is some sort of
uglify bug.
2013-01-16 11:34:30 -05:00
David Glasser
f80a20cecf Bump bundle version again, since we'd already put a 0.2.13 with websocket in s3
and runner machines.
2013-01-16 10:54:15 -05:00
David Glasser
56412f259f Also include websocket while we're at it, since we know we'll be using that soon
for server-to-server DDP.
2013-01-16 10:52:18 -05:00
David Glasser
6785ac2d87 Bump bundle version. 2013-01-16 10:48:39 -05:00
David Glasser
3a99938dff Upgrade Fibers to 1.0.0 and UglifyJS to 2.2.3.
This definitely won't "work" because both have API changes.

UglifyJS 1 was having issues minifying certain code (eg lodash).  But UglifyJS 2
was occasionally segfaulting (as was other code using large regexps).  See the
bottom of https://github.com/laverdet/node-fibers/issues/89

Hopefully this will fix it.
2013-01-16 10:47:57 -05:00
David Glasser
27d3073660 Make Meteor.autosubscribe a deprecated alias for Meteor.autorun.
Instead of a general client-side sub de-duping mechanism (which mostly existed
for the sake of autosubscribe, and causes issues with server-driven
unsubscribes), make Meteor.subscribe explicitly aware of reactivity.

Expose an "invalidated" flag on Meteor.deps.Context.

Guarantee that invalidation callbacks from different contexts will not be
interleaved at flush time. This has the implication that if you do

   context1.onInvalidate(function () {
     context2.invalidate();
   });

and this is the only way to invalidate context2, then context2's invalidation
callbacks will not be called until after *ALL* of context1's callbacks are
called. This allows us to be sure that the "unsubscribe, unless autorun tried to
re-create an identical sub" logic runs after the autorun function is rerun.
2013-01-15 17:07:03 -05:00
Andrew Brampton
435c664c8b Ignore example directories that begin with a period. This avoids 'meteor create --list' displaying .gitignore. 2013-01-12 14:32:27 -08:00
Nick Martin
448da70a58 Workaround weird header issue in firefox. Fixes #553. 2013-01-11 18:32:52 -08:00
Nick Martin
3ff567eda2 Merge branch 'quiesce-fix' into devel 2013-01-11 17:13:29 -08:00
Nick Martin
84b32f3241 Add test for fix to #555. 2013-01-11 16:55:41 -08:00
David Glasser
ec6c4cd55a Maybe fix #555. 2013-01-11 16:55:41 -08:00
David Glasser
6e5dd0b948 livedata client: Factor out "stringify message and send it" into a helper.
(Extracted from ddp-pre1 branch.)
2013-01-11 15:06:02 -08:00
David Glasser
aec2e586d8 spiderable: Correctly kill phantomjs after timeout. Fixes #571.
The previous version only killed the wrapper bash script, not the child. We now
work around the broken (socketpair) stdin presented to Node's child processes by
using a bash heredoc rather than "cat |"; this means we can use exec, which only
gives us one process to clean up.

While we're at it, simplify code by switching from child_process.spawn to
child_process.execFile, which does the work of capturing stdout and setting a
timeout for us automatically.
2013-01-08 22:51:40 -08:00
Nick Martin
918113ee4c Merge branch 'pr-588' into devel 2013-01-08 21:05:09 -08:00
Blake Miner
e474302fba Added Meteor._debug function to dependency list 2013-01-08 21:04:57 -08:00
Blake Miner
30bcbd8b58 Add underscore as dependency for Spark
Fixes #587
2013-01-08 21:04:57 -08:00
Nick Martin
0c64008499 Optimised images
Originally from https://github.com/meteor/meteor/pull/569

Reworked to:
- apply to soma.png, not soma.jpeg (file was previously misnamed).
- don't touch bootstrap's glyph image. It would cause conflicts later, and is not neighborly.
2013-01-08 20:52:30 -08:00
Rahul
40e92ee043 Specify that Bootstrap is a front-end framework
Taken from the Bootstrap homepage: "Sleek, intuitive, and powerful front-end framework for faster and easier web development."

Nitpick. There's no such thing as a "UX framework", and Bootstrap also provides more than just UI widgets, so I figured it would probably be best to just use the same description Twitter chose.
2013-01-08 20:35:53 -08:00
Dana Woodman
d17fb77189 Fix spelling error
Missing 'n'.
2013-01-08 20:35:11 -08:00
David Glasser
81be8c0d1b Add emacs TAGS file to .gitignore.
Suggested by naomi.
2013-01-08 19:38:55 -08:00
David Glasser
1c80429e06 Merge branch 'master' into devel 2013-01-08 11:19:19 -08:00
David Glasser
4d98d8cb4e Merge branch 'release-0.5.4' 2013-01-08 11:17:58 -08:00
David Glasser
2d27799008 find_mongo_pids: Fix regression in 203a82d.
Don't consider "ps" stderr to be an error. This occurs on OSX Mountain Lion if
DYLD_LIBRARY_PATH or a similar env var is set, and is harmless.
v0.5.4
2013-01-08 10:41:01 -08:00
David Glasser
864371f9ab Bump version number to 0.5.4 and write History.md. 2013-01-08 10:40:52 -08:00