Skip to content

Commit

Permalink
Merge branch 'release/3.0.0-beta.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
mynetx committed Aug 16, 2018
2 parents 41d4669 + 6061d13 commit 6eba9a6
Show file tree
Hide file tree
Showing 19 changed files with 7,416 additions and 1,409 deletions.
3 changes: 3 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"presets": ["es2015"]
}
62 changes: 62 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
{
// http://eslint.org/docs/rules/

"ecmaFeatures": {
"binaryLiterals": false, // enable binary literals
"blockBindings": true, // enable let and const (aka block bindings)
"defaultParams": false, // enable default function parameters
"forOf": true, // enable for-of loops
"generators": false, // enable generators
"objectLiteralComputedProperties": false, // enable computed object literal property names
"objectLiteralDuplicateProperties": false, // enable duplicate object literal properties in strict mode
"objectLiteralShorthandMethods": false, // enable object literal shorthand methods
"objectLiteralShorthandProperties": false, // enable object literal shorthand properties
"octalLiterals": false, // enable octal literals
"regexUFlag": false, // enable the regular expression u flag
"regexYFlag": false, // enable the regular expression y flag
"templateStrings": true , // enable template strings
"unicodeCodePointEscapes": false, // enable code point escapes
"jsx": false, // enable JSX
"modules": true
},

"env": {
"browser": true, // browser global variables.
"node": true, // Node.js global variables and Node.js-specific rules.
"amd": true, // defines require() and define() as global variables as per the amd spec.
"es6": true // EcmaScript 6
},

"globals": {
// e.g. "angular": true
},

"plugins": [
// e.g. "react" (must run `npm install eslint-plugin-react` first)
],

"rules": {
////////// Possible Errors //////////

"valid-typeof": 2, // Ensure that the results of typeof are compared against a valid string


////////// Best Practices //////////

"eqeqeq": 2, // require the use of === and !==
"no-alert": 2, // disallow the use of alert, confirm, and prompt

////////// Stylistic Issues //////////

"eol-last": 2, // enforce newline at the end of file, with no multiple empty lines
"no-lonely-if": 2, // disallow if as the only statement in an else block (off by default)
"no-mixed-spaces-and-tabs": 2, // disallow mixed spaces and tabs for indentation
"no-multiple-empty-lines": 2, // disallow multiple empty lines (off by default)
"no-trailing-spaces": 2, // disallow trailing whitespace at the end of lines

"quotes": [
2,
"double"
]
}
}
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
node_modules
npm-debug.log
RELEASE_MESSAGE*
test*
test/codebirdm.js
test/codebirdt.js
test*.html
*.jpg
27 changes: 27 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# The Travis setup:
# - run lint for every JS version
# - run testsuite for every JS version

language: node_js

node_js:
- "0.10"
- "0.12"
- iojs
- "8"
- "9"
- "10"

sudo: false

script:
- ./node_modules/eslint/bin/eslint.js codebird.js
- npm test

matrix:
fast_finish: true

# trigger Buildtime Trend Service to parse Travis CI log
notifications:
webhooks:
- https://buildtimetrend.herokuapp.com/travis
20 changes: 20 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,6 +1,26 @@
codebird-js - changelog
=======================

3.0.0 (not yet released)
+ #106 Add error callback
+ #96 Add logout method
+ #98 Support promises as alternative to callbacks
- Drop support for undocumented API methods
+ Add security check hasOwnProperty
+ #110 Add support for Collections API
+ Transform codebase to EcmaScript 7
+ #25 Add unit testing suite
+ Add POST statuses/unretweet/:id
+ #116 Update GET statuses/oembed with new endpoint
+ Support POST media/upload with media_data base64
- Fix check for require for webpack compatibility
+ Add Account Activity API methods
+ Add new Direct Messages API
- Remove sunsetting Direct Messages API
- Remove contributor API methods
- Remove deprecated statuses/update_with_media method
- Remove deprecated statuses/update_profile_background_image method

2.6.0 (2015-04-08)
+ Allow to get the supported API methods as array
- #79 Use POST for users/lookup and statuses/lookup, params may get too long for GET
Expand Down
8 changes: 6 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,13 @@
- Normal bugs are fixed in the develop branch.
- New features are added to the develop branch, too.

### Which file?
- Please apply all edits to the `codebird.es7.js` file.
The codebird.js file is transpiled from it using BabelJS.

### Code style
- Please use 4 soft spaces per indent level.
- Take a look at the coding style used in codebird.js and apply the same convention to your contributed code.
- Please use 2 soft spaces per indent level.
- Take a look at the coding style used in `codebird.es7.js` and apply the same convention to your contributed code.

### License
- Code contributed by you will get the same license as Codebird itself, that is, GPU General Public License V3.
Loading

0 comments on commit 6eba9a6

Please sign in to comment.