Skip to content

Commit e8ee072

Browse files
committed
Add allow origin change to migration guide
1 parent 83fd234 commit e8ee072

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
- [Issue #206] Request/Response should be imported from child interfaces
1010
- [Issue #218] Remove and replaced loggging with ts-tiny-log
1111
- Hardened types to replace many `any` members and parameters
12+
- ALLOW_ORIGIN is no longer optional
1213

1314
### Additions
1415

MIGRATION.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,8 @@
150150
5. PointyAPI no longer "pollutes" express' namespaces to extend the Request and Response interfaces. Instead, they are extended. Change `import { Request, Response, ... } from 'express';` to `import { Request, Response, ... } from 'pointyapi`.
151151
1. NOTE: PointyAPI doesn't export all members from express; so you may need to split imports if they import other than Request/Response/NextFunction/Application
152152
6. Many functions and members have been type "hardened". You may need to adjust/cast parameters and members if you see compilation errors.
153-
7. `getValidationConstraints` has several breaking changes, if you are using that in your application:
153+
7. `ALLOW_ORIGIN` is no longer optional in environment config. Previously, this would revert to CLIENT_URL if unset (for development); but this could be insecure if forgotten about.
154+
8. `getValidationConstraints` has several breaking changes, if you are using that in your application:
154155
1. No longer accepts a key parameter. Instead, use `getValidationConstraintsByKey()`
155156
2. No longer returns false if no keys exist, in favor of an empty object `{}`
156157
3. No longer returns implicit any

0 commit comments

Comments
 (0)