Commit Graph

78 Commits

Author SHA1 Message Date
Sashko Stubailo
36da5aecb4 Make all version numbers not have rc 2014-10-13 14:09:37 -07:00
Sashko Stubailo
698fbedb10 Bump all of the version numbers to rc.0 2014-10-07 17:10:48 -07:00
Sashko Stubailo
1e53f6b598 Bump all version numbers again after cherry-picking unipackage fix 2014-10-01 17:06:57 -07:00
Sashko Stubailo
0129c3f5ac Bump all of the version numbers again, to republish with the unipackage.json fix 2014-10-01 15:43:05 -07:00
Sashko Stubailo
eecc272e4a Bump every single package version number due to a change in compilation 2014-09-29 23:44:50 -07:00
Avital Oliver
c23408bdd7 versions for 0.9.1 2014-09-04 15:41:39 -07:00
Sashko Stubailo
82d1db5107 Rename Meteor.Collection to Mongo.Collection again 2014-08-29 12:28:32 -07:00
Sashko Stubailo
6b3d31ff5b Revert "Rename Meteor.Collection -> Mongo.Collection"
This reverts commit 96952dda2b.

Conflicts:
	packages/ddp/livedata_tests.js
	packages/minimongo/minimongo.js
	packages/mongo/collection.js
	packages/mongo/mongo_driver.js
	packages/mongo/mongo_livedata_tests.js
	packages/mongo/oplog_tests.js
	packages/reactive-dict/reactive-dict.js
	packages/session/session_tests.js
	tools/auth.js
2014-08-29 12:26:28 -07:00
Sashko Stubailo
96952dda2b Rename Meteor.Collection -> Mongo.Collection 2014-08-29 10:11:21 -07:00
Avital Oliver
864fffc9e9 Bump package versions in preparation for 0.9.1-rc0 2014-08-28 11:00:35 -07:00
Sashko Stubailo
41910019e1 Renamed Deps to Tracker in all packages 2014-08-27 20:05:22 -07:00
David Glasser
563860c769 Version number bumps, this time for real 2014-08-05 19:03:16 -07:00
David Glasser
845286b925 Merge branch 'devel' into packaging 2014-08-05 13:13:27 -07:00
David Greenspan
5ff8117310 Update comments after looking into e7250a0
It seems that when ObserveSequence observed a Cursor, it used to stop() the observe when the main autorun was invalidated, creating a “gap” during which no callbacks would be received (or fired).  This was before we used Deps.nonreactive in the main autorun (shielding the cursor.observe from being stopped).  Now the observe is only stopped upon re-run or when the ObserveSequence is stopped, and there is no gap.

Removed references to this gap from comments.

I believe the current code is correct, and in addition, we could now optimize the cursor-to-same-cursor case (and basically not do anything if seq===lastSeq and is a Cursor, i.e. not stop the old handle, create a new handle, or diff).
2014-08-04 19:06:15 -07:00
Avital Oliver
e7250a045f Eliminate _fetch on handles returned from cursor.observe()
This was originally introduced with
f1b77fec96, but it looks
like all of our tests now pass. (Maybe eliminating `rewind` in
b5a0613f85 made this no
longer necessary?)

