Commit Graph

5988 Commits

Author SHA1 Message Date
Slava Kim
219357098a Temporarily copy-paste version-parser 2015-01-20 22:03:24 -08:00
Slava Kim
9db7c37737 Bad code: copy paste package-version-parser.js
The symlinks don't work that well on Windows.
This will require some other workaround.
2015-01-20 22:03:23 -08:00
Emily Stark
1c6a11e243 Make tool able to do oauth against new and old OAuth configurations
Previously, the tool was hard-coded to use "?close" at the end of
redirect uris when it did OAuth flows with e.g. package servers or build
farms. Now, we use the same logic that the server uses to compute its
redirect uri: we add "?close" if a loginStyle option is present in the
configuration.
2015-01-20 22:03:23 -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
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
David Glasser
9023cccc28 Clean up PR 2015-01-09 15:53:49 -08:00
Tarang Patel
056e0acbd0 Update routepolicy.js 2015-01-09 15:49:04 -08:00
Tarang Patel
f319109634 Update webapp_server.js 2015-01-09 15:49:04 -08:00
Tarang Patel
5aba891199 Update webapp_server.js 2015-01-09 15:49:04 -08:00
Peter Curtis
1f3741cba2 Fix a failure to detect flush-in-autorun
Fixes #3037.
2015-01-09 15:31:30 -08:00
David Greenspan
4e3a8d9506 Clarify options to resolve(…) and Resolver
Don’t mutate the “options” object in PackageResolver#resolve, and don’t
pass it on to _getResolverOptions.

At this point, this is rearranging deck chairs on the Titanic, but
making this code more understandable helps me replace it.
2015-01-09 12:24:35 -08:00
David Greenspan
9e7a79074f Merge branch 'dgreensp-constraint-solver-2' into devel 2015-01-09 10:58:16 -08:00
David Greenspan
9d9dec602f Use the CatalogLoader in PackageResolver
PackageResolver no longer loads data from the Catalog.  Instead, it
tells CatalogLoader what to load, and it sets up the Resolver based
on what it finds in the CatalogCache.

PackageResolver now creates the Resolver inside resolve(…).  If the tool
were to invoke resolve(…) multiple times on the same PackageResolver
(which it doesn’t at the moment), the CatalogCache would persist, but
not the Resolver.  (Note that PackageResolver#resolve makes multiple
calls to the same Resolver#resolve internally.)

The purpose of this change is to stop using Resolver to store the
dependency graph.  Resolver will be replaced with a logic-solver-based
implementation that will not represent the graph as is, but instead
encode the graph as a satisfiability problem.  Meanwhile, CatalogCache
is better at storing the graph than Resolver was, because it is easy
to populate, query, and serialize.

This change brings us back to a functional “devel”.
2015-01-09 10:26:06 -08:00
David Greenspan
329227db53 CS.CatalogLoader 2015-01-08 16:25:42 -08:00
David Greenspan
2fbb1b9cb5 CS.CatalogCache and tests 2015-01-08 15:34:04 -08:00
David Greenspan
68e3cbe07f Dependency can take a String argument 2015-01-08 15:33:55 -08:00
David Glasser
60ba1f403b Revert "Use per-message websocket compression"
This reverts commit 67bea9c102.

See https://github.com/faye/permessage-deflate-node/issues/1

This can be consistently replicated by running test-packages ddp (note
that the tests pass but then the server crashes). "livedata server -
connection in publish function" specifically is enough
2015-01-08 14:26:28 -08:00