Commit Graph

12685 Commits

Author SHA1 Message Date
Sashko Stubailo
e2ad1fdbbf Turn off new parens rule 2015-01-28 22:18:10 -08:00
Sashko Stubailo
36dfb1dc83 Add warehouse.js to ignore for linting because it's old 2015-01-28 22:14:57 -08:00
Sashko Stubailo
b6e804f5ef Add eslintignore with everything but tools js files 2015-01-28 22:13:11 -08:00
Sashko Stubailo
5e029ba736 Add ESLint and fix most linter errors in watch.js 2015-01-28 21:47:22 -08:00
David Greenspan
361a80c243 Changes from Glasser code review
Includes all discussed changes except:
- Checking for troposphere PVP compatibility
- "vConstraint" -> "versionConstraint"
- "name" -> "package" in utils.parsePackageAtVersion
2015-01-28 16:45:01 -08:00
Sashko Stubailo
633cfc21ae Add a way to reproduce previous behavior to History.md 2015-01-28 11:31:53 -08:00
Sashko Stubailo
07dc77ee5c Mention that the test tests helpers as well 2015-01-28 11:28:55 -08:00
Sashko Stubailo
58d921e926 Test in browser doesn't need docs right now
Conflicts:
	packages/test-in-browser/package.js
2015-01-28 11:06:28 -08:00
Sashko Stubailo
6b0f3d03b6 Improve History.md entry 2015-01-28 10:43:09 -08:00
Sashko Stubailo
368e8798a7 Update README.md 2015-01-28 10:21:24 -08:00
Sashko Stubailo
d2d05bedf5 Improve comment 2015-01-28 10:15:23 -08:00
Sashko Stubailo
06de4ae803 Merge branch 'event-current-data' into devel
Merge #3546

Use separate dynamic variable to track Template.instance(), and use
Blaze.currentView for Template.currentData() in event handlers
2015-01-28 10:12:35 -08:00
Sashko Stubailo
7201dbe84c Fix broked COMPAT comment 2015-01-28 10:06:38 -08:00
David Glasser
2771483390 Show 'admin' in top level 'meteor help'
Addresses #3474.
2015-01-27 18:44:03 -08:00
David Glasser
5269adefb1 Make 'meteor search' docs match implementation
Making the implementation match the previous docs is now a feature
request: #3521
2015-01-27 17:59:40 -08:00
David Glasser
5c83a94edd Merge branch 'pr/3530' into devel
Fixes #3530. Fixes #3529.
2015-01-27 17:50:24 -08:00
David Glasser
f8f90f949c Add a comment explaining why this file is so weird 2015-01-27 17:48:33 -08:00
Ronen Babayoff
eeb95efaed Add no-ops for Meteor.publish, methods, and onConnection if no webapp 2015-01-27 17:45:22 -08:00
David Glasser
074087be8a meteor login --email was supposed to be boolean!
See #3532.

We honestly should probably just drop the option and allow you to type
either a username or a password, just like in accounts-ui.

Because options have to be consistently bool or not across commands (so
that you can put them before the command name), change the testing-only
dummy command's string option to a different nonsense name.
2015-01-27 14:17:41 -08:00
Sashko Stubailo
fee892c43e Merge pull request #3550 from romanzolotarev/patch-1
Update README.md
2015-01-27 11:58:06 -08:00
Avital Oliver
f2840103ca Tests for Template.currentData and Template.parentData
A recent change fixed the behavior of `Template.currentData`
and `Template.parentData` in event handlers and helpers.
These are tests for the new, correct behavior.

