Commit Graph

1708 Commits

Author SHA1 Message Date
Avital Oliver
d34b4b8d29 cleanup rebase mistake 2013-03-19 15:11:07 -07:00
Avital Oliver
2ee683ec68 80c 2013-03-19 15:11:05 -07:00
Avital Oliver
afd5094468 Write .npm/README, and reformatted npm-shrinkwrap.json (due to new npm) 2013-03-19 15:11:05 -07:00
Avital Oliver
caadc55c80 Eliminate one last use of __meteor_bootstrap__.require 2013-03-19 15:11:05 -07:00
Avital Oliver
b35d7ff03a minor text change 2013-03-19 15:11:05 -07:00
Avital Oliver
5a0a4f5ab0 npm dependencies at bundle time
- package.js now has a top-level 'Npm.depends' directive
- both bundle-time and server run-time code can get access
  to any dependent npm module with 'Npm.require'
2013-03-19 15:11:04 -07:00
Avital Oliver
e89c907f7e newline at end of .npm/.gitignore files 2013-03-19 15:11:04 -07:00
Avital Oliver
19b8b32dc6 commit simpler .npm/npm-shinkwrap.json files 2013-03-19 15:11:04 -07:00
Avital Oliver
5baac15fc0 Make npm bundling safe to be run in parallel
Instead of modifying the contents of the .npm directory
inside a package directory, construct a new temporary
directory and atomically replace at the end.

Also, some minor improvements to testing and pruning
unused packages
2013-03-19 15:11:04 -07:00
Avital Oliver
78ca755d3d Npm.require unified requireNpm and __meteor_bootstrap__.require 2013-03-19 15:11:04 -07:00
Avital Oliver
8998633f3c Move npm depdencies from dev bundle to packages 2013-03-19 15:11:03 -07:00
Avital Oliver
5352db933a Implement a useNpm directive for packages 2013-03-19 15:11:03 -07:00
Avital Oliver
58c6f55676 Apply changes made on engine repo 2013-03-19 15:11:01 -07:00
Nick Martin
331177d002 Comment only. 2013-03-18 15:26:55 -07:00
David Glasser
70f1412c0a Avoid crash on spiderable errors. Fixes #832. 2013-03-18 10:22:37 -07:00
Naomi Seyfer
83b99f8c8a test for added from two different subs 2013-03-15 18:57:01 -07:00
Chris Mather
d2ed7cab9e Merge branch 'update-twitter-service-data-to-include-avatars-and-lang' of git://github.com/timhaines/meteor into timhaines-788 2013-03-15 14:49:49 -07:00
David Glasser
c8d3e0dd89 Fix allow_tests instability.
Meteor.apply('login', [], {wait: true});
  Meteor.call('setUpTests');  // creates some publishers
  Meteor.subscribe('oneOfThosePublishers');

The client will send the subscribe call before the setUpTests call due to
login's wait-ness, and then the subscribe will fail. We were basically doing
that in allow_tests.
2013-03-14 22:20:30 -07:00
Chris Mather
e0a90fa24f Merge branch 'devel-#801-fixed' of git://github.com/raix/meteor into raix-815 2013-03-14 17:20:53 -07:00
Nick Martin
00c3f48837 Fix annoying bug in opera where deleting from a doc as you iterate doesn't work right. 2013-03-14 15:04:35 -07:00
Morten Henriksen
0ead1fbf41 Fixed reactive each
Mentioned by Chris Mather on google talk
2013-03-14 14:32:06 +01:00
Morten Henriksen
30643c5008 Added som tests for fix #801 2013-03-14 14:03:39 +01:00
Morten Henriksen
4bf1b76a71 Fixed #801 2013-03-14 11:50:36 +01:00
David Glasser
e92522c283 Use correct new Deps API in Meteor.loggingIn(). Fixes #811. 2013-03-14 00:27:42 -07:00
David Glasser
000842d4bc Fix allow rule to allow users to update their profile (broken in 0.5.8 release).
Fixes #809.
2013-03-13 23:24:16 -07:00
Naomi Seyfer
8a88fee134 Remove XXX comment 2013-03-13 12:01:39 -07:00
David Glasser
a23d85c103 Be more explicit in app cache QA file. 2013-03-13 07:14:55 -07:00
David Glasser
070d6f7ca9 collection.update() and .remove() may only use IDs as selectors when sending RPCs.
ie, they can use arbitrary selectors on the server and in client stubs, but not
in other client contexts. This is to prevent clients from executing arbitrary
selectors against the DB.

