From b87963e7cbe1387cd34d9323eacf05714ec3cea9 Mon Sep 17 00:00:00 2001 From: Bret Comnes Date: Sat, 19 Aug 2017 09:32:30 -0700 Subject: [PATCH] 1.0.1 --- CHANGELOG.md | 6 +++++- README.md | 10 ++++++++-- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bd97429..e3cb7d9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,5 +2,9 @@ All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/). +## 1.0.1 - 2017-08-19 +* Fix sibling re-ordering +* Add option to disable placeholder text + ## 1.0.0 - 2017-08-17 -* Engadge 🚀 +* Engage 🚀 diff --git a/README.md b/README.md index 565f4aa..3ecc8a3 100644 --- a/README.md +++ b/README.md @@ -28,8 +28,14 @@ $ npm install twitter-component ### `TwitterComponent = require('twitter-component`) Import `TwitterComponent` component class. -### `tweet = new TwitterComponent()` -Create a new instance of the twitter component. There are no options or arguments. +### `tweet = new TwitterComponent([opts])` +Create a new instance of the twitter component. `opts` is an options objec that can have the following options: + +```js +{ + placeholder: true // Enables placeholder text while loading tweet cards +} +``` ### `tweet.render(tweetURL)` Returns a div that, when mounted into the page, will be the target of `twttr.widgets.createTweet`.