(The old behavior read the data of the template instance.
The new behavior read the data context around the DOM node
where the event or helper ran)
2015-01-26 16:44:50 -08:00
Sashko Stubailo
b0ecad0ce2 Fix documentation of Template.currentData 2015-01-26 16:16:30 -08:00
David Glasser
93805ca3b6 Merge branch 'pr/2938' into devel
Fixes #2938.
2015-01-26 15:57:21 -08:00
David Glasser
e2706b1390 History update. 2015-01-26 15:57:10 -08:00
David Glasser
1829cfee15 Remove obsoleted comment 2015-01-26 15:55:50 -08:00
Andrew Wilcox
5f1c8f2eeb Add spiderable support for hash fragments
Since the browser application cache appears not to support URL path
routes in a non-buggy way (see
https://github.com/meteor/meteor/pull/2926), applications using the
appcache package will want to use hash fragment routes instead.

This PR adds support to the spiderable package for hash fragment
routes.  An original URL such as `http://example.com/#!a=1&b=2` will
be encoded by a search engine as an escaped fragment, decoded by the
spiderable package, passed through to the phantomjs process, and
appear to the phantom client as `#!a=1&b=2` in `window.location.hash`
(the same as when the original URL is opened in a regular browser).
2015-01-26 15:54:47 -08:00
Avital Oliver
5862ec0363 Make Template.instance() correct in this.autorun() in templates
A previous change decoupled "current view" from "current template instance".
The code made sure to preserve "current view" explicitly within
`this.autorun`, but now we need to do the same for "current template instance"
2015-01-26 15:52:44 -08:00
David Glasser
c51eed9330 Clone return value from server-side method call
The server-side Meteor.call abstraction is "RPC", not "function call",
so you shouldn't be able to mutate internal state using it. This is a
similar change to that done in e91713d9 with function parameters.

Fixes #3201.
2015-01-26 15:36:48 -08:00
David Glasser
72949bb271 Merge branch 'pr/2858' into devel 2015-01-26 15:23:20 -08:00
David Glasser
5ca2fb0f36 history notes and shorten lines 2015-01-26 15:23:06 -08:00
Avital Oliver
99ca826040 Fix test failure by binding Template.instance() later
Prior to this change, a dependency was registered on
`Template.instance` when wrapping a helper, rather
than when it is called. This caused templates to get
re-rendered more frequently than necessary as caught
by a test failure, and probably many other bugs.
2015-01-26 15:19:56 -08:00
David Glasser
a355dd213d Allow individual email templates to override From
Also allow accounts-password email templates to set mail headers, and
for the From override to be a function rather than a constant.

Fixes #2858. Fixes #2854.
2015-01-26 15:19:19 -08:00
David Glasser
0c7b6dd460 History updates 2015-01-26 15:18:02 -08:00
David Glasser
c42ecf45af Ignore vim swap files in public and private dirs
We were already ignoring anything beginning with a dot in *source* files
in the app, but not in *asset* directories.

Notably, this means that vim swap files won't get bundled into your app,
and that hot code reload won't be triggered by editing asset files until
you actually save them!

Fixes #3322.
2015-01-26 15:10:15 -08:00
David Glasser
3d5e81bf23 Test the right packages with --test-app-path
Usually the project used for test-packages is a brand-new temporary
project. But you can also use --test-app-path, either for performance
reasons (to share the .meteor/local/isopacks cache between executions)
or because Cordova has issues with /tmp.  Previous to this change,
though, test-packages would leave packages in .meteor/packages from a
previous execution, even if they were packages that we are no longer
testing.

Fixes #3446.
2015-01-26 14:57:42 -08:00
Roman Zolotarev
81cfe6ce65 Update README.md 2015-01-25 15:29:46 +07:00
David Glasser
02f799e041 docs: disable appcache on Firefox
Fixes #3248.
2015-01-23 17:06:44 -08:00
David Glasser
10173c0ca5 Stop semi-supporting Npm.require in package.js
It can be used to get things like `path` (though you can just use '/'),
but trying to require the packages whose list is determined by running
the file while running the file just doesn't make any sense.
2015-01-23 16:58:33 -08:00
Sashko Stubailo
7ec339e5b8 Add tests for #3540 2015-01-23 16:57:13 -08:00
Sashko Stubailo
a769371e5b Make a new dynamic variable for Template.instance() 2015-01-23 16:51:22 -08:00
David Glasser
8a39b84e49 Merge branch 'pr/3526' into devel
Fixes #3505. Fixes #3526.
2015-01-23 16:50:12 -08:00
David Glasser
6bb5516010 history update 2015-01-23 16:49:19 -08:00
David Glasser
71af635a25 improve JsImage.load Npm.require errors
- Use buildmessage (skips stack trace)
- Drop extraneous trailing single quote
- Say "from" instead of "while loading" since this can also happen
  when running code from the file after load time
2015-01-23 16:47:49 -08:00
David Glasser
806ecd827b Support Npm.require('foo/bar') in JsImage.load
(ie, plugins and isopackets)
2015-01-23 16:44:02 -08:00
David Glasser
d4e1f80bf7 Add a comment 2015-01-23 16:43:52 -08:00
gsuess
2bd8eae66b Npm.require load correct submodule 2015-01-23 16:33:10 -08:00
gsuess
be11590dbe Fix Npm.require() package sub-modules. 2015-01-23 16:33:10 -08:00
Sashko Stubailo
72887bb0ee Make event handlers get called with target's view 2015-01-23 15:05:34 -08:00
Ekaterina Kuznetsova
8ac477a19b Change latest History.md version to 1.0.3.1
We never released 1.0.3, since there was a race condition around creating bootstrap tarballs. The latest version in History.md should be 1.0.3.1
2015-01-23 12:07:30 -08:00
Mitar
8f1de90afb Don't limit test helpers only to tests.
This allows other packages to extend/wrap existing test helpers (like testAsyncMulti).
2015-01-22 15:30:10 -08:00