837 Commits

Author SHA1 Message Date
David Glasser
be4da5fba4 Revert "Support unlimited tabs by working around browser per-hostname connection limits."
This reverts commit 2495cb2f58.

This change made it easy to construct URLs with more than 63 characters in a
label, which is not legal. We will redo this later with generating a smaller
random token (and taking other precautions to limit the total size of the
label).
2012-10-01 13:45:54 -07:00
David Greenspan
afff7677b5 fix jsparse comments in AST 2012-10-01 12:28:09 -07:00
David Greenspan
998ad47b21 newline at end of file 2012-10-01 10:13:44 -07:00
David Greenspan
6686d40526 include comments in jsparse AST 2012-09-30 00:42:04 -07:00
David Greenspan
f3f64922c4 Merge branch 'preserve-inputs' into devel 2012-09-29 13:26:23 -07:00
David Greenspan
1e82308054 Tweaks from Geoff code review 2012-09-29 13:24:46 -07:00
David Glasser
caecb40f1a Small improvements to LiveRange constructor docs. 2012-09-28 16:14:10 -07:00
David Greenspan
0adc89e736 spark tests no longer clear _globalPreserves 2012-09-28 13:16:00 -07:00
David Glasser
4dcdeb4435 Fix jsparse tests on IE7. 2012-09-28 12:39:03 -07:00
David Glasser
2495cb2f58 Support unlimited tabs by working around browser per-hostname connection limits.
The URL provided to Meteor.connect may now be a function returning a new URL on
each socket connection, or contain the substring "MeteorWildcard" which is
replaced by a random string (a UUID) on each socket connection.
2012-09-28 11:57:48 -07:00
David Glasser
8ff16d3b04 IE7 throws an error if you use unquoted false or true as a key in object literals.
Quoting it works (and x[false] and x[true] work).
2012-09-28 11:42:57 -07:00
David Glasser
80dbb2e7a6 Follow-up to ac9f553: only save migrationData if name provided. 2012-09-28 07:37:13 -07:00
David Glasser
ac9f553d07 Refactor "reload" package: camelCase the API, and make the onMigrate name
optional.

Motivation: now that we don't use "url" as a key in _LivedataConnection, it's
easier to turn it into a function (for MeteorWildcard support).
2012-09-28 00:19:54 -07:00
David Glasser
bee8bcf482 Don't allow migrations if there are any outstanding methods.
This is essentially ported from the auth branch.

Motivation: would like to avoid using url as a reload key, in preparation for
making url a function.
2012-09-28 00:14:41 -07:00
David Greenspan
1920122ddd move idNameLabeler into Spark 2012-09-27 19:34:59 -07:00
David Greenspan
07c72f28c9 minor from code review 2012-09-27 19:26:22 -07:00
David Greenspan
4e15995e4f Fix for Handlebars helper functions returning null
Now you can do {{foo.bar}} if foo() returns null,
and get nothing (silent failure) just like you do
if foo is a non-existent property or function.
2012-09-27 14:31:21 -07:00
David Glasser
094546d53b Check that the value to Session.set is scalar (like we already do in Session.equals).
Document this restriction for both functions.

We may later relax this (with deep-copy in and out of the Session); see issue
2012-09-27 11:10:28 -07:00
David Glasser
a016e83754 Let exceptions from stream message callbacks percolate upwards.
We used to be unable to do this because of a SockJS bug, but the SockJS folks
read our XXX comment and fixed the bug!
https://github.com/sockjs/sockjs-client/issues/61
2012-09-25 18:26:06 -07:00
David Greenspan
fe096edf23 spark_tests uses preserve-input labeler 2012-09-24 20:36:19 -07:00
David Greenspan
eaf146cc2e preserve-inputs package, Spark._globalPreserves 2012-09-24 20:17:19 -07:00
David Greenspan
0565593da5 block browser events triggered by Spark DOM manip 2012-09-24 20:01:24 -07:00
David Greenspan
deafbf4a3d implement proper legacy-style id/name preservation
just in spark_tests, but to go in package
2012-09-24 20:01:24 -07:00
David Greenspan
4b25e2d82d fix tinytest error message bug 2012-09-24 12:12:42 -07:00
David Greenspan
1168a70e3e fix reactive <select> tag in IE 7-8
Work around IE bug where HTML comments don't materialize inside
<select> and <option> tags.
2012-09-24 12:06:19 -07:00
David Glasser
6c6fa5a6b1 Fix race condition in spiderable.
If the "check to see if page is ready" interval ran when "Meteor" is defined but
"Meteor.status" is not yet defined, an error message about trying to call an
undefined function would be dumped into the output source before the page
itself.

