Commit Graph

5906 Commits

Author SHA1 Message Date
David Glasser
6b204ca73a Bump package versions for 1.0.2 2014-12-19 10:31:59 -08:00
David Glasser
533ff573ce update autoupdate QA 2014-12-18 17:32:34 -08:00
Tim Haines
28ae4d48c2 Doc fix: meteor bundle -> meteor build 2014-12-18 10:46:44 -08:00
David Glasser
4723a310ab 1.0.2-rc.7 2014-12-17 14:41:12 -08:00
David Glasser
7239b4051c 1.0.2-rc.6 2014-12-17 00:22:47 -08:00
David Glasser
6c43678bc0 Clear two types of tokens on Accounts.setPassword 2014-12-16 17:46:26 -08:00
Emily Stark
d700610397 Disallow mixed modifier/non-modifier fields in updates
We expect modifiers to be either modifiers or replacements, not a
mix. MongoDB does this check also, but do it in meteor too as a safety
belt.
2014-12-16 17:16:26 -08:00
Emily Stark
d9feb32148 Disallow EJSON custom types as replacement documents in updates 2014-12-16 17:16:13 -08:00
Emily Stark
747dd88bbf Clear password reset tokens on password change
Conflicts from devel:
	History.md
2014-12-16 17:16:02 -08:00
Ben Newman
f5dc40765c Package version bumps. 2014-12-15 21:51:25 -05:00
David Glasser
c120069ff6 1.0.2-rc.3 2014-12-12 17:38:27 -08:00
David Glasser
e4b32c9dc5 1.0.2-rc.2 2014-12-12 07:53:45 -08:00
David Glasser
73b809c122 Bump versions for 1.0.2. 2014-12-11 22:44:41 -08:00
David Glasser
38c28c14bc Upgrade esprima and escope 2014-12-11 13:44:03 -08:00
David Glasser
0ed8a9b32d bump package versions for a test release 2014-12-10 14:50:11 -08:00
David Glasser
44563f13b4 Allow prerelease parts with digits and nondigits
Previously the constraint solver crashed on such things.

Fixes #3147.
2014-12-09 20:33:06 -08:00
David Glasser
6ea8443f30 Update calls to addFiles, onUse, and onTest 2014-12-09 20:18:31 -08:00
David Glasser
e7bfa5202e Update packages to use Package.registerBuildPlugin 2014-12-09 20:09:34 -08:00
David Greenspan
f9339a8f26 Merge branch 'blaze-render-with-data-gc' into devel 2014-12-09 13:18:26 -08:00
David Greenspan
ab92f117ae Expand fix for #3130
If you Blaze.remove a View that is a template rendered by Blaze.renderWithData, or included with an implicit “with” as in `{{> myTemplate someData}}`, Blaze will now remove the DOM of the template, and also remove the implicit “with” (in both cases).

As background, Blaze.remove only works on Views that were attached directly under a DOM element, not inside another View.  Blaze.render always attaches the resulting View directly under a DOM element, but Blaze.renderWithData creates a “with” View around the template View.  Previously, you could Blaze.remove the “with” View (which is returned by renderWithData), but if you got access to the template’s View some other way and tried to remove it directly, nothing would happen.  Now, the correct thing happens (the View is destroyed and the DOM is removed).

In the future, we should consider whether Blaze.remove should work on arbitrary Views, not just Views attached under a DOM element.
2014-12-09 13:17:12 -08:00
Emily Stark
71652f9b9f Merge branch 'master' into devel
Conflicts:
	History.md
	docs/client/data.js
	docs/client/full-api/concepts.html
	docs/client/full-api/tableOfContents.js
	examples/localmarket/.meteor/packages
	packages/ddp/package.js
	packages/meteor-tool/package.js
	packages/mongo/package.js
	scripts/admin/manifest.json
2014-12-09 13:15:29 -08:00
Emily Stark
2cbad1fe9e bump ddp version number 2014-12-09 10:36:51 -08:00
Emily Stark
7545e05eb4 Bump package version numbers 2014-12-09 10:35:23 -08:00
Emily Stark
77a1257e51 Clone options before mutating 2014-12-08 19:05:41 -08:00
Mitar
847e64b02f doneCallback is not necessary defined. 2014-12-08 18:54:44 -08:00
Emily Stark
871e3d88f2 Explicitly forbid replaces from validated updates. 2014-12-08 18:33:22 -08:00
Slava Kim
ebce6c46aa Add a blaze test for #3130 2014-12-08 17:05:05 -08:00
Slava Kim
918a9e0a6b Use a special flag to mark when Blaze views have..
autogenerated parents those need to be gc'd with their children.
Should help with #3130
2014-12-08 16:38:01 -08:00
Emily Stark
4064b6562c Check that 'mutator' is an object 2014-12-08 14:33:30 -08:00
David Greenspan
3aadefa71d History.md and docs tweaks 2014-12-08 14:01:03 -08:00
David Greenspan
27af08c78b Merge branch 'devel' into mitar-parentdata 2014-12-08 13:20:39 -08:00
Mitar
d6fd5c21bc Added tests and documentation. 2014-12-07 13:30:38 -08:00
Mitar
fda7524ff8 Default for Template.parentData set to 1. 2014-12-07 13:08:04 -08:00
Emily Stark
24d8fec98f Check for parent process only every few seconds.
Fixes #3252. Also probably fixes #2890, which we might have misattribued
to file watching in the tool process.
2014-12-07 09:34:45 -08:00
Sashko Stubailo
0cdc382a72 Replace occurences of "elide" with "omit" 2014-12-05 15:32:57 -08:00
Emily Stark
42fe3847a7 Check for empty mutators in validated updates 2014-12-05 12:11:21 -08:00
David Glasser
2a2bf8a460 Improve comment and add History note 2014-12-03 14:46:05 -08:00
Matteo De Micheli
931edada9f Do special argument check for NaN values 2014-12-03 14:44:08 -08:00
David Glasser
2f90467da0 Optimize constraint solver's catalog interface
We shouldn't ask sqlite for a list of rows and then go back and ask for
each row one by one!

