-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
v10: Docs, Ergonomics, Bug Fixes (#19)
* Check in * Update BusResponses.swift * Document rail code * Lots of docs * Add Corresponding WMATADelegate Handler docs Docs for WMATADate * Update Errors.swift * Add v10 Migration Guide
- Loading branch information
1 parent
2ff2c8e
commit a794b2f
Showing
16 changed files
with
2,018 additions
and
370 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Migration to v10 | ||
|
||
## Breaking changes | ||
|
||
- `Route` now encodes to a single value again rather than an object. If you have previously saved documents using v9 containing a `Route`, you'll need to re-encode them. For example, with a JSONEncoder | ||
Prior to v9 | ||
```javascript | ||
"route": "10A" | ||
``` | ||
|
||
v9 | ||
```javascript | ||
"route": { | ||
"id": "10A" | ||
} | ||
``` | ||
|
||
v10 | ||
```javascript | ||
"route"": "10A" | ||
``` | ||
-`Stop` now encodes to a single value. If you have previously saved documents containing a `Stop`, you'll need to re-encode them. For example with JSONEncoder | ||
Prior to v10 | ||
```javascript | ||
"stop": { | ||
"id": "1234567" | ||
} | ||
``` | ||
v10 | ||
```javascript | ||
"stop": "1234567" | ||
``` | ||
- `StopInfo`'s `time` field now decodes to a `Date` rather than a `String`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.