This can be easily reproduced by changing the timer interval from 100 to 1.
2012-09-24 10:41:14 -07:00
David Greenspan
b112cf8f92 small jsparse improvements 2012-09-20 21:22:34 -07:00
David Glasser
d715a5ff74 Merge branch 'release-0.4.1' into devel (some changes discovered during the
not-yet-finished 0.4.1 release process).
2012-09-20 18:09:59 -07:00
David Glasser
2768abd5c3 Fix IE7 minimongo test failure: don't use LocalCollection._f._equal on Dates.
(We should eventually make all the selector code support Dates, but until then,
don't use it.)
2012-09-20 17:04:50 -07:00
Avital Oliver
b0d181dbcc Add the replaceLocalhost option to Meteor.absoluteUrl 2012-09-20 15:07:52 -07:00
David Glasser
4b8a688000 Change some test names to make it easier to search output for failures.
We should eventually improve test output in more sophisticated ways (eg,
failures could show up sorted at the top, or be duplicated in a second column),
but this is a simple start.
2012-09-20 12:05:51 -07:00
Avital Oliver
e1a7c2ff46 Minor changes to deprecated absolute-url package based on code review comments 2012-09-20 07:33:08 -07:00
Avital Oliver
de413efe50 Fold the absolute-url package into the meteor package 2012-09-19 16:19:54 -07:00
David Glasser
e27304c999 Work around Node 0.8 brokenness with using /dev/stdin in subprocesses. 2012-09-19 13:50:06 -07:00
David Greenspan
886d657afe Merge branch 'jsparse' into devel
Adds the "jsparse" JavaScript parser as an internal package.

At some point jsparse will get proper docs and become a public
package.  For now, it's basically complete and has unit tests,
so it meets the bar for an internal package.  It will be used
by the new docs tool.
2012-09-19 11:45:02 -07:00
David Greenspan
a4c4fabbbd make jsparse internal 2012-09-19 11:42:34 -07:00
David Glasser
f0fd0c476c Make sure that Mongo remove calls finish before returning from _Mongo.remove.
This started causing test failures in deployed tests while testing the 0.4.1
release candidate; we think this may be related to bumping the mongodb node
driver version. (Maybe the change to this.poolSize in
f81870f7da
?)
2012-09-18 15:54:19 -07:00
David Greenspan
7b036318e7 Fix Spark CSS updating tests in Safari 4, iPad 2012-09-18 15:02:07 -07:00
David Greenspan
a0ded8c3d0 Fix Spark in Firefox 3.6-4 2012-09-18 15:01:28 -07:00
David Greenspan
1cf759ed7e Unit test driver on iPad: make tests clickable 2012-09-18 15:01:12 -07:00
David Glasser
58af66a110 Make email tests pass when deployed. 2012-09-18 13:30:41 -07:00
David Greenspan
1caf2da2b5 fix CSS preproc tests when Chrome is zoomed 2012-09-18 11:23:49 -07:00
David Greenspan
7ff08603a9 Catch errors in Meteor.publish handlers
Previously, it seemed that bugs in publishers would sometimes
prevent future subscriptions from working, grinding the app to
a halt.
2012-09-17 22:17:32 -07:00
David Glasser
7ffd598e26 Don't tell end users to run "meteor add". 2012-09-17 15:20:54 -07:00
David Glasser
374dd8f39b Make sure under_score names work in package tests. 2012-09-17 15:03:06 -07:00
David Greenspan
ce4e415bb7 jQuery dependency package.js changes 2012-09-17 14:42:28 -07:00
David Greenspan
d50654bbee whitespace 2012-09-17 14:42:28 -07:00
David Greenspan
f1a932c1df Error if no jQuery and no querySelectorAll (IE 7) 2012-09-17 14:42:27 -07:00
David Greenspan
efd5560b0f Remove Meteor dependency on jQuery/Sizzle
Meteor will use jQuery for selector matching if it's present on the
client (which at the moment is always), but it now will use bare
querySelectorAll on modern browsers and IE 8+ if there is no jQuery.
There is no other dependence on jQuery in Meteor.
2012-09-17 14:42:27 -07:00
David Glasser
5e622215ba Change all publicly documented APIs to use camelCase.
For now, the old names still work as well.

This includes:
  - Meteor.isServer/isClient
  - this.isSimulation in methods
  - Context.onInvalidate
  - Meteor.status().retryCount/retryTime

Remove old backwards-compatibility "Sky" alias for "Meteor".

Update all examples in the docs to use camelCase.

Delete unused docs/client/projects.html file.
2012-09-17 14:26:45 -07:00