Addresses #3043.
2014-12-01 19:20:28 -08:00
David Glasser
de9536172e Fix anticipated pre-release calculation
This commit fixes a 0.9.3 regression where the calculation of the
topLevelPrereleases object was not updated with the introduction of
disjunction constraints (||) and would always be empty.

topLevelPrereleases and useRCsOK are merged into a single
anticipatedPrereleases option which is now passed in to the
constraint-solver package rather than constructed inside it. (This
object will also be used in ProjectContext as part of PackageDelta
calculation.)

The usedRCs return flag is now called
neededToUseUnanticipatedPrereleases.
2014-12-01 01:26:34 -08:00
David Glasser
8b953ece72 version bump 2014-11-25 09:06:27 -08:00
David Glasser
de5f68cf70 bump all versions (due to source-map upgrade) 2014-11-25 09:06:26 -08:00
David Greenspan
b132dcb677 Minor changes to Resolver
There were too many things called `constraints` — ConstraintsList objects, arrays and maps of Constraint strings or objects… Also “alternatives” is already taken, so use “disjunction.”  Consider propagating this rename upstream to package-version-parser, since it’s kind of weird that “constraints” is implicitly a disjunction (rather than, say, a conjunction).

Don’t call a constraint string a version string.
2014-11-24 17:16:33 -08:00
David Greenspan
29fb67931b Clean up logic around pre-releases in solver
When it comes to pre-releases, Constraints aren’t “context-free.”  That’s ok for now, but at least hoist the pre-release check out of the innermost loop.  Ideally we’d hoist it higher, but I can see that it’s pretty convenient this way.

Should be identical in behavior to before (differing maybe in some super edge case, but I doubt it).
2014-11-24 15:28:06 -08:00
David Greenspan
fee326899a Remove unreachable case in Constraint#isSatisfied 2014-11-24 14:25:48 -08:00
David Greenspan
9a4428bf6e Don’t support #arch when parsing a constraint 2014-11-22 17:29:54 -08:00
David Glasser
fb6b39d956 explicitly search for non-weak dep
dep.references ought to never be empty, but if it is we should consider
that to not be a dependency!
2014-11-22 14:20:57 -08:00
David Glasser
cec75e527c constraint edges are by package, not unibuild
Consider the following situation:

  - app uses package P
  - Every version of P contains `api.use('s', 'server')`
  - Every version of S contains `api.use('c', 'client')`
  - There's nothing else around using S or C

When we bundle our app, we will not end up putting any unibuilds from C
into the bundle. That's fine.

The previous version of the constraint solver understood this, and so C
wasn't even part of the constraint solver solution.

HOWEVER, even though C does not contribute any unibuilds to the app
bundle, we still need to compile C in order to compile S. That's because
our current implementation never compiles only part of an isopack, even
if only part of the isopack will be needed for the app.

The structured project initialization done via ProjectContext will thus
decide to not build or load C, which will make it fail to compile S when
it gets around to compiling the client unibuilds in S.

We could make the model more complex by making it possible to compile
only part of S.

Instead, we'll make the Meteor package model simpler.  Constraints, as
far as the constraint solver is concerned, are now at a package level.
So in this case, "C" will actually be part of the project (will end up
in .meteor/versions, etc) even though it will continue to not provide
any part of any of the bundled client or server programs.

This means that nodes in the constraint solver's graph will now just be
package versions, not unibuild versions.  That's already the language
that the constraint solver spoke in as far as its inputs, outputs, and
error messages were concerned!

An example of an app that couldn't be built on the isopack-cache branch
before this commit and can be now is
  https://github.com/glasser/precise-constraints-example
(It can be built with 1.0, but only by compiling a version of `c` that
isn't part of .meteor/versions!)

Note that this also means that .meteor/versions expresses enough to
allow us to implement a simpler constraint check that doesn't need to do
the full tree walk of the constraint solver.  Such a checker would be
implemented as:

  - gather root dependencies and constraints (project constraints,
    release constraints, etc)
  - add the dependencies and constraints from all versions mentioned
    in .meteor/versions
  - see if the choices made in .meteor/versions satisfy these
    dependencies and constraints

This algorithm did NOT work previously, because you couldn't just look
at the constraints coming from `s@0.0.0` and say "they're satifisfied"
because you had to know to "ignore" the constraint on c#web.browser
because s#web.browser is not part of the app, which is not a fact that
actually got recorded in .meteor/versions.

(This commit does not implement this simpler constraint check, though.)
2014-11-22 14:20:39 -08:00
David Greenspan
b1ba8c3a64 Fix comment in resolver 2014-11-21 12:43:01 -08:00
Andy Lash
6b8221d0f9 made query parameter available to oauth1 services 2014-11-17 13:44:13 -08:00