Skip to content

Commit 1a7a9d8

Browse files
author
Drew
committed
v3.0.0
1 parent 70a838f commit 1a7a9d8

4 files changed

Lines changed: 48 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,33 @@
11
# PointyApi Changelog
22

3+
## [3.0.0] Jun-20-2019
4+
5+
### Breaking Changes (See migration.md)
6+
- [Issue #179] Swap http expect & token param
7+
- Removed database error handler
8+
- Changed `refreshToken` to `__refreshToken` in post endpoints
9+
- Changed `CLIENT_URL` to `ALLOW_ORIGIN`
10+
11+
### Additions
12+
- Added jwtBearer::sign argument
13+
- Added pointy::testmode
14+
- Added new ipc message test
15+
- Added ExampleUser class
16+
- Added ready-check prior to starting server
17+
- Added BaseDb::conn
18+
- Moved Postgres members to BaseDB
19+
20+
### Fixes
21+
- Error handling
22+
- Fixed a bug which mixed up `JWT_TTL` and `JWT_REFRESH_TTL`
23+
- runHook should log error
24+
- patchEndpoint should merge payload after patch hook
25+
- Login endpoint should check validation
26+
- npm update
27+
- Simplified login endpoint
28+
- Fixed default entities bug
29+
- Moved "server-ready" ipc from listen() to pointy::start()
30+
331
## [2.0.0] Jun-06-2019
432

533
### Breaking Changes (See migration.md)

migration.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Migration Guide
22

3+
## What version do you have?
4+
> Choose the version you have before upgrading, and follow the guide to the bottom from there.
5+
- [Version 0.x.x](#version-0.x.x-->-1.x.x)
6+
- [Version 1.x.x](#version-1.x.x-->-2.x.x)
7+
- [Version 2.x.x](#version-2.x.x-->-3.x.x)
8+
39
## Version 0.x.x -> 1.x.x
410

511
1. Remove `response` parameter from responders and handlers
@@ -119,4 +125,15 @@
119125

120126
4. **(Optional)** Guards will now issue a `401` only if a token is not present/valid, otherwise will issue a `403`. This may help determine if the user is authenticated/authorized on the front-end.
121127

122-
5. HTTP Client has swapped the `bearer` and `expect` parameters. You must swap these in your code, if used
128+
## Version 2.x.x -> 3.x.x
129+
130+
1. If you use the PointyAPI HTTP Client, the functions have swapped the `bearer` and `expect` parameters. You must swap these in your code.
131+
2. If your code uses a custom database error handler, this should be removed and the pointyapi error handler used instead.
132+
3. `CLIENT_URL` is no longer used for CORS policy. Now you should use `ALLOW_ORIGINS`. **However, `CLIENT_URL` is still used for links, etc - so don't remove it**.
133+
Example:
134+
135+
`/.env`
136+
```
137+
CLIENT_URL=http://example.com/
138+
ALLOW_ORIGINS=http://example.com/, http://cool-example.com/
139+
```

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "pointyapi",
3-
"version": "2.0.0",
3+
"version": "3.0.0",
44
"author": "stateless-studio",
55
"license": "MIT",
66
"scripts": {

0 commit comments

Comments
 (0)