Commit Graph

2187 Commits

Author SHA1 Message Date
Zoltan Olah
af7e208bd2 Better tests for disconnect(). 2013-07-25 16:55:59 -07:00
Zoltan Olah
bf02edaae7 Ooops, pythonism - thanks tests! 2013-07-25 16:55:59 -07:00
Zoltan Olah
b434d19bd8 Added basic test for disconnect() 2013-07-25 16:55:59 -07:00
Zoltan Olah
f6c6f891c5 Ensure we don't reconnect when the browser goes 'online' 2013-07-25 16:55:59 -07:00
Zoltan Olah
fbcf465068 Meteor.disconnect() initial implementation. 2013-07-25 16:55:59 -07:00
Nick Martin
b68ce66048 Patch our local sockjs to use a cachebusting URL for /sockjs/info.
This has been submitted upstream too: https://github.com/sockjs/sockjs-client/pull/129
2013-07-24 20:09:31 -07:00
Nick Martin
6e86bb4096 Fix submit event on old IE. Fixes #1191
Not tested, but it looks right from code inspection and looking at the history.
2013-07-23 22:58:01 -07:00
Zoltan Olah
951fc87213 Added support to force the approval prompt for the google oAuth flow. 2013-07-23 22:50:07 -07:00
Tim Haines
65c288bdb8 Handle Meteor.loginWithX called with callback but not options 2013-07-23 22:28:28 -07:00
Tim Haines
9251942b9a OAuth client: Only invoke the callback if it exists 2013-07-23 22:28:28 -07:00
Emily Stark
bd7e0d768c Merge branch 'master' into devel
Conflicts:
	History.md
	docs/.meteor/release
	packages/mongo-livedata/.npm/package/npm-shrinkwrap.json
	packages/mongo-livedata/package.js
2013-07-19 16:05:29 -07:00
David Glasser
ab0e8e770e Use a commit of node-mongo-native with a unique package.json version.
Avoids confusing the npm cache.
2013-07-19 11:52:04 -07:00
David Glasser
237f6da87e Store runner.js in test-in-console as an asset; extract via env var.
Allow packages to specify that files are assets, overriding any handler defined
for them. (May be useful for web workers!)

Let Assets.getBinary work before global-imports.js is executed.
2013-07-19 11:27:55 -07:00
David Glasser
d0b7b41860 Update shrinkwrap for mongodb update. 2013-07-19 11:26:22 -07:00
David Glasser
d0ae0a86ea Commit mongo npm-shrinkwrap.json change. 2013-07-19 11:12:18 -07:00
David Glasser
7684c726c8 Use mongodb with extra null checks. 2013-07-19 11:12:18 -07:00
David Glasser
46180063c7 Update to mongodb 1.3.12. Includes Emily's patch. 2013-07-19 10:13:05 -07:00
David Glasser
c1667c7d0c Move clean-css and uglify-js from dev bundle to a new minifiers package.
This will make it much easier to upgrade them and test new versions.

(They are still called from the bundler, so changes to how we access them (eg
source map support) will require modifying tools, but just "upgrade to new
version" now is much easier.)
2013-07-18 10:31:52 -07:00
David Glasser
88d12e76e6 Upgrade Underscore to 1.5.1.
A cursory glance at the diff suggests that this will not affect anything we do
in Meteor.
2013-07-17 12:21:38 -07:00
David Glasser
6970a89ee0 Implement "api.imply". Make all accounts packages imply accounts-base.
If X uses Y and Y implies Z, then X is also treated as using Z. This can be used
to create umbrella packages, etc.
2013-07-16 18:45:56 -07:00
Emily Stark
dcd740c35d Don't copy MAIL_URL env var to deployConfig, since we check for it anyway in the
email package.
2013-07-16 16:43:31 -07:00
Emily Stark
737bbc7f12 Get mail url from deployConfig when present. 2013-07-16 15:59:55 -07:00
Geoff Schmidt
eb1e15e457 Improve error reporting when parsing Handlebars templates 2013-07-15 22:21:57 -07:00
David Glasser
c51ea9c9c0 Update Github instructions.
https://github.com/blog/1523-oauth-improvements
2013-07-15 21:49:08 -07:00
David Glasser
6a1b5d3032 Consistently use fut['return']() in package code.
Some package code is loaded in browsers, which may fail to parse code which uses
'return' or 'throw' as a method name.  We used to inconsistently use fut.ret for
this purpose; instead, just consistently use fut['return'] and fut['throw']. We
don't bother to do this in tools code which is definitely never run outside of
Node.

Also remove some unused requires.

Fixes #1222.
2013-07-15 21:39:03 -07:00
Bjorn Tipling
068f0abb50 oauth1 requires random package. 2013-07-15 20:23:00 -07:00
David Greenspan
7b65338643 Fix orderedDict.{next,prev}() 2013-07-12 20:26:03 -07:00
David Greenspan
31dc4d3df8 comment 2013-07-12 20:25:44 -07:00
David Greenspan
8326941c52 consistency 2013-07-12 20:25:37 -07:00
David Greenspan
4cd63ca370 minimongo: make idStringify behavior match comment 2013-07-12 20:25:21 -07:00
Geoff Schmidt
7617d8931a Update docs, query, and showdown for namespacing 2013-07-12 17:36:40 -07:00
David Glasser
36275c570c Merge branch 'linker' into devel
some compatibility notes about packages:

  - packages now have their own namespaces (rather than needing to
    use the global namespace).  symbols you want to share should
    be declared with an @export comment

  - this also means that missing dependencies can hurt you. so don't
    leave them out.

  - your app's packages (in the 'packages' directory in your app) are
    not automatically included in your app; you need to explicitly
    run "meteor add" for them.  this means that, eg, you can have test
    helper packages which are not directly used in your app, but just
    used by other packages' tests.  (before releasing this, we may
    make 'meteor update' fix current apps.)

  - the bundle ("star") format has changed

  - packages are now built into the "unipackage" format.  if this format changes
    before we release this code (and commit to the definition of the initial
    versions of the formats) you may need to run "meteor rebuild-all"

  - __meteor_bootstrap__ has been stripped of everything not related to
    executing JS code. Some of what used to be there is now on the WebApp
    object.

