Skip to content

Commit

Permalink
Added a dedicated enumeration API to the CommentType type
Browse files Browse the repository at this point in the history
  • Loading branch information
cedx committed Nov 10, 2016
1 parent 0f4a1cf commit c21d60e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Changelog
This file contains highlights of what changes on each version of the [Akismet for JS](https://github.com/cedx/akismet.js) library.

## Version 2.0.1
- Added a dedicated enumeration API to the `CommentType` type.

## Version 2.0.0
- Breaking change: removed the `Client.serviceURL` property.
- Breaking change: removed the `EndPoints` enumeration.
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,13 @@
"bugs": "https://github.com/cedx/akismet.js/issues",
"license": "Apache-2.0",
"repository": "cedx/akismet.js",
"version": "2.0.0",
"version": "2.0.1",

"jsnext:main": "./src/index",
"main": "./lib/index",

"dependencies": {
"@cedx/enum": "^1.0.0",
"rxjs": "^5.0.0-rc.2",
"superagent": "^2.3.0"
},
Expand Down
4 changes: 3 additions & 1 deletion src/comment_type.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import {Enum} from '@cedx/enum';

/**
* Specifies the type of a comment.
* @type {object}
Expand All @@ -6,7 +8,7 @@
* @property {string} PINGBACK A [pingback](https://en.wikipedia.org/wiki/Pingback) comment.
* @property {string} TRACKBACK A [trackback](https://en.wikipedia.org/wiki/Trackback) comment.
*/
export const CommentType = Object.freeze({
export const CommentType = Enum.create({
COMMENT: 'comment',
PINGBACK: 'pingback',
TRACKBACK: 'trackback'
Expand Down

0 comments on commit c21d60e

Please sign in to comment.