Skip to content

Commit 06e6418

Browse files
authored
Merge pull request #8 from log-oscon/feature/refactor
[WIP] API specifics are now handled by an Adapter and Refactoring
2 parents 8a10cd0 + fe22175 commit 06e6418

19 files changed

+469
-297
lines changed

CHANGELOG.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,18 @@ The following highlights the changes that have been rolled with each new release
55
Some guidelines in reading this document:
66

77
* The `[new release]` section corresponds to all the changes that have been merged into master, but have not yet been packaged and released.
8-
* Every other release as it's section hose title is the tag of the release.
8+
* Every other release has it's section whose title is the tag of the release.
99
* The changes on each release are a list of Pull Requests (PRs) which were merged into master. For every PR we have the short summary followed by a link to the actual merged PR page. Inside the PR are the detailed changes.
1010
* Being that these are the early days of the repository, we have some code changes that were added directly and without much detail, for these we have a link to the commit instead of the PR.
11+
* Anotations starting with **[BC]** indicates breaking change.
1112

1213
## [new release]
1314

14-
* Adds integration with Travis and adds NPM and Travis badges
15-
* Implements reducer tests ([#6](https://github.com/log-oscon/redux-wpapi/pull/6))
15+
* Introduce Adapters, an abstraction of API specifics so ReduxWPAPI can communicate with any other API client. ([#8](https://github.com/log-oscon/redux-wpapi/pull/8))
16+
* **[BC]** Rename `entity` to `resource` for better REST compliance.
17+
* **[BC]** Rename Request Statuses for better Promise compliance.
18+
* Add integration with Travis and adds NPM and Travis badges
19+
* Implement reducer tests ([#6](https://github.com/log-oscon/redux-wpapi/pull/6))
1620
* Draft on Contributions and the introduction of this `CHANGELOG.md` file ([#5](https://github.com/log-oscon/redux-wpapi/pull/5))
1721
* Fix FAILURE handling ([#3](https://github.com/log-oscon/redux-wpapi/pull/3))
1822

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ export class HomePage extends React.Component {
5252

5353
if (!posts) {
5454
switch (status) {
55-
case ResponseStatus.WAITING: return <div>Loading…</div>;
56-
case ResponseStatus.ERROR: return <div>An error has occurred</div>;
55+
case ResponseStatus.pending: return <div>Loading…</div>;
56+
case ResponseStatus.rejected: return <div>An error has occurred</div>;
5757
}
5858
}
5959

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
},
3434
"dependencies": {
3535
"immutable": "^3.8.1",
36-
"lodash": "^4.15.0",
36+
"lodash": "^4.4.0",
3737
"loose-envify": "^1.2.0",
3838
"qs": "^6.2.1",
3939
"reselect": "^2.5.3"
@@ -59,6 +59,9 @@
5959
"webpack": "^1.13.2",
6060
"wpapi": "^0.9.1"
6161
},
62+
"peerDependency": {
63+
"wpapi": "^0.8.0"
64+
},
6265
"npmName": "redux-wpapi",
6366
"npmFileMap": [
6467
{

0 commit comments

Comments
 (0)