Commit Graph

6003 Commits

Author SHA1 Message Date
Ronen Babayoff
eeb95efaed Add no-ops for Meteor.publish, methods, and onConnection if no webapp 2015-01-27 17:45:22 -08:00
Sashko Stubailo
fee892c43e Merge pull request #3550 from romanzolotarev/patch-1
Update README.md
2015-01-27 11:58:06 -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
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
5ca2fb0f36 history notes and shorten lines 2015-01-26 15:23:06 -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
Roman Zolotarev
81cfe6ce65 Update README.md 2015-01-25 15:29:46 +07: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
Slava Kim
7576e0f3f6 Add a comment about why we grab template callbacks first and then fire them
later
2015-01-21 20:11:22 -08:00
Slava Kim
f146489c27 Fix the bug of firing a rendered callback when it was added too late 2015-01-21 12:26:51 -08:00
Slava Kim
e2b78cfd0b Merge branch 'templateEventsMethods' into devel
Adds Template#onRendered, Template#onCreated and Template#onDestroyed methods
2015-01-21 11:02:09 -08:00
David Glasser
fb8a79ba0f some comments about imported package versions 2015-01-20 22:47:25 -08:00
ekatek
27f7daa7f8 Merge branch 'master' into devel 2015-01-20 18:03:40 -08:00
David Glasser
0cf3dbd3a9 Clarify 2015-01-20 17:45:03 -08:00
Robert Lowe
b420c8d651 Update outdated README.md
ReactiveDict's have been able to migrate since: 624035fab8

