diff --git a/.gitignore b/.gitignore index 5a16f43b..39187338 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ node_modules lib/*.js *~ +package-lock.json diff --git a/.npmignore b/.npmignore index 28b91266..e476c14f 100644 --- a/.npmignore +++ b/.npmignore @@ -1,6 +1,7 @@ .gitignore lib/.placeholder -VERSION-GEN +Makefile src -node_modules +examples +tests *~ diff --git a/Changelog b/Changelog index 363f960e..412d6e5b 100644 --- a/Changelog +++ b/Changelog @@ -1,3 +1,21 @@ +0.3.20 +====== + * Updated `node-uuid` and `coffeescript` + * Exclude `examples`, `tests`, and `Makefile` from npm package + * Update examples to use latest jQuery and sockjs-client #271 + * Don't call `res.end` in `writeHead` #266 + * Pin `websocket-driver` as later versions cause some tests from `sockjs-protocol` to fail + +0.3.19 +====== + + * Update `node-uuid` version #224 + * Add `disable_cors` option to prevent CORS headers from being added to responses #218 + * Add `dnt` header to whitelist #212 + * Add `x-forwarded-host` and `x-forwarded-port` headers to whitelist #208 + * Update `sockjs_url` default to latest 1.x target #223 + * Updated hapi.js example #216 + 0.3.18 ====== diff --git a/Makefile b/Makefile index 7d39a949..d9afd788 100644 --- a/Makefile +++ b/Makefile @@ -37,19 +37,3 @@ serve: rm -f .pidfile.pid; \ sleep 0.1; \ done - -#### Release process -# 1) commit everything -# 2) amend version in package.json -# 3) run 'make tag' and run suggested 'git push' variants -# 4) run 'npm publish' - -RVER:=$(shell grep "version" package.json|tr '\t"' ' \t'|cut -f 4) -VER:=$(shell ./VERSION-GEN) - -.PHONY: tag -tag: all - git commit $(TAG_OPTS) package.json Changelog -m "Release $(RVER)" - git tag v$(RVER) -m "Release $(RVER)" - @echo ' [*] Now run' - @echo 'git push; git push --tag' diff --git a/README.md b/README.md index 7442c93c..50262bb2 100644 --- a/README.md +++ b/README.md @@ -48,7 +48,7 @@ A simplified echo SockJS server could look more or less like: var http = require('http'); var sockjs = require('sockjs'); -var echo = sockjs.createServer({ sockjs_url: 'http://cdn.jsdelivr.net/sockjs/1.0.1/sockjs.min.js' }); +var echo = sockjs.createServer(); echo.on('connection', function(conn) { conn.on('data', function(message) { conn.write(message); @@ -73,8 +73,8 @@ discussions and support. SockJS-node API --------------- -The API design is based on the common Node API's like -[Streams API](http://nodejs.org/docs/v0.5.8/api/streams.html) or +The API design is based on common Node APIs like the +[Streams API](http://nodejs.org/docs/v0.5.8/api/streams.html) or the [Http.Server API](http://nodejs.org/docs/v0.5.8/api/http.html#http.Server). ### Server class @@ -90,7 +90,7 @@ var sockjs_server = sockjs.createServer(options); Where `options` is a hash which can contain: