Skip to content

Commit

Permalink
Updated README (#228)
Browse files Browse the repository at this point in the history
  • Loading branch information
mlhaufe authored Dec 7, 2021
1 parent 8c2c696 commit 4541444
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## v0.23.0

* Fixed bug in README Stack example
* Updated README instructions on webpage installation

## v0.22.0

* Added `implies` function
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,15 @@ As a dependency run the command:

You can also use a specific [version](https://www.npmjs.com/package/@final-hill/decorator-contracts):

`npm install @final-hill/decorator-contracts@0.22.0`
`npm install @final-hill/decorator-contracts@0.23.0`

For use in a webpage:

`<script src="https://unpkg.com/@final-hill/decorator-contracts"></script>`
`<script src="https://cdn.skypack.dev/@final-hill/decorator-contracts"></script>`

With a specific [version](https://www.npmjs.com/package/@final-hill/decorator-contracts@0.22.0):

`<script src="https://unpkg.com/@final-hill/decorator-contracts@0.22.0"></script>`
`<script src="https://cdn.skypack.dev/@final-hill/decorator-contracts@0.23.0"></script>`

## Usage

Expand Down Expand Up @@ -92,7 +92,7 @@ const stackContract = new Contract<StackType<any>>({
demands(self){ return !self.isFull(); },
ensures(self, old, item) {
return !self.isEmpty() &&
self.top === item &&
self.top() === item &&
self.size === old.size + 1;
}
},
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@final-hill/decorator-contracts",
"version": "0.22.0",
"version": "0.23.0",
"description": "Code Contracts for TypeScript and ECMAScript classes",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down

0 comments on commit 4541444

Please sign in to comment.