Closed ryanbecker closed 1 year ago
undefined, null, and Date types are serializing differently in version 2.5.1. I confirmed with an updated unit test: https://github.com/microsoft/ApplicationInsights-node.js/compare/develop...ryanbecker:ApplicationInsights-node.js:feature/data-type-serialization-issue.
undefined
null
Date
Prior to 2.5.1: undefined -> '' null -> '' new Date('2023-03-30T01:02:03.004Z') -> '2023-03-30T01:02:03.004Z'
''
new Date('2023-03-30T01:02:03.004Z')
'2023-03-30T01:02:03.004Z'
After 2.5.1: undefined -> 'undefined' null -> 'null' new Date('2023-03-30T01:02:03.004Z') -> '"2023-03-30T01:02:03.004Z"'
'undefined'
'null'
'"2023-03-30T01:02:03.004Z"'
Maybe something changed with this commit? https://github.com/microsoft/ApplicationInsights-node.js/commit/bdcd8f70b3bc9b600624c4e1d183edbbbd341517
undefined
,null
, andDate
types are serializing differently in version 2.5.1. I confirmed with an updated unit test: https://github.com/microsoft/ApplicationInsights-node.js/compare/develop...ryanbecker:ApplicationInsights-node.js:feature/data-type-serialization-issue.Prior to 2.5.1:
undefined
->''
null
->''
new Date('2023-03-30T01:02:03.004Z')
->'2023-03-30T01:02:03.004Z'
After 2.5.1:
undefined
->'undefined'
null
->'null'
new Date('2023-03-30T01:02:03.004Z')
->'"2023-03-30T01:02:03.004Z"'
Maybe something changed with this commit? https://github.com/microsoft/ApplicationInsights-node.js/commit/bdcd8f70b3bc9b600624c4e1d183edbbbd341517