See [session](https://github.com/meteor/meteor/blob/devel/packages/session/session.js) as an example.
2015-01-20 17:45:03 -08:00
ekatek
38e0e344c4 prepare for 1.0.3.1
- increment the release number in banners.json
- increment version number for meteor-tool
- increment release number in the release configuration
2015-01-20 13:50:34 -08:00
ekatek
c5bc843816 bring README.md files up to 1.0.3 compatibility
Fill in all packages without README.md files with a short
README.md mentioning that this is an internal Meteor package.

Break up the top paragraph of a couple of existing README.md
files to be proper long description.

There is more work to do here, involving line wrapping and the like.
2015-01-20 12:21:35 -08:00
ekatek
99124d881a increment package versions 2015-01-20 10:25:22 -08:00
Slava Kim
9e7c14ac81 Globally replace Template.rendered callbacks to Template.onRendered
In:

- examples
- some blaze tests
- packages

Change:

- rendered -> onRendered()
- created -> onCreated()
- destroyed -> onDestroyed()
2015-01-16 16:36:23 -08:00
Slava Kim
6aff197c47 Better comments.
In response to Sashko's comments.
2015-01-16 10:47:51 -08:00
David Greenspan
c71e495e10 Only test constraint-solver and PVP on server
You can still include them on the client, but they don’t work in
Safari 4 and IE 8 because semver.js uses ES 5 methods including
String#trim, Array#map/filter/forEach, and possibly others.

This should fix any unit test failures in these packages.
2015-01-15 22:15:23 -05:00
ekatek
fbfd5c4664 increment version numbers 2015-01-15 10:50:09 -08:00
David Greenspan
c1556f250b remove old comment 2015-01-14 20:29:39 -08:00
David Glasser
a1f8394750 Fix double execution of Session.close
In Session.close, `self.socket.close` could trigger this event handler:

    socket.on('close', function () {
      if (socket._meteorSession) {
        Fiber(function () {
          socket._meteorSession.close();
        }).run();
      }
    });

which could trigger a reentrant call to Session.close.  The self.inQueue
guard was not sufficient to stop multiple execution, because it was too
low.

Symptoms included:

- The "sessions" server fact would be decremented twice and become
  inaccurate (and even negative!)
- Connection.onClose callbacks could be called twice

Fixes #3331.
2015-01-14 18:37:24 -08:00
David Glasser
25c11c69cf Fix double execution of Session.close
In Session.close, `self.socket.close` could trigger this event handler:

    socket.on('close', function () {
      if (socket._meteorSession) {
        Fiber(function () {
          socket._meteorSession.close();
        }).run();
      }
    });

which could trigger a reentrant call to Session.close.  The self.inQueue
guard was not sufficient to stop multiple execution, because it was too
low.

Symptoms included:

- The "sessions" server fact would be decremented twice and become
  inaccurate (and even negative!)
- Connection.onClose callbacks could be called twice

Fixes #3331.
2015-01-14 17:50:16 -08:00
David Glasser
4ba315d2f6 Semi-expose password hashing
See #3410.
2015-01-14 12:05:05 -08:00
ekatek
4c42a87721 increment versions 2015-01-13 19:32:42 -08:00
ekatek
40fa95830f increment version numbers 2015-01-13 19:30:27 -08:00
ekatek
60883bc4d8 release script and bump tool version 2015-01-13 19:20:33 -08:00
David Glasser
9ce81d8f3b Semi-expose password hashing
See #3410.
2015-01-13 19:12:17 -08:00
Avital Oliver
547e8f6111 Add spacebars->tracker package dependency
Fixes #3395
2015-01-13 18:00:06 -08:00
Avital Oliver
cb4f69a4df Use Spacebars comment instead of HTML comment in accounts-ui
Fixes #3384
2015-01-13 17:40:46 -08:00
Rodrigo Estebanez
87e3c6499d add tokenId to google response
Signed-off-by: Rodrigo Estebanez <restebanez@mdsol.com>
2015-01-13 16:57:24 -08:00
Small Helm LLC
97d4dc54df using Meteor._relativeToSiteRootUrl for CSS reload 2015-01-13 16:07:38 -08:00
ekatek
035e95d154 remove the packages from the README
After some consideration, we decided that the extra package list in the README
is not up to date, will never be kept up to date and as such, is actively
unhelpful.
2015-01-13 13:53:22 -08:00
ekatek
2d98e1e195 move list of packages out of the top section of the meteor-platform README.md
Move the list of packages out of the top section of the `meteor-platform` README.md,
because it doesn't play well with `meteor show`. Leave it in the section below for
people that run into the README in some other context (for example, Atmosphere).
2015-01-13 13:53:22 -08:00
David Greenspan
7f87518477 Unit test for upgrading indirect dependencies
This test is a more representative example of the new type of
PackagesResolver tests we can have now using CS.Input.
2015-01-13 13:42:45 -08:00
David Greenspan
bb573f9119 Reproduce slow version solving in a test
This unit test demonstrates 20-second solving time.  Thanks to the
CatalogCache abstraction, the data provided to the solver in the test
is exactly the data it gets when running the “meteor” command in a test
app with a bunch of packages in .meteor/packages and no .meteor/versions
file.

The test is hidden behind an environment variable:
CONSTRAINT_SOLVER_SLOW_TESTS
2015-01-13 11:03:51 -08:00
David Greenspan
4f473ff2d2 “meteor update” can update non-root dependencies
Previously, “meteor update foo” meant “ignore .meteor/versions for foo”,
which would upgrade if “foo” was a root dependency, and downgrade if foo
was only a transitive dependency.

Now, we make sure to try to upgrade foo even if it is not a root
dependency.

See #3282.
2015-01-13 09:34:50 -08:00
David Glasser
8cddf2db41 don't assume defined, shorten lines 2015-01-12 14:36:37 -08:00
Daniel Dornhardt
3372e660d0 Fix Css autoupdate for pages with ROOT_URL_PATH_PREFIX set
For pages using a ROOT_URL="" setting with a path component (eg.
"myproject.com/beta"), the CSS autoupdate would break the page, because
it would set the autoupdate CSS files' URL to /<longidstring>.css, while it
should have been /beta/<longidstring>.css. Added the required
ROOT_URL_PATH_PREFIX.
2015-01-12 14:31:20 -08:00
David Glasser
106337311e use upsert method, fix indentation 2015-01-12 14:06:29 -08:00
Daniel Dent
f12b08947a Avoids a race condition when multiple server instances are backed by the MongoDB database. MongoDB does not have transactions, atomic upserts are used instead. 2015-01-12 14:05:00 -08:00
Dan Dascalescu
6bc6abee85 Direct link to templating doc 2015-01-12 11:16:06 -08:00
Avital Oliver
becc877b6b Fix link in accounts-ui-unstyled README 2015-01-12 11:03:33 -08:00
David Greenspan
16e74a8fe0 Constraint[List].isSatisfied doesn’t need resolver
More code simplification
2015-01-09 19:07:05 -08:00
David Greenspan
7bdc6ccdeb Create CS.Input and clean up resolver options
CS.Input is a serializable representation of the “problem.”  It includes
the arguments to PackagesResolver#resolve, and also the catalog data
loaded into the CatalogCache.  It’s independent of the solver, and
doesn’t even know about PackagesResolver or Resolver.

Along the way, get rid of the _testing and _debug flags.  “_testing”
came about to avoid running the real cost function on some of the unit
tests, but it doesn’t actually seem to matter anymore for correctness
or performance of the tests.  “_debug” was just used to enable some
console.logs, and possibly shouldn’t have been committed in the first
place.
2015-01-09 18:55:10 -08:00
David Greenspan
3447f85326 PackagesResolver: Delete line that does nothing 2015-01-09 16:42:41 -08:00
David Glasser
1f9648cd23 Upgrade jquery to 1.11.2 from 1.11.0
Closes #2386.
2015-01-09 16:36:58 -08:00