Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ The FIT SDK documentation is available at [https://developer.garmin.com/fit](htt
## FIT SDK Developer Forum
Share your knowledge, ask questions, and get the latest FIT SDK news in the [FIT SDK Developer Forum](https://forums.garmin.com/developer/).
## FIT JavaScript SDK Requirements
The FIT JavaScript SDK uses ECMAScript module syntax and requires Node.js v21.0 or higher, or a browser with a compatible JavaScript runtime engine.
The FIT JavaScript SDK uses ECMAScript module syntax and requires Node.js v14.0 or higher, or a browser with a compatible JavaScript runtime engine.
## Install
```sh
npm install @garmin/fitsdk
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": "@garmin/fitsdk",
"version": "21.168.0",
"version": "21.169.0",
"description": "FIT JavaScript SDK",
"main": "src/index.js",
"type": "module",
Expand Down
4 changes: 2 additions & 2 deletions src/accumulator.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
// Transfer (FIT) Protocol License.
/////////////////////////////////////////////////////////////////////////////////////////////
// ****WARNING**** This file is auto-generated! Do NOT edit this file.
// Profile Version = 21.168.0Release
// Tag = production/release/21.168.0-0-gb831b31
// Profile Version = 21.169.0Release
// Tag = production/release/21.169.0-0-g7105132
/////////////////////////////////////////////////////////////////////////////////////////////


Expand Down
4 changes: 2 additions & 2 deletions src/bit-stream.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
// Transfer (FIT) Protocol License.
/////////////////////////////////////////////////////////////////////////////////////////////
// ****WARNING**** This file is auto-generated! Do NOT edit this file.
// Profile Version = 21.168.0Release
// Tag = production/release/21.168.0-0-gb831b31
// Profile Version = 21.169.0Release
// Tag = production/release/21.169.0-0-g7105132
/////////////////////////////////////////////////////////////////////////////////////////////


Expand Down
4 changes: 2 additions & 2 deletions src/crc-calculator.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
// Transfer (FIT) Protocol License.
/////////////////////////////////////////////////////////////////////////////////////////////
// ****WARNING**** This file is auto-generated! Do NOT edit this file.
// Profile Version = 21.168.0Release
// Tag = production/release/21.168.0-0-gb831b31
// Profile Version = 21.169.0Release
// Tag = production/release/21.169.0-0-g7105132
/////////////////////////////////////////////////////////////////////////////////////////////


Expand Down
4 changes: 2 additions & 2 deletions src/decoder.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
// Transfer (FIT) Protocol License.
/////////////////////////////////////////////////////////////////////////////////////////////
// ****WARNING**** This file is auto-generated! Do NOT edit this file.
// Profile Version = 21.168.0Release
// Tag = production/release/21.168.0-0-gb831b31
// Profile Version = 21.169.0Release
// Tag = production/release/21.169.0-0-g7105132
/////////////////////////////////////////////////////////////////////////////////////////////


Expand Down
4 changes: 2 additions & 2 deletions src/encoder.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
// Transfer (FIT) Protocol License.
/////////////////////////////////////////////////////////////////////////////////////////////
// ****WARNING**** This file is auto-generated! Do NOT edit this file.
// Profile Version = 21.168.0Release
// Tag = production/release/21.168.0-0-gb831b31
// Profile Version = 21.169.0Release
// Tag = production/release/21.169.0-0-g7105132
/////////////////////////////////////////////////////////////////////////////////////////////


Expand Down
4 changes: 2 additions & 2 deletions src/fit.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
// Transfer (FIT) Protocol License.
/////////////////////////////////////////////////////////////////////////////////////////////
// ****WARNING**** This file is auto-generated! Do NOT edit this file.
// Profile Version = 21.168.0Release
// Tag = production/release/21.168.0-0-gb831b31
// Profile Version = 21.169.0Release
// Tag = production/release/21.169.0-0-g7105132
/////////////////////////////////////////////////////////////////////////////////////////////


Expand Down
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
// Transfer (FIT) Protocol License.
/////////////////////////////////////////////////////////////////////////////////////////////
// ****WARNING**** This file is auto-generated! Do NOT edit this file.
// Profile Version = 21.168.0Release
// Tag = production/release/21.168.0-0-gb831b31
// Profile Version = 21.169.0Release
// Tag = production/release/21.169.0-0-g7105132
/////////////////////////////////////////////////////////////////////////////////////////////


Expand Down
12 changes: 6 additions & 6 deletions src/mesg-definition.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
// Transfer (FIT) Protocol License.
/////////////////////////////////////////////////////////////////////////////////////////////
// ****WARNING**** This file is auto-generated! Do NOT edit this file.
// Profile Version = 21.168.0Release
// Tag = production/release/21.168.0-0-gb831b31
// Profile Version = 21.169.0Release
// Tag = production/release/21.169.0-0-g7105132
/////////////////////////////////////////////////////////////////////////////////////////////


Expand All @@ -16,7 +16,7 @@ import Profile from "./profile.js";
const textEncoder = new TextEncoder();

class MesgDefinition {
globalMesgNumber;
globalMessageNumber;
localMesgNum;
fieldDefinitions = [];
developerFieldDefinitions = [];
Expand All @@ -37,7 +37,7 @@ class MesgDefinition {
throw new Error(`mesgNum: ${mesgNum} could not be found in the Profile`);
}

this.globalMesgNumber = mesgNum;
this.globalMessageNumber = mesgNum;
this.localMesgNum = 0;

Object.keys(mesg).forEach((fieldName) => {
Expand Down Expand Up @@ -122,7 +122,7 @@ class MesgDefinition {
outputStream.writeUInt8(FIT.ARCH_LITTLE_ENDIAN);

// Global Message Number
outputStream.writeUInt16(this.globalMesgNumber);
outputStream.writeUInt16(this.globalMessageNumber);

// Field Count
outputStream.writeUInt8(this.fieldDefinitions.length);
Expand All @@ -147,7 +147,7 @@ class MesgDefinition {
}

equals(other) {
if (this.globalMessageNumber !== other.globalMessageNumber
if (this.globalMesgNumber !== other.globalMesgNumber
|| this.fieldDefinitions.length !== other.fieldDefinitions.length
|| this.developerFieldDefinitions.length !== other.developerFieldDefinitions.length) {
return false;
Expand Down
4 changes: 2 additions & 2 deletions src/output-stream.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
// Transfer (FIT) Protocol License.
/////////////////////////////////////////////////////////////////////////////////////////////
// ****WARNING**** This file is auto-generated! Do NOT edit this file.
// Profile Version = 21.168.0Release
// Tag = production/release/21.168.0-0-gb831b31
// Profile Version = 21.169.0Release
// Tag = production/release/21.169.0-0-g7105132
/////////////////////////////////////////////////////////////////////////////////////////////


Expand Down
6 changes: 3 additions & 3 deletions src/profile.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@
// Transfer (FIT) Protocol License.
/////////////////////////////////////////////////////////////////////////////////////////////
// ****WARNING**** This file is auto-generated! Do NOT edit this file.
// Profile Version = 21.168.0Release
// Tag = production/release/21.168.0-0-gb831b31
// Profile Version = 21.169.0Release
// Tag = production/release/21.169.0-0-g7105132
/////////////////////////////////////////////////////////////////////////////////////////////


const Profile = {
version: {
major: 21,
minor: 168,
minor: 169,
patch: 0,
type: "Release"
},
Expand Down
4 changes: 2 additions & 2 deletions src/stream.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
// Transfer (FIT) Protocol License.
/////////////////////////////////////////////////////////////////////////////////////////////
// ****WARNING**** This file is auto-generated! Do NOT edit this file.
// Profile Version = 21.168.0Release
// Tag = production/release/21.168.0-0-gb831b31
// Profile Version = 21.169.0Release
// Tag = production/release/21.169.0-0-g7105132
/////////////////////////////////////////////////////////////////////////////////////////////


Expand Down
4 changes: 2 additions & 2 deletions src/utils-hr-mesg.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
// Transfer (FIT) Protocol License.
/////////////////////////////////////////////////////////////////////////////////////////////
// ****WARNING**** This file is auto-generated! Do NOT edit this file.
// Profile Version = 21.168.0Release
// Tag = production/release/21.168.0-0-gb831b31
// Profile Version = 21.169.0Release
// Tag = production/release/21.169.0-0-g7105132
/////////////////////////////////////////////////////////////////////////////////////////////


Expand Down
4 changes: 2 additions & 2 deletions src/utils-internal.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
// Transfer (FIT) Protocol License.
/////////////////////////////////////////////////////////////////////////////////////////////
// ****WARNING**** This file is auto-generated! Do NOT edit this file.
// Profile Version = 21.168.0Release
// Tag = production/release/21.168.0-0-gb831b31
// Profile Version = 21.169.0Release
// Tag = production/release/21.169.0-0-g7105132
/////////////////////////////////////////////////////////////////////////////////////////////


Expand Down
4 changes: 2 additions & 2 deletions src/utils-memo-glob.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
// Transfer (FIT) Protocol License.
/////////////////////////////////////////////////////////////////////////////////////////////
// ****WARNING**** This file is auto-generated! Do NOT edit this file.
// Profile Version = 21.168.0Release
// Tag = production/release/21.168.0-0-gb831b31
// Profile Version = 21.169.0Release
// Tag = production/release/21.169.0-0-g7105132
/////////////////////////////////////////////////////////////////////////////////////////////

import Profile from "./profile.js";
Expand Down
4 changes: 2 additions & 2 deletions src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
// Transfer (FIT) Protocol License.
/////////////////////////////////////////////////////////////////////////////////////////////
// ****WARNING**** This file is auto-generated! Do NOT edit this file.
// Profile Version = 21.168.0Release
// Tag = production/release/21.168.0-0-gb831b31
// Profile Version = 21.169.0Release
// Tag = production/release/21.169.0-0-g7105132
/////////////////////////////////////////////////////////////////////////////////////////////


Expand Down