diff --git a/README.md b/README.md index befe0eb..9aaf847 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/package.json b/package.json index f710d0f..1a9378e 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/accumulator.js b/src/accumulator.js index a70dd9d..e4d4c01 100644 --- a/src/accumulator.js +++ b/src/accumulator.js @@ -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 ///////////////////////////////////////////////////////////////////////////////////////////// diff --git a/src/bit-stream.js b/src/bit-stream.js index 8003163..15b169f 100644 --- a/src/bit-stream.js +++ b/src/bit-stream.js @@ -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 ///////////////////////////////////////////////////////////////////////////////////////////// diff --git a/src/crc-calculator.js b/src/crc-calculator.js index 5ade937..01a9d71 100644 --- a/src/crc-calculator.js +++ b/src/crc-calculator.js @@ -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 ///////////////////////////////////////////////////////////////////////////////////////////// diff --git a/src/decoder.js b/src/decoder.js index eeddf25..15ea69c 100644 --- a/src/decoder.js +++ b/src/decoder.js @@ -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 ///////////////////////////////////////////////////////////////////////////////////////////// diff --git a/src/encoder.js b/src/encoder.js index f540d8d..1a0f764 100644 --- a/src/encoder.js +++ b/src/encoder.js @@ -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 ///////////////////////////////////////////////////////////////////////////////////////////// diff --git a/src/fit.js b/src/fit.js index fe303de..7cebc7f 100644 --- a/src/fit.js +++ b/src/fit.js @@ -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 ///////////////////////////////////////////////////////////////////////////////////////////// diff --git a/src/index.js b/src/index.js index 1277b11..acb2c04 100644 --- a/src/index.js +++ b/src/index.js @@ -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 ///////////////////////////////////////////////////////////////////////////////////////////// diff --git a/src/mesg-definition.js b/src/mesg-definition.js index 4652d81..b944378 100644 --- a/src/mesg-definition.js +++ b/src/mesg-definition.js @@ -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 ///////////////////////////////////////////////////////////////////////////////////////////// @@ -16,7 +16,7 @@ import Profile from "./profile.js"; const textEncoder = new TextEncoder(); class MesgDefinition { - globalMesgNumber; + globalMessageNumber; localMesgNum; fieldDefinitions = []; developerFieldDefinitions = []; @@ -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) => { @@ -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); @@ -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; diff --git a/src/output-stream.js b/src/output-stream.js index 60a54ef..861939b 100644 --- a/src/output-stream.js +++ b/src/output-stream.js @@ -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 ///////////////////////////////////////////////////////////////////////////////////////////// diff --git a/src/profile.js b/src/profile.js index babaa72..5e65fb6 100644 --- a/src/profile.js +++ b/src/profile.js @@ -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" }, diff --git a/src/stream.js b/src/stream.js index 7d0f342..10f6bc4 100644 --- a/src/stream.js +++ b/src/stream.js @@ -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 ///////////////////////////////////////////////////////////////////////////////////////////// diff --git a/src/utils-hr-mesg.js b/src/utils-hr-mesg.js index 75c358c..28f417c 100644 --- a/src/utils-hr-mesg.js +++ b/src/utils-hr-mesg.js @@ -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 ///////////////////////////////////////////////////////////////////////////////////////////// diff --git a/src/utils-internal.js b/src/utils-internal.js index bdae60f..a3de5a6 100644 --- a/src/utils-internal.js +++ b/src/utils-internal.js @@ -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 ///////////////////////////////////////////////////////////////////////////////////////////// diff --git a/src/utils-memo-glob.js b/src/utils-memo-glob.js index b0f77ef..58b02cd 100644 --- a/src/utils-memo-glob.js +++ b/src/utils-memo-glob.js @@ -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"; diff --git a/src/utils.js b/src/utils.js index 9495d55..38c72ef 100644 --- a/src/utils.js +++ b/src/utils.js @@ -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 /////////////////////////////////////////////////////////////////////////////////////////////