Commit Graph

5171 Commits

Author SHA1 Message Date
Avital Oliver
6f6630d616 Update package versions for 0.9.1-rc2 2014-08-28 12:37:04 -07:00
Avital Oliver
ca8ae9462d Export 'Deps' from the tracker package.
Specifically, this gives apps access to Deps (via meteor-platform,
formerly known as standard-app-packages)
2014-08-28 12:13:55 -07:00
Avital Oliver
ab5432a99e Bump meteor-tool version (not totally sure why... is Blaze used in the tool?) 2014-08-28 11:40:47 -07:00
Avital Oliver
18c917b44f Oops. Bump blaze to a new major version 2014-08-28 11:35:30 -07:00
Avital Oliver
827360189c Bump version for jquery-layout as well (due to whitespace) 2014-08-28 11:09:13 -07:00
Avital Oliver
864fffc9e9 Bump package versions in preparation for 0.9.1-rc0 2014-08-28 11:00:35 -07:00
Avital Oliver
171c2dea49 Fix the deprecated deps package 2014-08-28 10:35:40 -07:00
David Greenspan
1dedd89387 Eliminate UI from docs; add some API to Template!
By choosing names like Template.registerHelper(…) and Template.instance() (instead of Blaze), we can separate the “Templates” section and the “Blaze” section of the docs.
2014-08-28 04:11:25 -07:00
David Greenspan
db17540f2f findView becomes getView, has no viewName arg
Also, make UI.templateInstance() not throw, to match the docs.
2014-08-28 02:46:13 -07:00
David Greenspan
c9857ea642 Change additional occurrences of Deps to Tracker 2014-08-27 22:43:28 -07:00
David Greenspan
8345de74e9 Merge branch 'devel' into blaze-templates
Conflicts:
	docs/.meteor/versions
	docs/client/api.html
	docs/client/docs.js
	packages/blaze/builtins.js
	packages/blaze/materializer.js
	packages/blaze/render_tests.js
	packages/blaze/view.js
	packages/livedata/package.js
	packages/minimongo/package.js
	packages/reactive-var/reactive-var.js
	packages/standard-app-packages/package.js
	packages/templating/templating.js
	packages/test-helpers/reactivevar.js
	packages/test-in-browser/package.js
	packages/ui/package.js
2014-08-27 22:34:21 -07:00
Sashko Stubailo
27ac79925d Add back gitignore 2014-08-27 22:03:30 -07:00
Sashko Stubailo
a3cec3b6dc Rename standard-app-packages to meteor-platform 2014-08-27 21:14:34 -07:00
Sashko Stubailo
ca4ff126f2 Fix comment and symlink 2014-08-27 21:06:30 -07:00
David Greenspan
a0fe0c8ad6 Prevent Blaze.remove from doing extra detaches
(The test doesn’t really cover the case we encountered in iron-layout.)

It’s normal to end up calling Blaze.remove on an already-destroyed View, or a View that is not attached directly the DOM but has a parentRange (it’s just that it takes a situation like iron-layout to actually have a pointer to such a View in your code).
2014-08-27 20:28:05 -07:00
Sashko Stubailo
41910019e1 Renamed Deps to Tracker in all packages 2014-08-27 20:05:22 -07:00
Sashko Stubailo
8e7cd297bf Renamed Deps to Tracker and added deprecated deps package. Tests pass 2014-08-27 19:45:49 -07:00
Sashko Stubailo
27d48b4ede Merge branch 'devel' into jsdoc
Conflicts:
	meteor
2014-08-27 18:52:40 -07:00
David Glasser
a30b811aa9 Allow @1.0.0 to match @1.0.2-cordova if requested
(eg, if 1.0.2-cordova is in the release)
2014-08-27 17:08:20 -07:00
David Greenspan
4e1111f6fa Make deprecated use of UI.render/UI.insert work
(but warn)
2014-08-27 16:03:37 -07:00
David Greenspan
56cb304895 Rename Blaze.findView to Blaze.getView
and make second argument private
2014-08-27 16:01:38 -07:00
Emily Stark
c6401c692e Merge branch 'master' into devel
Conflicts:
	History.md
2014-08-27 15:57:03 -07:00
David Greenspan
bfdee38b07 Restore parentView argument to Blaze.render 2014-08-27 15:44:23 -07:00
Emily Stark
b0e0ccb5a4 Bump package versions for 0.9.0.1 2014-08-27 15:16:49 -07:00
David Greenspan
237cc6b84d Merge remote-tracking branch 'origin/devel' into blaze-templates 2014-08-27 14:48:10 -07:00
David Greenspan
d660ffd290 Make “reactive-var” package
No more ReactiveVar test-helper!  They were basically identical.  Yay.
2014-08-27 14:42:59 -07:00
Emily Stark
1b639e5853 Bump package versions for 0.9.0.1-rc1 2014-08-27 14:28:03 -07:00
Sashko Stubailo
d057ec4a3a Fix issues identified by the diff 2014-08-27 12:51:59 -07:00
Justin SB
f1a7455d4c Spiderable now uses a flag to determine when the initial JS has loaded
Other approaches seemed to be heuristics that broke down in edge cases:
a timeout wasn't guaranteed if your JS was slow; page.load in PhantomJS
wasn't firing reliably because of long polling.
2014-08-27 12:25:45 -07:00
Matthew Arbesfeld
68c8a84155 Fix for SIGUSR2 signals during startup.
There was a rare race condition where SIGUSR2 can fire before the
  server starts listening, causing some functions to fail. We added
  a future to the synchronous queue to ensure that SIGUSR2 calls
  are queued to run after onListen.