more detailed docs are likely to come before the 0.6.5 release.
2013-07-12 13:38:05 -07:00
David Glasser
b9f343f8b4 Add Firefox instructions.
Change comment style to one which does not make FF print warnings. This breaks
Chrome, so start setting the header again.
2013-07-12 10:11:32 -07:00
David Glasser
4308b7c063 - switch from X-SourceMap header to //@ comment
- specify sourceMapUrl in browser manifest
- don't make source maps for app pure-JS files
- make URLs happy
- break traceback beauty
2013-07-12 10:11:31 -07:00
David Glasser
177a5684c9 checkpoint for using source maps in jsimage.load
syntax error parsing is broken, will fix
2013-07-12 10:11:31 -07:00
David Glasser
81e456ae81 Improve log lines file naming on server.
We avoid using Error.prepareStackTrace (which the node source map support also
uses) and do some hacky regexp parsing instead. This way, on the server, we get
the filename/line numbers after source map processing.

On the client we continue to get the compiled version... I guess because source
maps are implemented in the developer tools, not directly into the Error object.

(Probably should have gotten parseStack from tools/buildmessage.js instead.)

unbreaks _getCallerDetails tests.
2013-07-12 10:11:31 -07:00
David Glasser
89e2fb1df1 Fix static file serving tests now that we've changed how static files are
served.

Some things that used to serve 403s now serve app HTML. Some paths with ..'s
that used to resolve to actual app resources now don't.
2013-07-12 10:11:31 -07:00
David Glasser
faf49921be replace barely-used lineForLine/includePositionInErrors with use of source maps.
Note that this is only triggered when coffeescript manages to output invalid JS,
which should be unlikely.

This does remove the feature where lines and columns were suppressed for parse
errors in the output of template compilation. but (a) that shouldn't happen,
and (b) we'll fix this by implementing source maps for spacebars.
2013-07-12 10:11:31 -07:00
David Glasser
be0611d262 One attempt at making source map URLs cleaner.
You get the source map for /foo.js by asking for /foo.js?sourcemap=y.

Source files then implicitly show up next to them in the tree.
2013-07-12 10:11:31 -07:00
David Glasser
269434a44b Inline source code in source maps instead of keeping another data structure. 2013-07-12 10:11:31 -07:00
David Glasser
a13f330983 All sourceMap fields in data structures are now strings, not generators. 2013-07-12 10:11:30 -07:00
David Glasser
4e18439ae6 Source maps for coffeescript. 2013-07-12 10:11:30 -07:00
David Glasser
d823e57049 Rip @unit out of Meteor.
It's not used, it doesn't fully work yet, it's incompatible with the static
analysis, and it will make implementing CoffeeScript source maps significantly
more difficult.
2013-07-12 10:11:30 -07:00
David Glasser
af01be5004 Comment about various browser's support for source map headers. 2013-07-12 10:11:30 -07:00
David Glasser
c329ebf90d Serve sources as well, and use X-SourceMap header.
Source maps now work in Chrome, if you enable them (dev tools -> gears button ->
enable source maps). I can't get them to work in FF 24 though.
2013-07-12 10:11:30 -07:00
David Glasser
31e560e8ca serve source maps (but not sources)
they don't seem to actually work in chrome yet
2013-07-12 10:11:30 -07:00
David Glasser
7ef61492da refactor disk layout of client programs to get rid of static/static_cacheable
This introduces some hacks into how asset dirs work. Will fix later. Might have
broken server assets. Who knows.
2013-07-12 10:11:29 -07:00
David Glasser
5b8e1c17f3 Use manifest, not directory serving, to serve static files. 2013-07-12 10:11:29 -07:00
David Glasser
b3e752c86c Source maps now are correct.
The header and footer of the linked file now is generated entirely at link
time. There is no more "boundary" __imports__asfdadsads blob.

Also, fix an inexplicable typo in js_analyze.
2013-07-12 10:11:29 -07:00
David Glasser
36454824ac remove redundant use line 2013-07-12 10:11:28 -07:00