Skip to content

Commit b355ace

Browse files
committed
Merge pull request #20 from js-data/v3
V3
2 parents 3747a92 + 05aedcb commit b355ace

20 files changed

+1838
-1349
lines changed

.github/CONTRIBUTING.md

Lines changed: 22 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,37 @@
1-
# Contributing
1+
# Contributing to js-data-rethinkdb
22

3-
[Read the Contributing Guide](http://js-data.io/docs/contributing).
3+
[Read the general Contributing Guide](http://js-data.io/docs/contributing).
44

5-
## Support
5+
## Project structure
66

7-
[Find out how to Get Support](http://js-data.io/docs/support).
7+
* `dist/` - Contains final build files for distribution
8+
* `doc/` - Output folder for JSDocs
9+
* `src/` - Project source code
10+
* `test/` - Project tests
811

9-
## Community
12+
## Clone, build & test
1013

11-
[Explore the Community](http://js-data.io/docs/community).
14+
1. `clone [email protected]:js-data/js-data-rethinkdb.git`
15+
1. `cd js-data-rethinkdb`
16+
1. `npm install`
17+
1. `npm run build` - Lint and build distribution files
18+
1. `npm run mocha` - Run tests (RethinkDB must be running)
1219

13-
### Have write access?
14-
15-
To cut a release:
20+
## To cut a release
1621

1722
1. Checkout master
1823
1. Bump version in `package.json` appropriately
19-
1. Run `npm run release`
2024
1. Update `CHANGELOG.md` appropriately
21-
1. Commit and push changes, including the `dist/` folder
25+
1. Run `npm run release`
26+
1. Commit and push changes
27+
1. Checkout `release`, merge `master` into `release`
28+
1. Run `npm run release` again
29+
1. Commit and push changes
2230
1. Make a GitHub release
31+
- tag from `release` branch
2332
- set tag name to version
2433
- set release name to version
2534
- set release body to changelog entry for the version
26-
- attach the files in the `dist/` folder
2735
1. `npm publish .`
36+
37+
See also [Community & Support](http://js-data.io/docs/community).

.github/ISSUE_TEMPLATE.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
(delete this line) GitHub Issues are NOT for support questions.
2-
(delete this line) GitHub Issues ARE for bug reports, feature requests, and other issues.
3-
(delete this line) Find out how to Get Support here: http://js-data.io/docs/support.
1+
(delete this line) Find out how to get help here: http://js-data.io/docs/community.
42

5-
<your detailed, discussable, actionable, and helpful text goes here>
3+
<your detailed, actionable, and helpful text goes here>
64

75
Thanks!

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
Fixes #<issue_number_goes_here> (it's a good idea to open an issue first for discussion)
22

33
- [ ] - `npm test` succeeds
4-
- [ ] - Pull request has been squashed into 1 commit
5-
- [ ] - I did NOT commit changes to `dist/`
64
- [ ] - Code coverage does not decrease (if any source code was changed)
75
- [ ] - Appropriate JSDoc comments were updated in source code (if applicable)
86
- [ ] - Approprate changes to js-data.io docs have been suggested ("Suggest Edits" button)

.npmignore

Lines changed: 0 additions & 39 deletions
This file was deleted.

AUTHORS

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# This is the official list of js-data-rethinkdb project authors.
22
#
3-
# This file is controlled by scripts/authors.js
4-
#
53
# Names are formatted as:
6-
# # commits Name or Organization <email address>
4+
# Name or Organization <email address>
5+
#
76
# The email address is not required for organizations.
7+
#
88
InternalFX <[email protected]>
99
Jason Dobry <[email protected]>
1010
Ollie Relph <[email protected]>

CHANGELOG.md

Lines changed: 115 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,118 @@
1+
##### 3.0.0-beta.2 - 29 April 2016
2+
3+
###### Breaking changes
4+
- How you must now import in ES2015:
5+
6+
```js
7+
import RethinkDBAdapter from 'js-data-rethinkdb'
8+
const adapter = new RethinkDBAdapter()
9+
```
10+
or
11+
```js
12+
import {RethinkDBAdapter, version} from 'js-data-rethinkdb'
13+
console.log(version)
14+
const adapter = new RethinkDBAdapter()
15+
```
16+
17+
- How you must now import in ES5:
18+
19+
```js
20+
var JSDataRethinkDB = require('js-data-rethinkdb')
21+
var RethinkDBAdapter = JSDataRethinkDB.RethinkDBAdapter
22+
var adapter = new RethinkDBAdapter()
23+
```
24+
25+
- `OPERATORS` is now an export, not a static property of the `RethinkDBAdapter` class.
26+
27+
###### Other
28+
- Upgraded dependencies
29+
- Improved JSDoc comments
30+
- Now using js-data JSDoc template
31+
32+
##### 3.0.0-beta.1 - 17 April 2016
33+
34+
Official v3 beta release
35+
36+
###### Other
37+
- Upgraded dependencies
38+
39+
##### 3.0.0-alpha.13 - 17 March 2016
40+
41+
###### Backwards incompatible API changes
42+
- Added sum and count methods
43+
44+
##### 3.0.0-alpha.12 - 10 March 2016
45+
46+
###### Other
47+
- Moved more common adapter functionality into js-data-adapter
48+
49+
##### 3.0.0-alpha.11 - 06 March 2016
50+
51+
###### Backwards compatible bug fixes
52+
- create() now makes use of withoutRelations()
53+
- More use of Adapter#respond() more consistent
54+
55+
##### 3.0.0-alpha.10 - 06 March 2016
56+
57+
###### Backwards compatible API changes
58+
- Now making use of makeHasManyForeignKeys
59+
60+
##### 3.0.0-alpha.9 - 06 March 2016
61+
62+
###### Other
63+
- Upgraded js-data-adapter
64+
65+
##### 3.0.0-alpha.8 - 06 March 2016
66+
67+
###### Other
68+
- Extracted common adapter functionality into js-data-adapter
69+
- Extracted common js-data repo utility scripts into js-data-repo-tools
70+
71+
##### 3.0.0-alpha.7 - 03 March 2016
72+
73+
###### Backwards compatible API changes
74+
- Added RethinkDBAdapter.extend
75+
76+
##### 3.0.0-alpha.6 - 01 March 2016
77+
78+
###### Backwards compatible bug fixes
79+
- Couple of fixes based on the latest js-data-adapter-tests
80+
81+
##### 3.0.0-alpha.5 - 27 February 2016
82+
83+
###### Backwards compatible API changes
84+
- Added ability to override query operators used by RethinkDBAdapter#filterSequence.
85+
86+
###### Other
87+
- Improved JSDoc comments.
88+
89+
##### 3.0.0-alpha.4 - 26 February 2016
90+
91+
###### Other
92+
- Finished JSDoc comments
93+
94+
##### 3.0.0-alpha.3 - 26 February 2016
95+
96+
###### Backwards compatible API changes
97+
- Removed returnDeletedIds option
98+
- Added insertOpts, updateOpts, deleteOpts, and runOpts options
99+
100+
##### 3.0.0-alpha.2 - 26 February 2016
101+
102+
###### Backwards compatible bug fixes
103+
- Fixed edge case with returnDeletedIds
104+
105+
##### 3.0.0-alpha.1 - 26 February 2016
106+
107+
###### Breaking API changes
108+
- Now depends on js-data 3.x
109+
- Now longer uses internal `defaults` property, settings are on the adapter instance itself
110+
111+
###### Backwards compatible API changes
112+
- Added createMany and updateMany methods
113+
- Added lifecycle hooks for all methods
114+
- Added contains, notContains, |contains, and |notContains operators
115+
1116
##### 2.2.0 - 25 February 2016
2117

3118
###### Other

CONTRIBUTORS

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
# People who have contributed to the js-data-rethinkdb project.
1+
# This is the official list of js-data-rethinkdb project contributors.
22
#
3-
# This file is controlled by scripts/authors.js
3+
# Names are formatted as:
4+
# Name <email address>
45
#
5-
# Names should be added to this file as:
6-
# [commit count] Name <email address>
7-
1 InternalFX <[email protected]>
8-
39 Jason Dobry <[email protected]>
9-
2 Ollie Relph <[email protected]>
6+
InternalFX <[email protected]>
7+
Jason Dobry <[email protected]>
8+
Ollie Relph <[email protected]>

README.md

Lines changed: 13 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -7,64 +7,20 @@
77
[![Circle CI][circle_b]][circle_l]
88
[![npm downloads][dn_b]][dn_l]
99
[![Coverage Status][cov_b]][cov_l]
10-
[![Codacy][cod_b]][cod_l]
1110

1211
RethinkDB adapter for [js-data](http://www.js-data.io/).
1312

14-
To get started, visit __[http://js-data.io](http://www.js-data.io)__.
13+
To get started, visit __[http://js-data.io](http://www.js-data.io/docs/js-data-rethinkdb)__.
1514

16-
## Table of contents
15+
## Links
1716

18-
* [Quick start](#quick-start)
19-
* [Example App](#example-app)
20-
* [Guides and Tutorials](#guides-and-tutorials)
21-
* [API Reference Docs](#api-reference-docs)
22-
* [Community](#community)
23-
* [Support](#support)
24-
* [Contributing](#contributing)
25-
* [License](#license)
26-
27-
## Quick Start
28-
`npm install --save js-data js-data-rethinkdb`.
29-
30-
```js
31-
var JSData = require('js-data');
32-
var RethinkDBAdapter = require('js-data-rethinkdb');
33-
34-
var store = new JSData.DS();
35-
var adapter = new RethinkDBAdapter();
36-
37-
// "store" will now use the RethinkDB adapter for all async operations
38-
store.registerAdapter('rethinkdb', adapter, { default: true });
39-
40-
var User = store.defineResource({
41-
name: 'user'
42-
});
43-
```
44-
45-
## Example App
46-
47-
[js-data-examples/server/rethinkdb](https://github.com/js-data/js-data-examples/tree/master/server/rethinkdb)
48-
49-
## Guides and Tutorials
50-
51-
[Get started at http://js-data.io](http://js-data.io)
52-
53-
## API Reference Docs
54-
55-
[Visit http://api.js-data.io](http://api.js-data.io).
56-
57-
## Community
58-
59-
[Explore the Community](http://js-data.io/docs/community).
60-
61-
## Support
62-
63-
[Find out how to Get Support](http://js-data.io/docs/support).
64-
65-
## Contributing
66-
67-
[Read the Contributing Guide](http://js-data.io/docs/contributing).
17+
* [Quick start](http://www.js-data.io/docs/home#quick-start) - Get started in 5 minutes
18+
* [Guides and Tutorials](http://www.js-data.io/docs/home) - Learn how to use JSData
19+
* [`RethinkDBAdapter` Guide](http://www.js-data.io/docs/js-data-rethinkdb) - Learn how to use `RethinkDBAdapter`
20+
* [API Reference Docs](http://api.js-data.io) - Explore components, methods, options, etc.
21+
* [Community & Support](http://js-data.io/docs/community) - Find solutions and chat with the community
22+
* [General Contributing Guide](http://js-data.io/docs/contributing) - Give back and move the project forward
23+
* [Contributing to js-data-rethinkdb](https://github.com/js-data/js-data-rethinkdb/blob/master/.github/CONTRIBUTING.md)
6824

6925
## License
7026

@@ -80,11 +36,9 @@ Copyright (c) 2014-2016 js-data-rethinkdb project authors
8036
[sl_l]: http://slack.js-data.io
8137
[npm_b]: https://img.shields.io/npm/v/js-data-rethinkdb.svg?style=flat
8238
[npm_l]: https://www.npmjs.org/package/js-data-rethinkdb
83-
[circle_b]: https://img.shields.io/circleci/project/js-data/js-data-rethinkdb/master.svg?style=flat
84-
[circle_l]: https://circleci.com/gh/js-data/js-data-rethinkdb/tree/master
39+
[circle_b]: https://img.shields.io/circleci/project/js-data/js-data-rethinkdb.svg?style=flat
40+
[circle_l]: https://circleci.com/gh/js-data/js-data-rethinkdb
8541
[dn_b]: https://img.shields.io/npm/dm/js-data-rethinkdb.svg?style=flat
8642
[dn_l]: https://www.npmjs.org/package/js-data-rethinkdb
87-
[cov_b]: https://img.shields.io/coveralls/js-data/js-data-rethinkdb/master.svg?style=flat
88-
[cov_l]: https://coveralls.io/github/js-data/js-data-rethinkdb?branch=master
89-
[cod_b]: https://img.shields.io/codacy/69206fcb0df6462ca559610af32fd1fb.svg
90-
[cod_l]: https://www.codacy.com/app/jasondobry/js-data-rethinkdb/dashboard
43+
[cov_b]: https://img.shields.io/codecov/c/github/js-data/js-data-rethinkdb.svg?style=flat
44+
[cov_l]: https://codecov.io/github/js-data/js-data-rethinkdb

conf.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,15 @@
1212
"package": "./package.json"
1313
},
1414
"templates": {
15-
"theme": "lumen",
15+
"theme": "jsdata",
1616
"systemName": "js-data-rethinkdb",
1717
"copyright": "js-data-rethinkdb Copyright © 2014-2016 js-data-rethinkdb project authors",
1818
"outputSourceFiles": true,
19-
"syntaxTheme": "dark",
2019
"linenums": true,
21-
"footer": "<div style=\"text-align:center\">Back to <a href=\"http://js-data.io\">js-data.io</a></div>"
20+
"footer": "<div style=\"text-align:center\"><a href=\"/\">api.js-data.io</a>&nbsp;&#8226;&nbsp;<a href=\"http://js-data.io\">js-data.io</a></div>",
21+
"analytics": {
22+
"ua": "UA-55528236-2",
23+
"domain": "api.js-data.io"
24+
}
2225
}
2326
}

0 commit comments

Comments
 (0)