2014-08-27 12:20:40 -07:00
Matthew Arbesfeld
5c4beef092 Fix for SIGUSR2 signals during startup.
There was a rare race condition where SIGUSR2 can fire before the
  server starts listening, causing some functions to fail. We added
  a future to the synchronous queue to ensure that SIGUSR2 calls
  are queued to run after onListen.
2014-08-27 12:17:22 -07:00
Sashko Stubailo
40dc5e7735 Fix some arguments 2014-08-27 11:17:40 -07:00
Sashko Stubailo
5bcc6fbf84 Merge branch 'devel' into jsdoc 2014-08-27 10:06:07 -07:00
Justin SB
3ce808aae5 Spiderable now uses a flag to determine when the initial JS has loaded
Other approaches seemed to be heuristics that broke down in edge cases:
a timeout wasn't guaranteed if your JS was slow; page.load in PhantomJS
wasn't firing reliably because of long polling.
2014-08-27 09:46:36 -07:00
David Glasser
cc16bcafe3 Merge branch 'release-0.9.0.1' into devel
Conflicts:
	packages/autoupdate/autoupdate_client.js
2014-08-27 00:00:15 -07:00
Avital Oliver
d7636ebda0 Add COMPAT WITH 0.8.3 comment 2014-08-26 23:16:31 -07:00
Avital Oliver
9c9eadc079 Add COMPAT WITH 0.8.3 comment 2014-08-26 23:16:03 -07:00
Matthew Arbesfeld
a5eea24d47 Update autoupdate description 2014-08-26 23:05:59 -07:00
Matthew Arbesfeld
a038ef99e8 Update autoupdate description 2014-08-26 23:04:03 -07:00
Avital Oliver
8373507288 Fix hot code push from pre-0.9.0 apps
For 0.9.0, we changed the structure of documents in the
ClientVersions collection. So now we just throw in a single
dummy document in the old format, triggering a reload.

Fixes #2447
2014-08-26 22:23:11 -07:00
David Glasser
6a6837e32c Fix constraint solver benchmark 2014-08-26 22:16:09 -07:00
Avital Oliver
5a3774c758 Fix hot code push from pre-0.9.0 apps
For 0.9.0, we changed the structure of documents in the
ClientVersions collection. So now we just throw in a single
dummy document in the old format, triggering a reload.

Fixes #2447
2014-08-26 22:16:03 -07:00
David Glasser
43e01c09eb Improve treatment of prerelease (dashed) packages
Drop the "at-least" constraint type entirely. It was not user-accessible
and was only used in the form ">=0.0.0" to represent a constraint with
no version constraint at all. This type of constraint is now called
"any-reasonable".

The definition of "any-reasonable" is:

  - Any version that is not a pre-release (has no dash)
  - Or a pre-release version that is explicitly mentioned in a TOP-LEVEL
    constraint passed to the constraint solver

For example, constraints from .meteor/packages, constraints from the
release, and constraints from the command line of "meteor add" end up
being top-level.

Why only top-level-constrained pre-release versions, and not versions we
find explicitly desired by some other desired version while walking the
graph?

The constraint solver assumes that adding a constraint to the resolver
state can't make previously impossible choices now possible.  If
pre-releases mentioned anywhere worked, then applying the constraints
"any reasonable" followed by "1.2.3-rc1" would result in "1.2.3-rc1"
ruled first impossible and then possible again. That's no good, so we
have to fix the meaning based on something at the start.  (We could try
to apply our prerelease-avoidance tactics solely in the cost functions,
but then it becomes a much less strict rule.)

At the very least, this change should allow you to run meteor on a
preview branch like cordova-hcp without getting a conflict between the
prerelease package on the branch/release and the lack of an explicit
constraint in .meteor/packages on that package, because we are
reintepreting the .meteor/packages constraint as meaning "anything
reasonable" and the in-the-release version counts as reasonable.
2014-08-26 21:54:48 -07:00
David Glasser
c2c67b128e Fix infinite reload *AND* no-reload bugs in tests
The root of the problem David Greenspan tried to fix was that
__meteor_runtime_config__.autoupdateVersion was incorrectly 'unknown'
when running tests (due to packages/test-in-browser/autoupdate.js being
handled wrong by autoupdate_server.js).  Turns out the right solution is
to ensure the version is known, not to avoid reloading when the version
is unknown.
2014-08-26 20:45:07 -07:00
David Glasser
7358986f13 Revert "Fix infinite reload loop running tests"
This reverts commit 35d816a363.
2014-08-26 20:43:22 -07:00
David Glasser
5d4a93d627 Revert "Fix the fix to the infinite reload loop"
This reverts commit 1ad3dd17af.
2014-08-26 20:43:21 -07:00
David Greenspan
1ad3dd17af Fix the fix to the infinite reload loop
…after talking to arbesfeld
2014-08-26 17:46:52 -07:00
David Greenspan
35d816a363 Fix infinite reload loop running tests
(just a guess at the fix; arbesfeld to fix the fix if necessary)
2014-08-26 17:46:49 -07:00
David Greenspan
0177507492 Template._body_ to Template.body 2014-08-26 17:37:52 -07:00
David Greenspan
bdb9ddfaae Make view.isAttached private again 2014-08-26 17:32:15 -07:00