If we find that this commit did break something, let's make sure to
add a failing test before reverting.
2014-08-01 15:01:26 -07:00
Avital Oliver
6166abde14 Reorg observe-sequence
(in preparation for {{#each}} over objects)
2014-08-01 14:59:48 -07:00
David Glasser
996d347139 Merge branch 'devel' into packaging
Conflicts:
	docs/client/api.html
	docs/client/concepts.html
	docs/client/introduction.html
	meteor
	packages/html-tools/package.js
	packages/spacebars-common/package.js
	packages/webapp/webapp_server.js
	tools/bundler.js
2014-07-21 16:18:25 -07:00
ekatek
b9a714f028 ripping out internal, name and test from package.js files 2014-07-07 20:50:50 -07:00
David Greenspan
dfbbde4aa7 Merge branch 'devel' into blaze-refactor
Conflicts:
	packages/webapp/webapp_server.js
2014-07-01 13:29:04 -07:00
Slava Kim
d17c190c52 Observe-sequence package recognizes different cursors by checking the interface
of observe and fetch.

Before it checked that the cursor is an instance of Minimongo.Cursor.
2014-06-27 13:42:05 -07:00
David Glasser
5a85e2f24c Merge branch 'devel' into packaging
Conflicts:
	tools/bundler.js
	tools/tests/login.js
	tools/unipackage.js
2014-06-23 14:48:21 -07:00
David Greenspan
095b3a26c6 Merge remote-tracking branch 'origin/devel' into blaze-refactor
Conflicts:
	packages/spacebars-tests/template_tests.js
	packages/ui/base.js
	packages/ui/dombackend.js
	packages/ui/dombackend_tests.js
	packages/ui/domrange.js
	packages/ui/domrange_tests.js
	packages/ui/each.js
	packages/ui/render.js
	packages/ui/render_tests.js
2014-06-23 10:56:55 -07:00
Joe Gallo
3c6c8e591c Only show duplicate id warning if really from _id
Fixes #1980
2014-06-18 17:38:05 -07:00
ekatek
fb709c9563 remove versions files from core packages 2014-06-16 22:11:31 -07:00
David Glasser
c5e5305a3b Merge branch 'devel' into packaging
Conflicts:
	tools/bundler.js
	tools/packages.js
2014-06-11 12:02:57 -07:00
David Greenspan
3df4e95845 Merge branch 'devel' into blaze-refactor
Conflicts:
	packages/spacebars-tests/template_tests.js
	packages/ui/domrange.js
2014-05-27 13:38:59 -07:00
David Greenspan
7768cb0611 Name more tests after their packages
It seems like a good practice for tests to always be grouped under their package name, so that it’s easy to find the tests when they fail.  It’s confusing to have the tests in packages like “spacebars-tests”, “spacebars-compiler”, and “templating” be in various groups like “spacebars - templates” and “spacebars - templating”.

I didn’t go through and enforce this convention in all packages, just a few, but I think it would be good and not too hard to do the rest sometime.
2014-05-27 13:26:56 -07:00
Avital Oliver
df9af60fe2 observe-sequence depends on random 2014-05-21 11:58:20 -07:00
Avital Oliver
a5e07f8366 observe-sequence depends on underscore 2014-05-21 11:43:06 -07:00
ekatek
beb0e59b9d new version files from teh new solver? Also, package.js correct with tests 2014-05-09 17:36:25 -07:00
ekatek
031890d2c5 don't store buildtime deps in the catalog 2014-05-04 16:56:58 -07:00
ekatek
23ad149a78 better versions files 2014-04-25 15:06:45 -07:00
ekatek
10d2047d12 clean up 2014-04-25 15:01:20 -07:00
ekatek
c84c8d6097 alphabetize package version lock files 2014-04-24 18:18:21 -07:00
David Glasser
fbde0a00a7 Merge branch 'publish-packages' into library-refactor
Conflicts:
	packages/domutils/package.js
	packages/handlebars/package.js
	packages/htmljs/package.js
	packages/liverange/package.js
	packages/spark/package.js
	packages/universal-events/package.js
	tools/bundler.js
	tools/help.txt
	tools/packages.js
	tools/run-app.js
	tools/run-mongo.js
	tools/skel/.meteor/packages
2014-04-24 17:01:36 -07:00
David Greenspan
93154e2221 Don't use _.pick in observe-sequence
Trying to stick to a small set of _ methods for stand-alone Blaze
2014-04-16 08:01:25 -07:00
Avital Oliver
2f5792acdb Change observe-sequence callbacks
We now call 'removedAt' and 'changedAt' with indices (instead
of 'removed' and 'changed'). While at it, fix a bug where
the 'movedTo' callback was firing with incorrect
indices.

commit f44d03d2c8bbfca32ae08fdabef35472c62042eb
Author: Avital Oliver <avital@thewe.net>
Date:   Tue Apr 15 14:54:29 2014 -0700

    A more complicated movedTo test that should catch a bug

commit 24f9ba3ffc708cf1af34e434ddf033c54d246614
Author: Avital Oliver <avital@thewe.net>
Date:   Tue Apr 15 14:05:44 2014 -0700

    Update tests and {{#each}} for new observe-sequence
2014-04-15 15:29:39 -07:00
David Greenspan
5345a0c78a Add missing "var" 2014-04-10 10:16:01 -07:00
David Glasser
b2632d45c5 Move boilerplate HTML from tools to webapp
This breaks a strong dependency between the webapp package and the
bundler.  Now we can change the standard page format, add more hooks,
etc without changing the tools (and hot code push works properly).

This is an incompatible change to the definition of the
browser-program-pre1 format: it no longer contains a "page" field
pointing to a boilerplate defined using ad hoc ##FOO##
substitution. Instead, the manifest can contain "head" and "body"
entries for data added with compileStep.appendDocument().  (Note that in
Blaze, <body> in a template file no longer calls appendDocument.)

WebApp.addHtmlAttributeHook callbacks now return attribute objects (like
those that Spacebars supports) rather than strings.
2014-03-24 20:10:39 -07:00
Avital Oliver
208bbea9aa fix observe-sequence tests
in observe-sequence, we now no longer
try to make ids non-empty by prepending "-"
if they are numbers or booleans (since
those already are non-empty).
2014-02-26 21:16:02 -08:00
Avital Oliver
7d8c99a129 Support empty strings passed to {{#each}} 2014-02-26 15:11:33 -08:00
Avital Oliver
89b94eca55 Clarify that observe-sequence errors come from {{#each}} 2014-02-25 13:34:52 -08:00
Avital Oliver
8f16d8e3db Fix observe-sequence when console is undefined 2014-02-24 15:27:23 -08:00
Avital Oliver
07a74ca03f observe-sequence: test for string array transition 2014-01-10 15:56:17 -05:00
Avital Oliver
fa356ec797 observe-sequence: fix non-string ids 2014-01-10 15:44:42 -05:00
Avital Oliver
5dbeb2b911 Simplify a line of code 2014-01-07 04:40:53 -08:00
Avital Oliver
32849891ba Allow {{#each}} over array with undefined items 2014-01-07 04:40:34 -08:00
Avital Oliver
2e88f7a758 Improve observe-sequence item matching heuristic
- If the items in an array are strings or numbers, use those as
  the id.

- If the items in an array are objects with no '_id' field, use
  the index in the array.

- In any case, if the id to be used is already present in this array,
  generate a random replacement value and print a warning.
2014-01-07 03:00:10 -08:00
Avital Oliver
95130ad760 observe-sequence: simplify and optimize by not fetching cursors that change 2014-01-06 16:05:27 -08:00
Avital Oliver
b482c449d3 Test that #each stops its cursors when removed 2013-12-13 17:51:20 -08:00