Comparing version 3.0.3 to 3.0.4-pre.1
@@ -5,3 +5,2 @@ var List = require('can-list'); | ||
var Map = require('can-map'); | ||
require("can-map-define"); | ||
@@ -201,3 +200,3 @@ QUnit.module('can-list'); | ||
var Animal = Map.extend(); | ||
var me = new Person({ name: "John" }); | ||
@@ -207,3 +206,3 @@ var animal = new Animal({ name: "Tak" }); | ||
var hero = { name: "Ghandi" }; | ||
var people = new People([]); | ||
@@ -214,5 +213,5 @@ var specialPeople = new People([ | ||
]); | ||
people = people.concat([me, animal, specialPeople], specialPeople, [1, 2], 3); | ||
ok(people.attr('length') === 8, "List length is right"); | ||
@@ -411,17 +410,2 @@ ok(people[0] === me, "Map in list === vars created before concat"); | ||
test("works with can-map-define", function() { | ||
var MyList = List.extend({}, { | ||
define: { | ||
foo: { | ||
get: function(){ | ||
return "bar"; | ||
} | ||
} | ||
} | ||
}); | ||
var list = new MyList(); | ||
equal(list.attr("foo"), "bar"); | ||
}); | ||
test('forEach callback', function () { | ||
@@ -428,0 +412,0 @@ var list = new List([]), |
{ | ||
"name": "can-list", | ||
"version": "3.0.3", | ||
"version": "3.0.4-pre.1", | ||
"description": "Observable lists", | ||
@@ -14,6 +14,7 @@ "homepage": "http://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 origin can-reflect", | ||
"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 --tag pre", | ||
"release:patch": "npm version patch && npm publish", | ||
@@ -24,4 +25,3 @@ "release:minor": "npm version minor && npm publish", | ||
"document": "bit-docs", | ||
"develop": "done-serve --static --develop --port 8080", | ||
"release:pre": "npm version prerelease && npm publish" | ||
"develop": "done-serve --static --develop --port 8080" | ||
}, | ||
@@ -44,5 +44,5 @@ "main": "can-list", | ||
"can-event": "^3.0.1", | ||
"can-map": "^3.0.1", | ||
"can-map": "^3.0.7-pre.1", | ||
"can-namespace": "1.0.0", | ||
"can-observation": "^3.0.1", | ||
"can-observation": "^3.2.0-pre.3", | ||
"can-types": "^1.0.1", | ||
@@ -53,3 +53,2 @@ "can-util": "^3.1.1" | ||
"bit-docs": "0.0.7", | ||
"can-map-define": "^3.0.2", | ||
"done-serve": "^0.2.0", | ||
@@ -56,0 +55,0 @@ "donejs-cli": "^0.9.5", |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
9
0
70625
1337
1
Updatedcan-map@^3.0.7-pre.1
Updatedcan-observation@^3.2.0-pre.3