Comparing version 3.0.4-pre.1 to 3.0.4
@@ -5,2 +5,3 @@ var List = require('can-list'); | ||
var Map = require('can-map'); | ||
require("can-map-define"); | ||
@@ -200,3 +201,3 @@ QUnit.module('can-list'); | ||
var Animal = Map.extend(); | ||
var me = new Person({ name: "John" }); | ||
@@ -206,3 +207,3 @@ var animal = new Animal({ name: "Tak" }); | ||
var hero = { name: "Ghandi" }; | ||
var people = new People([]); | ||
@@ -213,5 +214,5 @@ var specialPeople = new People([ | ||
]); | ||
people = people.concat([me, animal, specialPeople], specialPeople, [1, 2], 3); | ||
ok(people.attr('length') === 8, "List length is right"); | ||
@@ -410,2 +411,17 @@ 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 () { | ||
@@ -412,0 +428,0 @@ var list = new List([]), |
{ | ||
"name": "can-list", | ||
"version": "3.0.4-pre.1", | ||
"version": "3.0.4", | ||
"description": "Observable lists", | ||
@@ -14,7 +14,6 @@ "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 can-reflect && git branch -D release && git push origin can-reflect", | ||
"postversion": "git push --tags && git checkout master && 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 --tag pre", | ||
"release:patch": "npm version patch && npm publish", | ||
@@ -25,3 +24,4 @@ "release:minor": "npm version minor && npm publish", | ||
"document": "bit-docs", | ||
"develop": "done-serve --static --develop --port 8080" | ||
"develop": "done-serve --static --develop --port 8080", | ||
"release:pre": "npm version prerelease && npm publish" | ||
}, | ||
@@ -43,11 +43,12 @@ "main": "can-list", | ||
"can-construct": "^3.0.0", | ||
"can-event": "^3.0.1", | ||
"can-map": "^3.0.7-pre.1", | ||
"can-event": "^3.3.0", | ||
"can-map": "^3.0.7", | ||
"can-namespace": "1.0.0", | ||
"can-observation": "^3.2.0-pre.3", | ||
"can-observation": "^3.0.1", | ||
"can-types": "^1.0.1", | ||
"can-util": "^3.1.1" | ||
"can-util": "^3.2.2" | ||
}, | ||
"devDependencies": { | ||
"bit-docs": "0.0.7", | ||
"can-map-define": "^3.0.2", | ||
"done-serve": "^0.2.0", | ||
@@ -54,0 +55,0 @@ "donejs-cli": "^0.9.5", |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
143869
48
2702
0
10
1
Updatedcan-event@^3.3.0
Updatedcan-map@^3.0.7
Updatedcan-observation@^3.0.1
Updatedcan-util@^3.2.2