can-route-pushstate
Advanced tools
Comparing version 3.0.3 to 3.1.0-pre.0
@@ -24,3 +24,3 @@ /* jshint asi:true,scripturl:true */ | ||
route.routes = {}; | ||
route(":page", { | ||
route("{page}", { | ||
page: "index" | ||
@@ -32,3 +32,3 @@ }); | ||
page: "can.Control", | ||
route: ":page" | ||
route: "{page}" | ||
}); | ||
@@ -39,3 +39,3 @@ | ||
page: "index", | ||
route: ":page" | ||
route: "{page}" | ||
}); | ||
@@ -47,7 +47,7 @@ | ||
where: "there", | ||
route: ":page" | ||
route: "{page}" | ||
}); | ||
route.routes = {}; | ||
route(":page/:index", { | ||
route("{page}/{index}", { | ||
page: "index", | ||
@@ -62,3 +62,3 @@ index: "foo" | ||
where: "there", | ||
route: ":page/:index" | ||
route: "{page}/{index}" | ||
}); | ||
@@ -71,3 +71,3 @@ }); | ||
route.routes = {}; | ||
route("pages/:var1/:var2/:var3", { | ||
route("pages/{var1}/{var2}/{var3}", { | ||
var1: 'default1', | ||
@@ -90,3 +90,3 @@ var2: 'default2', | ||
var3: 'val3', | ||
route: "pages/:var1/:var2/:var3" | ||
route: "pages/{var1}/{var2}/{var3}" | ||
}); | ||
@@ -112,3 +112,3 @@ }) | ||
route.routes = {}; | ||
route("pages/:page", { | ||
route("pages/{page}", { | ||
page: "index" | ||
@@ -128,3 +128,3 @@ }) | ||
route("pages/:page/:foo", { | ||
route("pages/{page}/{foo}", { | ||
page: "index", | ||
@@ -177,3 +177,3 @@ foo: "bar" | ||
route.routes = {}; | ||
route(":page", { | ||
route("{page}", { | ||
page: "index" | ||
@@ -187,3 +187,3 @@ }) | ||
route("pages/:p1/:p2/:p3", { | ||
route("pages/{p1}/{p2}/{p3}", { | ||
p1: "index", | ||
@@ -212,3 +212,3 @@ p2: "foo", | ||
route("pages/:p1", { | ||
route("pages/{p1}", { | ||
p2: "foo" | ||
@@ -225,3 +225,3 @@ }) | ||
route(":page/:type", { | ||
route("{page}/{type}", { | ||
page: "index", | ||
@@ -287,3 +287,3 @@ type: "foo" | ||
route.routes = {}; | ||
route(":foo/:bar", { | ||
route("{foo}/{bar}", { | ||
foo: 1, | ||
@@ -303,3 +303,3 @@ bar: 2 | ||
bar: 2, | ||
route: ":foo/:bar" | ||
route: "{foo}/{bar}" | ||
}) | ||
@@ -310,6 +310,6 @@ }) | ||
route.routes = {}; | ||
route(":who", { | ||
route("{who}", { | ||
who: "index" | ||
}); | ||
route("search/:search"); | ||
route("search/{search}"); | ||
@@ -319,3 +319,3 @@ var obj = route.deparam("can.Control"); | ||
who: "can.Control", | ||
route: ":who" | ||
route: "{who}" | ||
}); | ||
@@ -326,3 +326,3 @@ | ||
search: "can.Control", | ||
route: "search/:search" | ||
route: "search/{search}" | ||
}, "bad deparam"); | ||
@@ -343,6 +343,6 @@ | ||
route.routes = {}; | ||
route(":type", { | ||
route("{type}", { | ||
who: "index" | ||
}); | ||
route(":type/:id"); | ||
route("{type}/{id}"); | ||
@@ -358,3 +358,3 @@ equal(route.param({ | ||
route.routes = {}; | ||
route("/:foo"); | ||
route("/{foo}"); | ||
var res = route.link("Hello", { | ||
@@ -396,3 +396,3 @@ foo: "bar", | ||
route.routes = {}; | ||
route(":type/:id"); | ||
route("{type}/{id}"); | ||
var res = route.deparam("foo/" + encodeURIComponent("\/")) | ||
@@ -436,3 +436,3 @@ equal(res.id, "\/") | ||
info.route.ready() | ||
info.route("/:type/:id"); | ||
info.route("/{type}/{id}"); | ||
info.route.attr({ | ||
@@ -494,4 +494,4 @@ type: "bar", | ||
iCanRoute.ready(); | ||
iCanRoute("/:type"); | ||
iCanRoute("/:type/:id"); | ||
iCanRoute("/{type}"); | ||
iCanRoute("/{type}/{id}"); | ||
iCanRoute.attr({ | ||
@@ -545,3 +545,3 @@ type: "bar" | ||
iCanRoute(":type/:id"); | ||
iCanRoute("{type}/{id}"); | ||
iCanRoute.ready(); | ||
@@ -565,3 +565,3 @@ | ||
equal(iCanRoute.matched(), ":type/:id", "articles have the right matched route") | ||
equal(iCanRoute.matched(), "{type}/{id}", "articles have the right matched route") | ||
@@ -584,3 +584,3 @@ equal(win.location.hash, "#references", "includes hash"); | ||
makeTestingIframe(function (info, done) { | ||
info.route(":type", { type: "yay" }); | ||
info.route("{type}", { type: "yay" }); | ||
info.route.ready(); | ||
@@ -652,3 +652,3 @@ | ||
win.route.bindings.pushstate.root = root; | ||
win.route(":page/"); | ||
win.route("{page}/"); | ||
win.route.ready(); | ||
@@ -667,3 +667,3 @@ nextStateTest(); | ||
info.route.bindings.pushstate.root = "testing.html"; | ||
info.route(":module\\.html"); | ||
info.route("{module}\\.html"); | ||
info.route.ready(); | ||
@@ -686,4 +686,4 @@ | ||
var setupRoutesAndRoot = function (iCanRoute, root) { | ||
iCanRoute(":section/"); | ||
iCanRoute(":section/:sub/"); | ||
iCanRoute("{section}/"); | ||
iCanRoute("{section}/{sub}/"); | ||
iCanRoute.bindings.pushstate.root = root; | ||
@@ -743,3 +743,3 @@ iCanRoute.ready(); | ||
equal(info.route.matched(), ":section/:sub/", | ||
equal(info.route.matched(), "{section}/{sub}/", | ||
"route's matched property is correct"); | ||
@@ -877,3 +877,3 @@ | ||
route.routes = {}; | ||
route(":who"); | ||
route("{who}"); | ||
route("", { | ||
@@ -892,4 +892,4 @@ foo: "bar" | ||
route.routes = {}; | ||
route(":foo"); | ||
route(":bar") | ||
route("{foo}"); | ||
route("{bar}") | ||
@@ -899,3 +899,3 @@ var obj = route.deparam("abc"); | ||
foo: "abc", | ||
route: ":foo" | ||
route: "{foo}" | ||
}); | ||
@@ -909,3 +909,3 @@ }); | ||
}); | ||
route("something/:bar"); | ||
route("something/{bar}"); | ||
var res = route.param({ | ||
@@ -919,3 +919,3 @@ bar: "foo" | ||
route(":recipe", { | ||
route("{recipe}", { | ||
recipe: "recipe1", | ||
@@ -925,3 +925,3 @@ task: "task3" | ||
route(":recipe/:task", { | ||
route("{recipe}/{task}", { | ||
recipe: "recipe1", | ||
@@ -947,3 +947,3 @@ task: "task3" | ||
route.routes = {}; | ||
route(":foo-:bar"); | ||
route("{foo}-{bar}"); | ||
@@ -954,3 +954,3 @@ var obj = route.deparam("abc-def"); | ||
bar: "def", | ||
route: ":foo-:bar" | ||
route: "{foo}-{bar}" | ||
}); | ||
@@ -957,0 +957,0 @@ }); |
{ | ||
"name": "can-route-pushstate", | ||
"version": "3.0.3", | ||
"version": "3.1.0-pre.0", | ||
"description": "Pushstate for can-route", | ||
@@ -18,7 +18,7 @@ "homepage": "https://canjs.com", | ||
"version": "git commit -am \"Update dist for release\" && git checkout -b release && git add -f dist/", | ||
"postversion": "git push --tags && git checkout master && git branch -D release && git push", | ||
"postversion": "git push --tags && git checkout can-reflect && git branch -D release && git push", | ||
"testee": "testee test/test.html --browsers firefox", | ||
"test": "npm run jshint && npm run testee", | ||
"jshint": "jshint ./*.js --config", | ||
"release:pre": "npm version prerelease && npm publish", | ||
"release:pre": "npm version prerelease && npm publish --tag=pre", | ||
"release:patch": "npm version patch && npm publish", | ||
@@ -39,12 +39,12 @@ "release:minor": "npm version minor && npm publish", | ||
"can-event": "^3.0.1", | ||
"can-route": "^3.0.0", | ||
"can-route": "^3.1.0-pre.2", | ||
"can-util": "^3.3.0" | ||
}, | ||
"devDependencies": { | ||
"can-define": "^1.0.1", | ||
"can-map": "^3.0.0-pre.3", | ||
"bit-docs": "0.0.7", | ||
"done-serve": "^0.2.0", | ||
"donejs-cli": "^0.9.5", | ||
"generator-donejs": "^0.9.0", | ||
"can-define": "^1.2.0-pre.4", | ||
"can-map": "^3.1.0-pre.10", | ||
"done-serve": "^1.2.0", | ||
"donejs-cli": "^1.0.1", | ||
"generator-donejs": "^1.0.5", | ||
"jshint": "^2.9.1", | ||
@@ -54,3 +54,3 @@ "steal": "^1.0.0", | ||
"steal-tools": "^1.0.0", | ||
"testee": "^0.3.0" | ||
"testee": "^0.6.0" | ||
}, | ||
@@ -57,0 +57,0 @@ "bit-docs": { |
# can-route-pushstate | ||
[![Greenkeeper badge](https://badges.greenkeeper.io/canjs/can-route-pushstate.svg)](https://greenkeeper.io/) | ||
[![Build Status](https://travis-ci.org/canjs/can-route-pushstate.png?branch=master)](https://travis-ci.org/canjs/can-route-pushstate) | ||
@@ -4,0 +6,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
58
39862
15
1
Updatedcan-route@^3.1.0-pre.2