Commit Graph

234 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
David Greenspan
78bb8399d2 Merge branch 'devel' into helper-syntax 2014-09-25 13:55:36 -07:00
David Greenspan
22845b6f11 Port spacebars-tests to new-style helpers 2014-09-24 22:02:57 -07:00
David Greenspan
8407a81b16 Remove stray debugging aid 2014-09-24 19:44:15 -07:00
David Greenspan
a3f3b7b690 Add tests for old-style helper back-compat 2014-09-24 19:04:17 -07:00
David Greenspan
e8ebfe8aae First cut of deprecating old helper syntax
with back-compat.

The “old-style” syntax is `Template.foo.bar = …` instead of `Template.foo.helpers({bar: …})`.

Properties of back-compat to test:  You can replace an old-style helper (overwrite it).  You can delete an old-style helper.  We don’t have to support these capabilities, but we used them both in our test code, so apps probably do it too.

We print a deprecation once per helper.  This leads to a lot of warnings!  It’s helpful for porting, though developers who for some reason don’t want to port yet may want a way to disable them.

`spacebars-tests` pass.
2014-09-24 18:52:54 -07:00
David Greenspan
fe5c61104f Fix falsy helpers (like 0) 2014-09-24 17:02:20 -07:00
David Greenspan
dee69bde0b Fix some old_spacebars_test tests
… so that they test the right thing
2014-09-24 17:02:20 -07:00
David Greenspan
855284559a Back-compat tests 2014-09-18 17:29:04 -07:00
David Greenspan
e7cf040177 Rename {{> UI.*}} to Template; remove UI uses
Rename inclusion macros (with back-compat) to: Template.dynamic, Template.contentBlock, Template.elseBlock.

Update all uses and mentions of UI in the repo, unless they are there for back-compat or testing reasons.

To do: Run unit tests.  Update docs for UI.dynamic.  Document Template.contentBlock and Template.elseBlock.
2014-09-17 17:24:25 -07:00
Avital Oliver
60293005bd Test backcompat for pre-0.9.1 compiled templates
We run the entire suite of tests as we had on
0.9.0 against an old version of compiled templates.
The test suits is found in old_templates_tests.js

Why? Packages are published in built form. With Meteor 0.9.1, we
didn't bump the major version of the 'templating' package (which
would force packages that define templates to publish new versions
of their package). Instead, we decided to keep backcompat with the
old Blaze runtime APIs.

If these tests ever break in the future, and backcompat is too hard
to achieve (or undesirable), we can simply bump the major version
of the 'templating' package, and get rid of these tests.
2014-09-03 12:33:05 -07:00
David Greenspan
dc1eca1768 Better error message if you name a template “body” 2014-08-29 15:30:02 -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
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
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
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
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
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
David Greenspan
0177507492 Template._body_ to Template.body 2014-08-26 17:37:52 -07:00
David Greenspan
28f8c0c9ef Kill UI.insert, make UI.render require DOM node 2014-08-26 17:26:03 -07:00
David Greenspan
e10e920942 UI.findView (instead of getCurrentView, etc.) 2014-08-18 17:05:37 -07:00
David Greenspan
be0e2a0139 Remove Template.__assign in favor of __checkName
It seems nice to actually write `Template[“foo”] = …` in our generated code rather than obscuring it behind __assign.
2014-08-17 12:04:25 -07:00
David Greenspan
1f5fc9d89a Merge branch 'devel' into blaze-templates 2014-08-17 11:23:48 -07:00
David Greenspan
b5715a9621 Stop trying to fetch an MP4 file in tests
We test event capturing using the <video> “play” event, because it is a non-bubbling event native to modern browsers.  We previously had the src URL be a video on the Internet, but even if the video could not be accessed, the test still seemed to work.

So now set the “src” to “”.  Seems to work in IE 9, Firefox, Safari, Chrome.
2014-08-16 11:21:45 -07:00
David Greenspan
7981f17af1 Make “same input.value” test work in IE 8 2014-08-16 11:04:43 -07:00
David Greenspan
7e44526ab9 Test for Avi’s fix to input elements (c2cf671)
Needs IE 8 version of test
2014-08-15 17:12:46 -07:00
David Greenspan
f362f949af UI.data() / UI.data(view) / UI.data(element)
Question: Keep UI.getElementData in docs, or just for back-compat?
2014-08-15 16:17:23 -07:00
David Greenspan
28da81fd49 Make UI.parentData public 2014-08-12 13:57:33 -07:00
David Greenspan
10fe009db8 Make UI.templateInstance() public
Get rid of Template.updateTemplateInstance(view) and
Blaze.getCurrentTemplateView() in favor of view.templateInstance()
and UI.templateInstance().view.
2014-08-12 13:37:35 -07:00
David Greenspan
0f905100d3 View “kind” -> “viewName”; Template constructor
[new] UI.Template([viewName], renderFunction)

template.__render, template.__kind becomes template.renderFunction,
template.viewName.
2014-08-12 11:49:03 -07:00
David Greenspan
7035b91249 Merge branch 'devel' into blaze-templates
# Please enter a commit message to explain why this merge is necessary,
# especially if it merges an updated upstream into a topic branch.
#
# Lines starting with '#' will be ignored, and an empty message aborts
# the commit.
2014-08-08 18:16:56 -07:00
David Greenspan
22d4c48188 Rename Template.__create__, __define__, and others
* `Template.__create__` is now `new Template`
* `Template = Blaze.Template`
* `Template` is a constructor function
* `Template.foo instanceof Template` (but keep `Blaze.isTemplate`)
* No more `Blaze.runTemplate` (use `template.constructView`)
* `constructView` instead of `__makeView`
* template objects have `__kind` and `__render`
* No `__viewName`, `__templateName`
* `Template.__body__` is now `Template._body_` (and renamed methods)
* No `Template.__lookup__`, instead `(name in Template) && (Template[name] instance of Template)`
* `Template.__define__` replaced by `Template.__assign(name, template)`
2014-08-06 16:05:27 -07:00
David Glasser
26006d53dc Merge branch 'devel' into packaging
Conflicts:
	tools/utils.js
2014-07-30 17:40:44 -07:00
David Greenspan
75c30ef073 Fix scope of UI.contentBlock argument
Eric Dobbertin’s bug
2014-07-28 12:23:54 -07:00
Emily Stark
0f1e310a10 Test return value and argument of this.autorun 2014-07-25 16:19:47 -07:00
Emily Stark
1ac501784a Add test for this.autorun 2014-07-25 15:05:38 -07:00
David Greenspan
0cc2624c59 Fix #2339 (dynamic attributes on textareas) 2014-07-25 14:23:44 -07:00
David Greenspan
adeb649bf6 Fix Blaze.currentView in event handlers
with test
2014-07-25 13:57:47 -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
David Greenspan
c8d7821deb Uncommitted change for 2e191e0 2014-07-16 16:28:54 -07:00
David Greenspan
2e191e0b09 Add regression tests for d56d9da
Make sure inclusions with one path segment like “..” and “foo” (where foo is in the data context) don’t cause the enclosing template to re-render when the data context changes.
2014-07-16 15:06:20 -07:00
David Greenspan
01d538fc37 Prevent error in console when running tests 2014-07-15 16:45:32 -07:00