mirror of
https://github.com/Hopiu/postal.js.git
synced 2026-04-27 18:14:44 +00:00
Updated build-all.sh, bumped version number to 0.7.1
This commit is contained in:
parent
e7d5c25a4e
commit
8eb3519c82
15 changed files with 23 additions and 32 deletions
|
|
@ -1,6 +1,6 @@
|
|||
# Postal.js
|
||||
|
||||
## Version 0.7.0 (Dual Licensed [MIT](http://www.opensource.org/licenses/mit-license) & [GPL](http://www.opensource.org/licenses/gpl-license))
|
||||
## Version 0.7.1 (Dual Licensed [MIT](http://www.opensource.org/licenses/mit-license) & [GPL](http://www.opensource.org/licenses/gpl-license))
|
||||
|
||||
## What is it?
|
||||
Postal.js is an in-memory message bus - very loosely inspired by [AMQP](http://www.amqp.org/) - written in JavaScript. Postal.js runs in the browser, or on the server-side using Node.js. It takes a familiar "eventing-style" paradigm most JavaScript developers are already used to and extends it by providing "broker" and subscriber implementations which are more sophisticated than what you typically find in simple event delegation.
|
||||
|
|
@ -22,7 +22,7 @@ Postal.js is in good company - there are many options for <airquotes>pub/s
|
|||
|
||||
## Recent Updates (IMPORTANT)
|
||||
|
||||
Version 0.7.0 of postal has implemented a bindings resolver that aligns with how AMQP handles wildcards in topical bindings. ***Please note that this effectively inverts how postal has handled wildcards up to now***. You can still use the old version of the bindings resolve by including the `classic-resolver.js` file in your project. If you want to use the new resolver, just use postal as-is and know that "#" matches 0 or more "words" (words are period-delimited segments of topics) and "*" matches exactly one word.
|
||||
Version 0.7.1 of postal has implemented a bindings resolver that aligns with how AMQP handles wildcards in topical bindings. ***Please note that this effectively inverts how postal has handled wildcards up to now***. You can still use the old version of the bindings resolve by including the `classic-resolver.js` file in your project. If you want to use the new resolver, just use postal as-is and know that "#" matches 0 or more "words" (words are period-delimited segments of topics) and "*" matches exactly one word.
|
||||
|
||||
### Channels? WAT?
|
||||
A channel is a logical partition of topics. Conceptually, it's like a dedicated highway for a specific set of communication. At first glance it might seem like that's overkill for an environment that runs in an event loop, but it actually proves to be quite useful. Every library has architectural opinions that it either imposes or nudges you toward. Channel-oriented messaging nudges you to separate your communication by bounded context, and enables the kind of fine-tuned visibility you need into the interactions between components as your application grows.
|
||||
|
|
|
|||
11
build-all.sh
11
build-all.sh
|
|
@ -1,15 +1,6 @@
|
|||
#!/bin/sh
|
||||
|
||||
anvil -b build-browser.json
|
||||
|
||||
mv ./lib/standard/postal.amd.js ./lib/amd/postal.js
|
||||
mv ./lib/standard/postal.amd.min.js ./lib/amd/postal.min.js
|
||||
|
||||
mv ./lib/standard/postal.node.js ./lib/node/postal.js
|
||||
rm ./lib/standard/postal.node*
|
||||
|
||||
mv ./lib/standard/postal.standard.js ./lib/standard/postal.js
|
||||
mv ./lib/standard/postal.standard.min.js ./lib/standard/postal.min.js
|
||||
anvil
|
||||
|
||||
cp ./lib/standard/postal.* ./example/standard/js
|
||||
cp ./lib/amd/postal.* ./example/amd/js/libs/postal
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
postal.js
|
||||
Author: Jim Cowart
|
||||
License: Dual licensed MIT (http://www.opensource.org/licenses/mit-license) & GPL (http://www.opensource.org/licenses/gpl-license)
|
||||
Version 0.7.0
|
||||
Version 0.7.1
|
||||
*/
|
||||
|
||||
// This is the amd-module version of postal.js
|
||||
|
|
@ -465,7 +465,7 @@ define( ["underscore"], function ( _, undefined ) {
|
|||
channel : source.channel || DEFAULT_CHANNEL,
|
||||
topic : source.topic || "#",
|
||||
callback : function ( data, env ) {
|
||||
var newEnv = env;
|
||||
var newEnv = _.clone( env );
|
||||
newEnv.topic = _.isFunction( destination.topic ) ? destination.topic( env.topic ) : destination.topic || env.topic;
|
||||
newEnv.channel = destChannel;
|
||||
newEnv.data = data;
|
||||
|
|
|
|||
2
example/amd/js/libs/postal/postal.min.js
vendored
2
example/amd/js/libs/postal/postal.min.js
vendored
File diff suppressed because one or more lines are too long
|
|
@ -2,7 +2,7 @@
|
|||
postal.js
|
||||
Author: Jim Cowart
|
||||
License: Dual licensed MIT (http://www.opensource.org/licenses/mit-license) & GPL (http://www.opensource.org/licenses/gpl-license)
|
||||
Version 0.7.0
|
||||
Version 0.7.1
|
||||
*/
|
||||
|
||||
// This is the amd-module version of postal.js
|
||||
|
|
@ -465,7 +465,7 @@ define( ["underscore"], function ( _, undefined ) {
|
|||
channel : source.channel || DEFAULT_CHANNEL,
|
||||
topic : source.topic || "#",
|
||||
callback : function ( data, env ) {
|
||||
var newEnv = env;
|
||||
var newEnv = _.clone( env );
|
||||
newEnv.topic = _.isFunction( destination.topic ) ? destination.topic( env.topic ) : destination.topic || env.topic;
|
||||
newEnv.channel = destChannel;
|
||||
newEnv.data = data;
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
postal.js
|
||||
Author: Jim Cowart
|
||||
License: Dual licensed MIT (http://www.opensource.org/licenses/mit-license) & GPL (http://www.opensource.org/licenses/gpl-license)
|
||||
Version 0.7.0
|
||||
Version 0.7.1
|
||||
*/
|
||||
|
||||
// This is the node.js version of postal.js
|
||||
|
|
@ -466,7 +466,7 @@ var postal = {
|
|||
channel : source.channel || DEFAULT_CHANNEL,
|
||||
topic : source.topic || "#",
|
||||
callback : function ( data, env ) {
|
||||
var newEnv = env;
|
||||
var newEnv = _.clone( env );
|
||||
newEnv.topic = _.isFunction( destination.topic ) ? destination.topic( env.topic ) : destination.topic || env.topic;
|
||||
newEnv.channel = destChannel;
|
||||
newEnv.data = data;
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
postal.js
|
||||
Author: Jim Cowart
|
||||
License: Dual licensed MIT (http://www.opensource.org/licenses/mit-license) & GPL (http://www.opensource.org/licenses/gpl-license)
|
||||
Version 0.7.0
|
||||
Version 0.7.1
|
||||
*/
|
||||
|
||||
// This is the standard lib version of postal.js
|
||||
|
|
@ -466,7 +466,7 @@ var postal = {
|
|||
channel : source.channel || DEFAULT_CHANNEL,
|
||||
topic : source.topic || "#",
|
||||
callback : function ( data, env ) {
|
||||
var newEnv = env;
|
||||
var newEnv = _.clone( env );
|
||||
newEnv.topic = _.isFunction( destination.topic ) ? destination.topic( env.topic ) : destination.topic || env.topic;
|
||||
newEnv.channel = destChannel;
|
||||
newEnv.data = data;
|
||||
|
|
|
|||
2
example/standard/js/postal.min.js
vendored
2
example/standard/js/postal.min.js
vendored
File diff suppressed because one or more lines are too long
|
|
@ -2,7 +2,7 @@
|
|||
postal.js
|
||||
Author: Jim Cowart
|
||||
License: Dual licensed MIT (http://www.opensource.org/licenses/mit-license) & GPL (http://www.opensource.org/licenses/gpl-license)
|
||||
Version 0.7.0
|
||||
Version 0.7.1
|
||||
*/
|
||||
|
||||
// This is the amd-module version of postal.js
|
||||
|
|
@ -465,7 +465,7 @@ define( ["underscore"], function ( _, undefined ) {
|
|||
channel : source.channel || DEFAULT_CHANNEL,
|
||||
topic : source.topic || "#",
|
||||
callback : function ( data, env ) {
|
||||
var newEnv = env;
|
||||
var newEnv = _.clone( env );
|
||||
newEnv.topic = _.isFunction( destination.topic ) ? destination.topic( env.topic ) : destination.topic || env.topic;
|
||||
newEnv.channel = destChannel;
|
||||
newEnv.data = data;
|
||||
|
|
|
|||
2
lib/amd/postal.min.js
vendored
2
lib/amd/postal.min.js
vendored
File diff suppressed because one or more lines are too long
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name" : "postal",
|
||||
"description" : "Pub/Sub library providing wildcard subscriptions, complex message handling, etc. Works server and client-side.",
|
||||
"version" : "0.7.0",
|
||||
"version" : "0.7.1",
|
||||
"homepage" : "http://github.com/ifandelse/postal.js",
|
||||
"repository" : {
|
||||
"type" : "git",
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
postal.js
|
||||
Author: Jim Cowart
|
||||
License: Dual licensed MIT (http://www.opensource.org/licenses/mit-license) & GPL (http://www.opensource.org/licenses/gpl-license)
|
||||
Version 0.7.0
|
||||
Version 0.7.1
|
||||
*/
|
||||
|
||||
// This is the node.js version of postal.js
|
||||
|
|
@ -466,7 +466,7 @@ var postal = {
|
|||
channel : source.channel || DEFAULT_CHANNEL,
|
||||
topic : source.topic || "#",
|
||||
callback : function ( data, env ) {
|
||||
var newEnv = env;
|
||||
var newEnv = _.clone( env );
|
||||
newEnv.topic = _.isFunction( destination.topic ) ? destination.topic( env.topic ) : destination.topic || env.topic;
|
||||
newEnv.channel = destChannel;
|
||||
newEnv.data = data;
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
postal.js
|
||||
Author: Jim Cowart
|
||||
License: Dual licensed MIT (http://www.opensource.org/licenses/mit-license) & GPL (http://www.opensource.org/licenses/gpl-license)
|
||||
Version 0.7.0
|
||||
Version 0.7.1
|
||||
*/
|
||||
|
||||
// This is the standard lib version of postal.js
|
||||
|
|
@ -466,7 +466,7 @@ var postal = {
|
|||
channel : source.channel || DEFAULT_CHANNEL,
|
||||
topic : source.topic || "#",
|
||||
callback : function ( data, env ) {
|
||||
var newEnv = env;
|
||||
var newEnv = _.clone( env );
|
||||
newEnv.topic = _.isFunction( destination.topic ) ? destination.topic( env.topic ) : destination.topic || env.topic;
|
||||
newEnv.channel = destChannel;
|
||||
newEnv.data = data;
|
||||
|
|
|
|||
2
lib/standard/postal.min.js
vendored
2
lib/standard/postal.min.js
vendored
File diff suppressed because one or more lines are too long
|
|
@ -2,5 +2,5 @@
|
|||
postal.js
|
||||
Author: Jim Cowart
|
||||
License: Dual licensed MIT (http://www.opensource.org/licenses/mit-license) & GPL (http://www.opensource.org/licenses/gpl-license)
|
||||
Version 0.7.0
|
||||
Version 0.7.1
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in a new issue