Skip to content

Commit

Permalink
Update CHANGELOG
Browse files Browse the repository at this point in the history
  • Loading branch information
ingalls committed Apr 16, 2024
1 parent 687847c commit d21668a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
1 change: 0 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,3 @@ jobs:
- name: Github Release
uses: softprops/action-gh-release@v2


4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@

## Version History

### v6.4.0

- :rocket: Add ability to ignore `flow` section in diff

### v6.3.3

- :white_check_mark: Update GH Release action
Expand Down
13 changes: 8 additions & 5 deletions lib/cot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,10 @@ export default class CoT {
*/
isDiff(
cot: CoT,
opts: {
diffMetadata: boolean;
diffStaleStartTime: boolean;
} = {
opts = {
diffMetadata: false,
diffStaleStartTime: false
diffStaleStartTime: false,
diffFlow: false
}
): boolean {
const a = this.to_geojson();
Expand All @@ -84,6 +82,11 @@ export default class CoT {
delete b.properties.metadata;
}

if (!opts.diffFlow) {
delete a.properties.flow;
delete b.properties.flow;
}

if (!opts.diffStaleStartTime) {
delete a.properties.time;
delete a.properties.stale;
Expand Down

0 comments on commit d21668a

Please sign in to comment.