Because of this, the update and remove allow/deny callbacks can only ever get
one doc, so switch them from getting an array to just getting the doc (like
insert).
2013-03-13 04:52:59 -07:00
David Glasser
322699e420 Test for e03d354. 2013-03-12 18:18:33 -07:00
Naomi Seyfer
9d03ddaf86 aaand removed the everpresent debugger call 2013-03-12 18:07:36 -07:00
Naomi Seyfer
e03d35460d Account for the case where a query might have been stopped before recompute
In minimongo, sometimes we precompute a list of queries that need recomputation,
and then recompute them.  When this happens, we call callbacks that sometimes end
up stopping the query, which removes it from the list of queries on the collection.

Without checking for this case, it casued an exception.
2013-03-12 18:04:41 -07:00
Naomi Seyfer
67d8f829a2 Make transforms on collections always nonreactive 2013-03-12 13:36:45 -07:00
Nick Martin
abe3ee9cbe Merge remote-tracking branch 'origin/deps-radical' into devel 2013-03-12 10:39:03 -07:00
David Glasser
0d3be81357 spark: apply transform in initial render.
parties example: add displayName using transform instead of keeping it as a
separate function. This allows us to drop a few helpers, too.
2013-03-11 23:08:54 -07:00
Nick Martin
b27dd1b8d2 Fix race condition in test. Multiple tests running at once could cause a failure. 2013-03-11 22:54:07 -07:00
Nick Martin
65840c1152 Merge remote-tracking branch 'origin/pr/753' into devel 2013-03-11 22:45:38 -07:00
Nick Martin
e0d1a29633 Merge branch 'appcache' into devel
Conflicts:
	History.md
2013-03-11 22:35:24 -07:00
David Glasser
5f9eba5f79 Clean up selector.js old-browser workarounds.
Instead of checking $Uint8ArrayPolyfill directly, keep that as an internal
detail of ejson and use EJSON.isBinary.

Consistently avoid treating $Uint8ArrayPolyfill objects as arrays throughout the
selector compiler.
2013-03-11 21:09:59 -07:00
Nick Martin
68474b25ae Merge branch 'meetup' into devel 2013-03-11 21:03:59 -07:00
Nick Martin
429aa690a4 Tweak the height of the popup box. Meetup varies the height of their box based on which permissions are requested. 2013-03-11 20:52:52 -07:00
David Glasser
02959efba8 Don't apply transform for server-side observeChanges (eg publishes). 2013-03-11 20:28:09 -07:00
David Glasser
c44d169628 Fix test race condition in EJSON tests.
When running the client versions of the tests, the client will send EJSON to the
server containing the Dog type, so the server needs to have already executed
EJSON.addType. Putting the call in a test is too late.
2013-03-11 20:13:28 -07:00
David Glasser
2a1f48bb7f Aha, here's where the transform is :) 2013-03-11 20:01:57 -07:00
David Glasser
94883aef0e Fix model test concurrency issues.
(Worth seeing how hard it would be to refactor this file to use separate
collections per run...)
2013-03-11 19:52:22 -07:00
Naomi Seyfer
f484f4e433 stop getting the transform from the wrong place on the server in getTransform 2013-03-11 18:17:07 -07:00
James Gill
bf0b8f961f Now accept multiple event handlers.
Also including tests.
With this, you can define two events off of, say,
'click #myButton', and both will be triggered by a
click event.
2013-03-11 17:38:13 -07:00
James Gill
17c21705a7 Spark.attachEvents can handle arrays of callbacks. 2013-03-11 17:09:29 -07:00
Naomi Seyfer
1653c091e7 Change the names from factory to transform 2013-03-11 15:49:17 -07:00
James Gill
5eaf672c15 Adding (failing) tests for multiple event handlers. 2013-03-11 15:27:34 -07:00
David Greenspan
96d05d741f Deps.Variable => Deps.Dependency 2013-03-11 12:37:25 -07:00