Commit Graph

61 Commits

Author SHA1 Message Date
David Glasser
dde3924c9d Make MongoConnection constructor always wait
Summary:
Previously, the MongoConnection constructor (which gets called
implicitly the first time you make a Mongo.Collection) would wait for a
successful connection before returning ... if an oplog URL is supplied.
If not in oplog mode, it would return before the connection is
successful, and the first subsequent calls that actually tried to do
something with the DB would block instead.

Having an inconsistent API that is sometimes sync and sometimes async is
not very clear.  Moreover, error handling from connect was strange.
Prior to 0.8.1 (24a0006c), connect errors would be thrown
uncatchably (ie, from an unrelated context).  Starting with 0.8.1,
connect errors would effectively be ignored due to the new
bindEnvironment (they'd be logged, but all code would continue
normally).

It's pretty important that startup connection errors crash the server
process instead of letting it keep running unproductively.  And it would
also be nice if those errors could be caught (if you're making a
MongoConnection in your own code).  So this change ensures that
connection errors get thrown by the MongoConnection constructor.

Fixes #3038.

Test Plan: new unit test. manual test with MONGO_URL=xxx

Reviewers: ben

Subscribers: justinsb

Differential Revision: https://phabricator.meteor.io/D19
2015-01-29 16:56:22 -08:00
David Glasser
5990e71ddc Remove legacy AppConfig code
Nothing ever made full use of the promise of the complexity of the
API (configuration that can change at runtime) anyway.

This includes completely ignoring the $APP_CONFIG variable.

I opened GitHub issues against the only Atmosphere packages that had
dependencies on application-configuration (none of which actually used
the package other than by declaring the dependency).
2015-01-29 14:03:20 -08:00
David Glasser
62037959fe Clean up comments about legacy code 2015-01-29 14:03:11 -08:00
David Glasser
4ece886c36 1.0.2.1 2014-12-22 16:52:44 -08:00
David Glasser
837c5faddf 1.0.2.1-rc.1 2014-12-22 12:33:14 -08:00
David Glasser
6b204ca73a Bump package versions for 1.0.2 2014-12-19 10:31:59 -08:00
David Glasser
7239b4051c 1.0.2-rc.6 2014-12-17 00:22:47 -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
David Glasser
73b809c122 Bump versions for 1.0.2. 2014-12-11 22:44:41 -08:00
David Glasser
6ea8443f30 Update calls to addFiles, onUse, and onTest 2014-12-09 20:18:31 -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
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
Emily Stark
871e3d88f2 Explicitly forbid replaces from validated updates. 2014-12-08 18:33:22 -08:00
Emily Stark
4064b6562c Check that 'mutator' is an object 2014-12-08 14:33:30 -08:00
Emily Stark
42fe3847a7 Check for empty mutators in validated updates 2014-12-05 12:11:21 -08:00
David Glasser
de5f68cf70 bump all versions (due to source-map upgrade) 2014-11-25 09:06:26 -08:00
Slava Kim
cc82180925 More return tags for Collections 2014-11-02 03:28:37 -08:00
Emily Stark
cb54ae18fb Merge branch 'master' into devel
Conflicts:
	History.md
	examples/localmarket/.meteor/release
	examples/localmarket/.meteor/versions
	packages/stylus/README.md
	tools/compiler.js
	tools/package-client.js
	tools/tests/old/app-with-private/.meteor/versions
	tools/tests/old/app-with-public/.meteor/versions
	tools/tests/old/empty-app/.meteor/versions
2014-10-28 10:42:30 -07:00
Geoff Schmidt
a6cbb5f264 another link in mongo readme 2014-10-28 09:36:03 -07:00
Avital Oliver
2ca942f9cb Correct links to www.meteor.com project pages 2014-10-28 02:54:45 -07:00
Emily Stark
b4c10d8f61 bump package versions 2014-10-28 02:49:54 -07:00
Slava Kim
417bcdeaff The actual skeleton for mongo 2014-10-23 17:39:19 -07:00
Slava Kim
dbb1d36933 Skeleton Readme for mongo 2014-10-23 15:22:48 -07:00
Emily Stark
6fc46976da bump package version for 1.0-rc.3 2014-10-22 12:58:12 -07:00
Eric Wyne
1042e00e16 clean up comment - remove _wrapAsync
_wrapAsync is deprecated. Clarify comment to remove future confusion.
2014-10-20 17:26:36 -07:00
Emily Stark
827b206c02 bump package version numbers for 1.0-rc.0 2014-10-17 16:10:40 -07:00
Ben Newman
ca2322e05b Use Npm.strip to remove some extraneous large files from core packages.
So far I have only removed files from packages that are included by
default in newly `meteor create`d projects. We should probably make a pass
over all the core packages, too.
2014-10-17 18:24:31 -04:00
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
ekatek
bab557d49b incrementing package versions for a clean release 2014-09-25 18:34:34 -07:00
ekatek
220cc69e31 package versions incremented 2014-09-19 21:16:14 -07:00
Emily Stark
ccfee68145 Merge branch 'master' into devel
Conflicts:
	docs/client/api.html
	docs/client/data.js
	docs/client/names.json
	meteor
	packages/autoupdate/package.js
	packages/base64/.gitignore
	packages/constraint-solver/package.js
	packages/device-orientation/.gitignore
	packages/less/package.js
	packages/meteor-tool/package.js
	packages/meteor/package.js
	packages/package-version-parser/package.js
	packages/webapp/webapp_server.js
	scripts/admin/meteor-release-experimental.json
	tools/commands.js
	tools/help.txt
	tools/package-version-parser.js
	tools/run-all.js
	tools/tests/apps/build-errors/packages/with-colon-plugin/.gitignore
2014-09-15 14:48:57 -07:00
Emily Stark
d19f2bf49b Bump more package versions for 0.9.2 2014-09-15 12:05:03 -07:00
Emily Stark
833c6f5b4f Bump package versions for 0.9.2 2014-09-15 11:36:57 -07:00
Sashko Stubailo
8ee024d10b Improve docs 2014-09-09 11:38:41 -07:00
Emily Stark
8a8df1f89d Factor out 'base64' into its own package and use from 'oauth'.
'oauth' was using 'btoa', but it's not supported in IE8-9. We already
had a base64 implementation in 'ejson', so I factored it out into its
own package used by 'ejson' and 'oauth'.
2014-09-09 10:37:07 -07:00
Sashko Stubailo
6f829b32a9 Merge branch 'devel' into jsdocfinal
Conflicts:
	docs/client/api-box.js
	docs/client/api.html
	docs/client/data.js
	docs/client/nameToId.js
	docs/client/names.json
2014-09-05 18:43:20 -07:00
Slava Kim
3decef135a Bump package versions 2014-09-05 17:55:37 -07:00
Mitar
8dbdadf2c7 Allow limiting docs in capped collections 2014-09-05 17:02:27 -07:00
David Glasser
93d39a22ad Improve error when minimongo and mongo disagree
Addresses #2033 and #2244.
2014-09-05 16:46:25 -07:00
Ben Newman
b46e66e3ea Make Meteor.wrapAsync official, and simplify binding.
Summary:
To bind the wrapped function to an object, just pass that object as the
optional second argument to Meteor.wrapAsync:

  var response = Meteor.wrapAsync(HTTP.get, HTTP)("http://example.com");

Test Plan: meteor test-packages meteor

Reviewers: emily, avital, sashko

Reviewed By: emily

CC: nim

Differential Revision: https://phabricator.meteor.com/D807
2014-09-05 11:48:21 -07:00
David Glasser
cf4477ff27 Improve error when minimongo and mongo disagree
Addresses #2033 and #2244.
2014-09-04 22:07:22 -07:00
Sashko Stubailo
cb5c2c543d Document allow and deny
Add option for comma-separated options and arguments
2014-09-04 19:54:56 -07:00
Avital Oliver
c23408bdd7 versions for 0.9.1 2014-09-04 15:41:39 -07:00
Avital Oliver
808c90e3db Bump rc versions on packages 2014-09-01 00:16:00 -07:00