Skip to content

Commit

Permalink
Version 4.1.2.
Browse files Browse the repository at this point in the history
  • Loading branch information
ezze committed Oct 13, 2020
2 parents 0d77db6 + fa7e9ac commit 2577c59
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
## Changelog

### 4.1.2 (2020-10-13)

- Expose `error` in TypeScript definition of `SatRec`.
- Fix TypeScript definition for `PositionAndVelocity` to allow error handling.

### 4.1.1 (2020-09-15)

- Fix TypeScript definition for `gstime` (#73).
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ Special thanks to all contributors for improving usability and bug fixes :)
- [dangodev (Drew Powers)](https://github.com/dangodev)
- [thkruz (Theodore Kruczek)](https://github.com/thkruz)
- [bakercp (Christopher Baker)](https://github.com/bakercp)
- [Kyle G. Maxwell](https://github.com/kylegmaxwell)
- [Chad Johnston](https://github.com/iamthechad)
- [drom (Aliaksei Chapyzhenka)](https://github.com/drom)
- [PeterDaveHello (Peter Dave Hello)](https://github.com/PeterDaveHello)
- [nhamer](https://github.com/nhamer)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "satellite.js",
"version": "4.1.1",
"version": "4.1.2",
"description": "SGP4/SDP4 calculation library",
"main": "lib/index.js",
"jsnext:main": "dist/satellite.es.js",
Expand Down
9 changes: 7 additions & 2 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ declare module 'satellite.js' {
* Mean motion in radians per minute.
*/
no: number;
/**
* Error code indicating propagation failure type.
*/
error: number;
}

/**
Expand Down Expand Up @@ -95,10 +99,11 @@ declare module 'satellite.js' {
/**
* The position_velocity result is a key-value pair of ECI coordinates.
* These are the base results from which all other coordinates are derived.
* If there is an error the position and velocity will be false.
*/
export interface PositionAndVelocity {
position: EciVec3<Kilometer>;
velocity: EciVec3<KilometerPerSecond>;
position: EciVec3<Kilometer>|boolean;
velocity: EciVec3<KilometerPerSecond>|boolean;
}

/**
Expand Down

0 comments on commit 2577c59

Please sign in to comment.