Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✅ [RUMF-1090] update minimal version to 3.8.2 #1219

Merged

Conversation

BenoitZugmeyer
Copy link
Member

Motivation

Allows to use newer TS features in consumed typings (ex: import type)

Changes

Update minimal TS version to 3.8.2 (the first stable release of TS 3.8)

Testing

  • Local
  • Staging
  • Unit
  • End to end

I have gone over the contributing documentation.

@BenoitZugmeyer BenoitZugmeyer requested a review from a team as a code owner December 15, 2021 09:29
@@ -19,7 +19,7 @@
},
"devDependencies": {
"ts-loader": "6.2.1",
"typescript": "3.0.1",
"typescript": "3.8.2",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stable 3.8.0 and 3.8.1 don't exist: they were used as dev and rc versions. Let's use the first 3.8 stable version, which is 3.8.2

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should update RUM and Logs Readme where we mention:

Types are compatible with TypeScript >= 3.0

@BenoitZugmeyer BenoitZugmeyer requested a review from a team as a code owner December 15, 2021 15:37
@BenoitZugmeyer BenoitZugmeyer merged commit d38b22f into prerelease-v4 Dec 16, 2021
@BenoitZugmeyer BenoitZugmeyer deleted the benoit/increase-minimum-supported-ts-version branch December 16, 2021 09:12
BenoitZugmeyer added a commit that referenced this pull request Dec 17, 2021
…into staging-51

 pm_trace_id: 6379369
 feature_branch_pipeline_id: 6379369
 source: to-staging

* commit 'd6bfca6b8afda6070a80feabc5256fd5397dd1c7':
  ✅ revamp privacy.spec tests
  🔥 [RUMF-1094] remove deprecated attributes
  ✅ [RUMF-1090] update minimal version to 3.8.2 (#1219)
BenoitZugmeyer added a commit that referenced this pull request Dec 20, 2021
 pm_trace_id: 6396748
 feature_branch_pipeline_id: 6396748
 source: to-staging

* commit 'ca87964ab58223739959e185498e14d51198d66e':
  ✅ [RUMF-1090] update minimal version to 3.8.2 (#1219)
  ✨ [RUMF-827] sanitize tags  (#1218)
  🔥 [RUMF-1089] Cleanup legacy intake URLs (#1214)
BenoitZugmeyer added a commit that referenced this pull request Jan 4, 2022
 pm_trace_id: 6502873
 feature_branch_pipeline_id: 6502873
 source: to-staging

* commit '65ad0eeefe4f2a22e0665cab456ab6c7e1636b4d':
  📝 [RUMF-1130] add migration guide to the CHANGELOG (#1238)
  v3.11.0 (#1239)
  🐛 improve privacy computation on a single node (#1226)
  🏷️ [RUMF-1098] move init options into their related interfaces (#1232)
  🔥 [RUMF-1093] deprecated proxyhost option (#1227)
  🐛 [RUMF-1124] Use the programmatic action attribute instead of innertext (#1200)
  🔥 [RUMF-1094] remove deprecated privacy attributes  (#1224)
  ♻️ [RUMF-1092] use a WeakMap to store XHR context (#1222)
  ✅ [RUMF-1090] update minimal version to 3.8.2 (#1219)
  ✨ [RUMF-827] sanitize tags  (#1218)
  🔥 [RUMF-1089] Cleanup legacy intake URLs (#1214)
BenoitZugmeyer added a commit that referenced this pull request Jan 4, 2022
* 🔥 [RUMF-1089] Cleanup legacy intake URLs (#1214)

* 🔥 Cleanup legacy intake URLs

* Use parametrized test

* ✨ [RUMF-827] sanitize tags  (#1218)

* ♻️ [RUMF-827] add function to build tags at a higher level

* ✨ [RUMF-827] sanitize tags

* 👌 simplify implementation

* Single warning message
* Keep sanitization to make sure we can't forge multiple tags from a
  single value
* Removed the "ending semicolon" restriction since it only applies if
  there is no other semicolon in the whole tag (ex: "env:bar:" and
  "env::" are valid, but "env:" is not). Here, we are sure there is a
  semicolon, since we add one ourselves.

* ✅ use valid tag values in tests

* ✅ [RUMF-1090] update minimal version to 3.8.2 (#1219)

* ✅ [RUMF-1090] update minimal version to 3.8.2

* 👌 update mentions of TS 3.0

* 🔥 remove typings utilities now available in TS

* ♻️ [RUMF-1092] use a WeakMap to store XHR context (#1222)

* ♻️ [RUMF-1092] use a WeakMap to store XHR context

* smaller weakmap typings

Co-authored-by: Aymeric <aymeric.mortemousque@datadoghq.com>

Co-authored-by: Aymeric <aymeric.mortemousque@datadoghq.com>

* 🔥 [RUMF-1094] remove deprecated privacy attributes  (#1224)

* 🔥 [RUMF-1094] remove deprecated attributes

* ✅ revamp privacy.spec tests

To have a better vision on what's being tested by `privacy.spec`, some
cleanup was necessary. I took the opportunity to remove some deprecated
variables to improve things here.

* `getNodeSelfPrivacyLevel`: consolidate tests with more test cases and
  highlight current modes priority

* `getNodePrivacyLevel`: remove tests cases when they are already
  handled by `getNodeSelfPrivacyLevel` and consolidate tests on fallback
  value and inheritance

* `serializeDocumentNode`: move those tests to `serialize.spec` since we
  don't use privacy functions here

As well as a few cosmetic changes.

* 🐛 [RUMF-1124] Use the programmatic action attribute instead of innertext (#1200)

* Use the programmatic action attribute instead of innertext for fetching the textual content

Use the programmatic action attribute instead of innertext for fetching the textual content

* Addressing the review comments

* also consider programmatic action names from user defined attribute

* 🐛 fix compatibility with IE11

* 👌 move tests into a more appropriate `describe`

Co-authored-by: Benoît Zugmeyer <benoit.zugmeyer@datadoghq.com>

* 🔥 [RUMF-1093] deprecated proxyhost option (#1227)

* 🔥 Remove deprecated proxyhost option

* Update performance project

* ♻️ Simplidy endpointBuilder

Co-authored-by: Benoît Zugmeyer <benoit.zugmeyer@datadoghq.com>

* 🏷️ [RUMF-1098] move init options into their related interfaces (#1232)

* 🏷️ [RUMF-1098] move init options into their related interfaces

Also, reorder/group init options

* 👌 use ReadonlyArray for allowedTracingOrigins

* 👌 make beforeSend typing clearer in core

* 🐛 improve privacy computation on a single node (#1226)

This commit make sure class names and attributes are treated equally,
and that the most restrictive privacy level takes precedence over the
other.

* 📝 [RUMF-1130] add migration guide to the CHANGELOG (#1238)

* 📝 [RUMF-1130] add migration guide to the CHANGELOG

* 👌 review changes

* Update CHANGELOG.md

Co-authored-by: Bastien Caudan <bastien.caudan@datadoghq.com>

Co-authored-by: Bastien Caudan <bastien.caudan@datadoghq.com>

* 👌 fix small typo in CHANGELOG

Co-authored-by: Aymeric <aymeric.mortemousque@datadoghq.com>
Co-authored-by: MaheshGit233 <32537764+MaheshGit233@users.noreply.github.com>
Co-authored-by: Bastien Caudan <bastien.caudan@datadoghq.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants