Commit Graph

3354 Commits

Author SHA1 Message Date
David Glasser
d1dd8a8e4d Refactor Avi's improved Meteor.Error to make it possible to use for other Error
subclasses.
release/0.6.2-rc0
2013-04-11 17:11:45 -07:00
Naomi Seyfer
654923abae cleaning up server to server connection tests 2013-04-11 16:03:23 -07:00
Avital Oliver
9b2b6f219d Expose Meteor.Error stack traces when thrown from method stubs in Firefox 2013-04-11 15:56:06 -07:00
Avital Oliver
8350f52b9d Improve Meteor.Error
- Capture stack traces on server (Meteor.Error objects are only created on the client, not thrown)
- Set a message
- Improve inheritence pattern

Before: (note that the stack trace shows the line in which Meteor.Error is defined, not where it got thrown)
===
- exception - message
Error
    at app/packages/livedata/livedata_common.js:143:26
    at /private/var/folders/tp/sc9b5w7n2qndz3chpmktwy_w0000gn/T/meteor-test-runikymph/.meteor/local/build/server/server.js:282:7
    at Array.forEach (native)
    at Function._.each._.forEach (/Users/avital/meteor/dev_bundle/lib/node_modules/underscore/underscore.js:79:11)
    at run (/private/var/folders/tp/sc9b5w7n2qndz3chpmktwy_w0000gn/T/meteor-test-runikymph/.meteor/local/build/server/server.js:227:7)

After:
===
- exception - message User validation failed [403]
Error: User validation failed [403]
    at app/packages/accounts-base/accounts_server.js:164:13
    at Array.forEach (native)
    at Function._.each._.forEach (app/packages/underscore/underscore.js:79:11)
    at Object.Accounts.insertUserDoc (app/packages/accounts-base/accounts_server.js:162:5)
    at Object.Accounts.updateOrCreateUserFromExternalService (app/packages/accounts-base/accounts_server.js:264:21)
    at null.func (app/packages/accounts-base/accounts_tests.js:18:28)
    at app/packages/tinytest/tinytest.js:299:16
    at app/packages/meteor/timers.js:54:36
    at _.extend.withValue (app/packages/meteor/dynamics_nodejs.js:31:17)
    at f (app/packages/meteor/timers.js:12:51)
2013-04-10 21:20:31 -07:00
David Glasser
47e4005cc0 Add package-specific notice for d3. 2013-04-10 10:29:09 -07:00
David Glasser
1fc7d7f94d Allow for package-specific notices. 2013-04-10 10:29:09 -07:00
Avital Oliver
04a5678c20 Improve docs consistency 2013-04-09 19:27:24 -07:00
Tim Haines
0ba549d403 Fix comment typo 2013-04-09 17:15:35 -07:00
David Glasser
308395da46 Spiderable.userAgentRegExps can now be modified to change what user agents are
treated as spiders by the spiderable package.
2013-04-09 16:03:57 -07:00
David Glasser
73afb30fb3 Merge branch 'pr/924' into devel 2013-04-09 15:57:07 -07:00
David Glasser
1a636a41e0 history.md update 2013-04-09 15:57:00 -07:00
Joshua Conner
a3a75e3961 Bump d3 to version 3.1.4 2013-04-09 15:57:00 -07:00
Naomi Seyfer
6414dd4e6f Fixing comment about stubs not yielding to be more accurate 2013-04-09 15:51:12 -07:00
Naomi Seyfer
6ca49a6d03 glasser asked for a comment 2013-04-09 15:41:20 -07:00
Naomi Seyfer
9a9e614333 Fix console error message about unexpected add on test refresh
* Give each testMulti a context that you can store test-local information on, as
js 'this'
* Also wrap stubs on the server in _noYieldsAllowed
2013-04-09 15:38:05 -07:00
David Glasser
1c5f93aef5 Merge branch 'pr/908' into devel 2013-04-09 15:16:09 -07:00
David Glasser
3392aaa1fe Update History.md. 2013-04-09 15:15:58 -07:00
jacott
757cc15c47 Return doc._id from minimongo LocalCollection.prototype.insert. Fixes issue #906 2013-04-09 15:13:46 -07:00
David Glasser
46822597b7 Merge branch 'pr/863' into devel 2013-04-09 15:02:52 -07:00
David Glasser
5280a91547 History update 2013-04-09 15:02:41 -07:00
andreas.karlsson
72abc7af92 Defensively copy arguments to observe callbacks 2013-04-09 14:23:52 -07:00
andreas.karlsson
eb982e7566 Added test to assert observe callbacks can't manipulate data 2013-04-09 14:23:52 -07:00
Naomi Seyfer
7a5ea822c9 Merge branch 'ddp-client-on-server' into devel 2013-04-09 12:00:13 -07:00
Naomi Seyfer
0a3146d88d nim comments the last 2013-04-09 11:56:22 -07:00
Naomi Seyfer
fe6f40774d Move a constant only applicable to the sockjs version 2013-04-08 18:39:17 -07:00
Naomi Seyfer
0fde3825e3 Now block on the result of a .call on the server if no callback is passed 2013-04-08 17:58:36 -07:00
Naomi Seyfer
7112a8eb4b Test for minimongo on the server 2013-04-08 17:58:36 -07:00
Naomi Seyfer
cb92684e50 All livedate_connection tests pass on the server now 2013-04-08 17:58:36 -07:00
Naomi Seyfer
272710b1a8 Cleaning up duplicated code 2013-04-08 17:58:35 -07:00
Naomi Seyfer
e2ac47b451 Share URL-munging code
Still to do:

* Share more code
* Deal with this error:
    Uncaught Error: INVALID_STATE_ERR sockjs-0.3.4.js:1054
    SockJS._didClose sockjs-0.3.4.js:1054
    (anonymous function) sockjs-0.3.4.js:1330
    xo.onfinish sockjs-0.3.4.js:1412
    EventEmitter.emit sockjs-0.3.4.js:150
    that.xhr.onreadystatechange
2013-04-08 17:58:35 -07:00
Naomi Seyfer
0fbb20e9be Meteor.connect to ourself as a server now works. Code still needs some cleaning up 2013-04-08 17:58:35 -07:00
Geoff Schmidt
993b361b17 rename _StreamServer -> _DdpStreamServer, _Stream -> DdpClientStream 2013-04-08 17:58:35 -07:00
Geoff Schmidt
07af6a4243 livedata_connection: don't assume that 'reload' package is available 2013-04-08 17:58:35 -07:00
Geoff Schmidt
2bcd692b54 livedata: if client_convenience.js is loaded "on the server" (not normally possible in the usual build scenario, but would be the case of a nodejs-based client, eg, a command-line tool), don't try to open a default DDP connection 2013-04-08 17:58:35 -07:00
Geoff Schmidt
71dd67b90d Bring over stream_client_nodejs from starseed branch. Manually merge changes that have accumulated in stream_client_sockjs since starseed forked off. 2013-04-08 17:58:35 -07:00
Geoff Schmidt
e710338a94 rename file stream_client -> stream_client_sockjs 2013-04-08 17:58:35 -07:00
Geoff Schmidt
438bd6f694 Fold stream package into livedata 2013-04-08 17:58:35 -07:00
Avital Oliver
af89ff5000 Allow ROOT_URL to not contain http:// 2013-04-08 14:47:25 -07:00
Avital Oliver
977d34c1f3 ADD on History.md 2013-04-08 11:17:07 -07:00
Avital Oliver
8800058161 Merge branch 'master' into devel 2013-04-08 10:45:00 -07:00
Avital Oliver
0ffea1c4c3 Merge branch 'release-0.6.1' 2013-04-08 10:43:43 -07:00
Avital Oliver
a163c78dd0 0.6.1 2013-04-08 10:42:07 -07:00
Avital Oliver
055cd82f2e improve usage string for publish-release.sh 2013-04-08 10:05:14 -07:00
Avital Oliver
505ade3025 v0.6.1: History.md and notices.json release/0.6.1-rc release/0.6.1 2013-04-08 09:58:09 -07:00
Avital Oliver
b904459561 Unbreak apps that reached a corrupted state due to #927
Previously to fixing #927, if you had a 'node_modules' directory
anywhere up the directory tree from your app and you had a package
in your app using NPM, all calls to 'npm' ran against the 'node_modules'
directory it found, so neither 'node_modules' nor 'npm-shrinkwrap.json'
would be created within your package's .npm directory.

The fix to #927 ensured that 'node_modules' was first created within
'.npm' but people who had already run 0.6.0 were still in a corrupted state.
2013-04-08 07:04:33 -07:00
Avital Oliver
dc783ba4b1 Update History.md release/0.6.0-corrupted-npm-bugfix 2013-04-07 16:09:07 -07:00
andreas.karlsson
57c14264fc Prevent npm install from picking up existing node_modules dirs 2013-04-07 16:06:00 -07:00
Andrew Wilcox
c786d24834 Fix routepolicy checkUrlPrefix
Found because I happened to be looking at the linker output and
thinking, "um, why is `type` being declared as a package-scope
variable?"  :-)

Added checkUrlPrefix unit test.
2013-04-05 23:10:52 -07:00
Avital Oliver
e5a8e33dfa Explain arguments to Npm.depends if you try to use it naively 2013-04-04 15:45:57 -07:00
Naomi Seyfer
c44c092e39 All npm-shrinkwrap resolutions; checking them in 2013-04-04 14:22:04 -07:00