Skip to content

Commit

Permalink
🚢 v0.28.0 - 2021-10-18
Browse files Browse the repository at this point in the history
Added:
- mongo: adds support for `mongodb+srv` connection strings.
- mongo: binds in a default TLS Config if `ssl=true` and a TLS config has not been provided.
- storage: adds `Expirer` interface to enable stores to add support for configuring record expiration.
- mongo: implements `storage.Expirer` interface to enable TTL based expiry on tokens.

Changed:
- mongo: migrated internal use of `isDup(err)` to `mongo.IsDuplicateKeyError(err)`.

Removed:
- mongo: removed internal `isDup(err)` function.
  • Loading branch information
matthewhartstonge committed Oct 18, 2021
1 parent 39038b5 commit d5a174b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [Unreleased]
## [v0.28.0] - 2021-10-18
### Added
- mongo: adds support for `mongodb+srv` connection strings.
- mongo: binds in a default TLS Config if `ssl=true` and a TLS config has not been provided.
- storage: adds `Expirer` interface to enable stores to add support for configuring record expiration.
- mongo: implements `storage.Expirer` interface to enable TTL based expiry on tokens.

### Changed
- mongo: migrated use of `isDup(err)` to `mongo.IsDuplicateKeyError(err)`.
- mongo: migrated internal use of `isDup(err)` to `mongo.IsDuplicateKeyError(err)`.

### Removed
- mongo: removed internal `isDup(err)` function.
Expand Down Expand Up @@ -653,6 +654,7 @@ clear out the password field before sending the response.
- General pre-release!

[Unreleased]: https://github.com/matthewhartstonge/storage/tree/master
[v0.28.0]: https://github.com/matthewhartstonge/storage/tree/v0.28.0
[v0.27.0]: https://github.com/matthewhartstonge/storage/tree/v0.27.0
[v0.26.0]: https://github.com/matthewhartstonge/storage/tree/v0.26.0
[v0.25.1]: https://github.com/matthewhartstonge/storage/tree/v0.25.1
Expand Down
10 changes: 1 addition & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ that conforms to *all the interfaces!* required by [fosite][fosite].
- [Development](#development)
- [Testing](#testing)
- [Examples](#examples)
- [Disclaimer](#disclaimer)

## Compatibility
The following table lists the compatible versions of fosite-storage-mongo with
Expand All @@ -18,11 +17,11 @@ know what versions you are successfully paired with.

| storage version | minimum fosite version | maximum fosite version |
|----------------:|-----------------------:|-----------------------:|
| `v0.28.X` | `v0.32.X` | `v0.34.X` |
| `v0.27.X` | `v0.32.X` | `v0.34.X` |
| `v0.26.X` | `v0.32.X` | `v0.34.X` |
| `v0.25.X` | `v0.32.X` | `v0.34.X` |
| `v0.24.X` | `v0.32.X` | `v0.32.X` |
| `v0.22.X` | `v0.32.X` | `v0.32.X` |

## Development
To start hacking:
Expand All @@ -39,13 +38,6 @@ repo for reference:

- [MongoDB Example](./examples/mongo)

## Disclaimer
* We are currently using this project in house with Storage `v0.26.x` and Fosite
`v0.32.x` with good success.
* If you are able to provide help in keeping storage up to date, feel free to
raise a github issue and discuss where you are able/willing to help. I'm
always happy to review PRs and merge code in :ok_hand:

## Licensing
storage is under the Apache 2.0 License.

Expand Down

0 comments on commit d5a174b

Please sign in to comment.