1364 Commits

Author SHA1 Message Date
David Glasser
e27304c999 Work around Node 0.8 brokenness with using /dev/stdin in subprocesses. v0.4.1 2012-09-19 13:50:06 -07:00
David Glasser
125cf2153d Add one more change to History.md. 2012-09-18 16:41:09 -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 Glasser
f40b7b03c0 Update version number for 0.4.1.
This will be the commit that 0.4.1 is released from. If the initial release
candidate fails QA, this commit will be reverted.
2012-09-18 10:49:40 -07:00
David Glasser
7f14281cfa More History.md rewording for 0.4.1. 2012-09-18 10:29:35 -07:00
David Glasser
d1467c983d Revert "Update version number for 0.4.1."
This reverts commit 8ddcc21a0e.

More changes are necessary to History.md.
2012-09-18 10:21:26 -07:00
David Glasser
8ddcc21a0e Update version number for 0.4.1.
This will be the commit that 0.4.1 is released from. If the initial release
candidate fails QA, this commit will be reverted.
2012-09-17 23:38:51 -07:00
David Glasser
8a724d1428 Final (hopefully) History.md update for 0.4.1. 2012-09-17 23:33:08 -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
Nick Martin
3147c168cd Merge branch 'dev-bundle-0.2.3' into devel 2012-09-17 21:35:20 -07:00
David Glasser
9285bd9cab Bump dev bundle version number to 0.2.3. 2012-09-17 18:51:21 -07:00
David Glasser
e50d71a208 Only include the correct architecture's fibers.node in the dev bundle. 2012-09-17 18:39:35 -07:00
David Glasser
18b55d05c0 Revert "Work around debian build issue related to node fibers."
This reverts commit 6121400983.

We will solve this by deleting distracting versions of fibers.node rather than
by working around them. This will fix rpmbuild as well.
2012-09-17 18:39:01 -07:00
David Glasser
30d20ea8db Preserve spaces in arguments to admin/node.sh. 2012-09-17 18:31:37 -07:00
David Glasser
b54daf2c74 Second draft of 0.4.1 release notes. 2012-09-17 16:07:54 -07:00
David Glasser
7ffd598e26 Don't tell end users to run "meteor add". 2012-09-17 15:20:54 -07:00
David Glasser
036916fb31 First draft of Meteor 0.4.1 release notes. 2012-09-17 15:19:12 -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
660882eb4e examples specify whether they use jquery 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
David Greenspan
3364cb7b64 Clean up Spark efficient events hack with DomUtils
To test whether an element in the event bubbling chain matches a
selector, we now modify the selector to include an ID for the
element in question (which we assign if it doesn't have one),
so we search for one node rather than listing and checking all
nodes that match the selector!  This makes a huge speed difference in
the jsparse demo, which binds a global handler over a big DOM tree.

The new domutils are matchesSelector(element, contextNode, selector)
and matchesSelectorClipped(element, contextNode, selector, clipStart,
clipEnd).

Note: Eventually make the args more like this W3C working draft:
http://www.w3.org/TR/selectors-api2/#matches
2012-09-17 11:47:46 -07:00
David Greenspan
e80066a9ef DomUtils.elementOrder rename and flip
=> compareElementIndex and returns -1,0,1 in the
tradition of comparators rather than the opposite
2012-09-17 11:47:46 -07:00
David Greenspan
6df0e5b88f spark efficiency hack 2012-09-17 11:47:46 -07:00
fivethirty
2c62b1df93 bump bootstrap from 2.0.4 to 2.1.1 2012-09-16 12:10:21 -07:00
David Greenspan
ffd6461e58 Simpler try/finally in deps 2012-09-16 01:30:16 -07:00
David Greenspan
e8256ef866 Spark._currentRenderer not an EnvironmentVariable
This isn't the kind of dynamic var that should
persist into timer callbacks, it should just be
on the stack.  Also cuts dependence of spark
on dynamics.
2012-09-16 01:22:21 -07:00
David Greenspan
10fdc9b261 Unit test for fix to #323 2012-09-16 01:09:36 -07:00
David Greenspan
8e5e0b623a Script in admin/ to build spark.js 2012-09-16 00:49:09 -07:00
David Greenspan
5d9ff80461 Remove special Tinytest timer functions 2012-09-16 00:34:54 -07:00
David Greenspan
dcd26415fe Allow timer callbacks to participate in WriteFences.
This is a carefully considered change motivated by Tinytest, which
fires timers from a method and then waits for them before returning.
Because the timer callbacks didn't have a WriteFence, we had a race
condition a while back where the test client would quiesce before all
the results came in, which I fixed by giving Tinytest its own timer
functions that kept the environment, including the WriteFence.
I want to tear these special timer functions out now, since they are
necessary (before this commit) for very obscure reasons.  The race
condition is hard to reproduce and is affected by Mongo latency, the
order of the unit tests, etc.  (I reproduced it semi-stably to test
this commit, and it was tricky.)

The change is to give timer callbacks the WriteFence and allow them
to add writes before or after the fence fires.  Writes that they get
in before the fence is armed are included in the fence, and writes
made after the fence fires still succeed (the fence is "retired" and
doesn't complain that it has already fired).  In practice, this means
that methods that care about the writes happening as part of the
method, like Tinytest's run method, can wait for them, and methods
that don't care to wait will just return and let the writes trickle
down the pipe later (as they could before).

In a discussion with Geoff a few weeks ago, he said fences in general
should still complain about late writes unless they are put in a
special mode, so there is now a retire() method.
2012-09-16 00:34:37 -07:00
Tom Coleman
6a4f20ae55 Better error reporting for coffescript.
Use CS's inbuilt filename reporting, and use `bundle.error` rather than throwing.
Fixes #331
2012-09-16 12:10:09 +10:00
David Greenspan
8bd77fab4b add missing semicolon 2012-09-15 18:32:06 -07:00
David Greenspan
755b1bcfa2 fix Spark constant patching by improving elementContains (fix #323) 2012-09-15 13:34:04 -07:00
David Glasser
f46dfc2717 Follow-up to 0ed8555 (no-op, different structure). 2012-09-14 22:43:35 -07:00
David Glasser
f340c35c02 Basic email support. 2012-09-14 18:38:29 -07:00
David Glasser
0ed8555690 Fix {{#dtdd}} handler in docs for 0.3.8 changes. 2012-09-14 17:09:37 -07:00
David Glasser
216b3f312e generate-dev-bundle.sh: add reminder to update LICENSE.txt. 2012-09-14 11:32:28 -07:00
Tom Coleman
123f17833e A package directory MUST contain a package.js
So we know for sure after calling `get_package_dir` that we can then read the `package.js` file without things exploding.
2012-09-13 19:24:39 -07:00
Tom Coleman
e05e938d70 Throw a helpful error if we can't find a package. 2012-09-13 10:09:31 +10:00
David Glasser
9cbd1fc888 Spark no-op fix: If we're going to annotate list items with a typed range, we
should be consistent and do that for non-initial items as well. (Nothing ever
looks for this type currently, though.)
2012-09-12 16:58:28 -07:00
Nick Martin
a43c8b1d6a Comment on upcoming fix in node that means we can remove our hacky patch. 2012-09-11 17:14:07 -07:00