Skip to content

Commit

Permalink
Merge pull request #59 from KrisSiegel/5.0.0
Browse files Browse the repository at this point in the history
5.0.0
  • Loading branch information
KrisSiegel authored Aug 20, 2016
2 parents 00acb80 + 51bc0d1 commit 45e85b1
Show file tree
Hide file tree
Showing 76 changed files with 3,561 additions and 5,759 deletions.
4 changes: 0 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,3 @@ node_modules
# msngr.js specific
test/specRunner.html
test/specRunner.min.html
test/crossWindowVerifier.html
test/crossWindowVerifier.min.html
test/benchRunner.html
test/benchRunner.min.html
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ docs
src
node_modules
CHANGELOG.md
resources
7 changes: 7 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
language: node_js
sudo: false
node_js:
- "6.4"
- "6.3.1"
- "6.2"
- "6.1"
- "6.0"
- "5.12"
- "5.7"
- "5.1"
- "5.0"
- "4.5"
- "4.2"
- "4.1"
- "4.0"
Expand Down
26 changes: 25 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,31 @@
# Changelog
This is a roll-up of all release notes in order of release

## [Release 5.0.0 - August 20, 2016](https://github.com/KrisSiegel/msngr.js/releases/tag/5.0.0)
Version 5.0 brings in some major changes, the first LTS version and huge improvements over previous versions.

***What's new?***
- A new way to validate is here! ```msngr.is(input,...)``` allows any amount of parameters to validate. The object returned with ```msngr.is()``` provides multiple ways to checking the type(s) of objects supplied through familiar properties. For instance:
```javascript
msngr.is("My String").string; // Returns true
msngr.is(" ").empty; // Returns true
msngr.is(undefined).there; // Returns false
msngr.is("one", "another", "weee").string; // Returns true
```
- A new way to setup middleware now exists and replaces the previous options.
- A new ```msngr.safe(obj, prop, default)``` method was added for accessing deep properties, safely.

***Breaking changes***
- All previously used type, existence and empty checking methods are now removed in favor of the new ```msngr.is()``` way.
- ```msngr(msg).subscribers``` has been renamed to ```msngr(msg).handlers``` to better reflect the msngr terminology.
- ```msngr(msg).options``` has been axed in favor of the new middleware concept outlined in the above section.
- Options have been removed entirely along with their specific implementations. This has been replaced by a middleware setup with currently no default middlewares.
- ```msngr.merge()``` now has different, better behavior. No longer tries to merge strings and has a very strict set of rules easy to see in the source code. ```msngr.copy()``` was changed in a very similar way

***Misc changes***
- Highly revised documentation. This is still ongoing.
- Vastly refactored

## [Release 4.0.2 - May 20, 2016](https://github.com/KrisSiegel/msngr.js/releases/tag/4.0.2)
Fixed an issue with ```msngr.copy()``` where values within arrays were not deep copied.

Expand All @@ -26,7 +51,6 @@ Version 4.0 brings along many performance improvements (20% faster! ha!), API ch
- Removed documentation for ```msngr.getDomPath()```; unless the element contains an ID this method is unreliable but I want to later improve upon it so for now it's considered part of the "private API" aka don't use it.
- Re-ordered the files that are included in the build process and made them explicit instead of wildcards so I can explicitly tune them to the correct ordering.


## [Release 3.2.2 - December 2, 2015](https://github.com/KrisSiegel/msngr.js/releases/tag/3.2.2)
- Ugh, forgot to add new bower and npm ignores for the test-resources directory so there are added here

Expand Down
44 changes: 22 additions & 22 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,18 @@ module.exports = (function(grunt) {

/*
These are the paths to include or exclude in concatenation and minification steps.
The order here is important at some code references other code in other files.
*/
var paths = [
"src/main.js",
"src/utils/validation.js",
"src/objects/mache.js",
"src/utils/exceptional.js",
"src/utils/converters.js",
"src/utils/dom.js",
"src/utils/misc.js",
"src/objects/executer.js",
"src/objects/memory.js",
"src/objects/message.js",
"src/objects/net.js",
"src/options/cross-window.js",
"src/options/dom.js",
"src/exceptional.js",
"src/validators/*.js",
"src/utils/*.js",
"src/mutators/*.js",
"src/messaging/*.js",
"src/mache/*.js",
"src/net/*.js",
"src/middlewares/*.js",
"src/module.exports.js",
"!**/*.aspec.js",
"!**/*.cspec.js",
Expand All @@ -36,7 +33,7 @@ module.exports = (function(grunt) {
];

grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
pkg: grunt.file.readJSON("package.json"),
clean: ["./msngr.js", "./msngr.min.js"],
concat: {
dist: {
Expand All @@ -58,13 +55,20 @@ module.exports = (function(grunt) {
reporter: "spec"
},
src: [
"**/*.aspec.js",
"**/*.nspec.js"
"./src/**/*.aspec.js",
"./src/**/*.nspec.js"
]
}
},
mocha_phantomjs: {
all: ["test/specRunner.html", "test/specRunner.min.html"]
options: {
phantomConfig:{
"--web-security": false
}
},
files: {
src: ["test/specRunner.html", "test/specRunner.min.html"]
}
},
availabletasks: {
tasks: {
Expand Down Expand Up @@ -122,7 +126,7 @@ module.exports = (function(grunt) {
grunt.log.subhead("Client-side unit testing with phantom.js");
});

var jsPaths = ["./", "./src/", "./docs/"];
var jsPaths = ["./", "./src/"];
var fetchJsFiles = function(filters) {
var fs = require("fs");
var path = require("path");
Expand Down Expand Up @@ -256,11 +260,7 @@ module.exports = (function(grunt) {
body: body
};

var headers = {
"Access-Control-Allow-Origin": "*",
"Access-Control-Allow-Headers": "origin, content-type, accept, custom-header",
"Access-Control-Allow-Methods": "GET,POST,PUT,DELETE,OPTIONS,HEAD"
};
var headers = { };

try {
var objBody = JSON.parse(body);
Expand Down
Loading

0 comments on commit 45e85b1

Please sign in to comment.