Skip to content

Commit

Permalink
Prepare to make a new version of Topirarist available via 'npm', but …
Browse files Browse the repository at this point in the history
…also provide a small backwards compatiblity fix so we only have to update the minor version number.
  • Loading branch information
dchambers committed Oct 16, 2014
1 parent 4686e10 commit cc4b1d7
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
4 changes: 2 additions & 2 deletions lib/topiarist.js
Original file line number Diff line number Diff line change
Expand Up @@ -766,8 +766,8 @@

var methods = {
'extend': extend, 'inherit': inherit, 'mixin': mixin, 'implement': implement,
'hasImplemented': hasImplemented, 'classIsA': classIsA, 'isA': isA, 'fulfills': fulfills,
'classFulfills': classFulfills
'hasImplemented': hasImplemented, 'classIsA': classIsA, 'isAssignableFrom': classIsA,
'isA': isA, 'fulfills': fulfills, 'classFulfills': classFulfills
};

/* jshint evil:true */
Expand Down
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "topiarist",
"version": "0.0.3",
"version": "0.1.0",
"author": "kybernetikos <[email protected]>",
"description": "a micro library for extension, mixin and interfaces.",
"description": "Topiarist provides tree and shape-based type verification for JavaScript.",
"main": "./lib/topiarist.js",
"repository": {
"type": "git",
Expand All @@ -11,7 +11,9 @@
"keywords": [
"extend",
"inheritance",
"OO"
"OO",
"mixin",
"interface"
],
"dependencies" : {},
"devDependencies": {
Expand Down
4 changes: 4 additions & 0 deletions spec/classIsASpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,8 @@ describe("topiarist.classIsA", function() {
it('returns true for a class that inherits other class.', function() {
expect( topiarist.classIsA(ChildThatInherits, OtherClass)).toBe( true );
});

it('is also available under the alias isAssignableFrom, for backwards compatibility reasons.', function() {
expect( topiarist.isAssignableFrom(ChildClass, ParentClass)).toBe( true );
});
});

0 comments on commit cc4b1d7

Please sign in to comment.