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

feat(backcompat): @types/node backcompat tests #1352

Merged
merged 10 commits into from
Aug 27, 2020

Conversation

markwolff
Copy link
Member

Which problem is this PR solving?

Short description of the changes

  • Adds npm run test:backcompat
  • Adds /backwards-compatability/nodeXYZ

Backcompat tests will try to tsc a sample node app using different versions of @types/node.

@@ -13,6 +13,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export function unrefTimer(timer: NodeJS.Timeout): void {
export function unrefTimer(timer: NodeJS.Timer): void {
Copy link
Member Author

Choose a reason for hiding this comment

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

@mayurkale22 Are you aware of anything that would cause this to be an issue? This is the only change needed for this PR to go green.

Copy link
Member

Choose a reason for hiding this comment

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

The Timer type exists specifically to have compatibility with older versions of node. This should be ok.

@codecov
Copy link

codecov bot commented Jul 27, 2020

Codecov Report

Merging #1352 into master will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master    #1352   +/-   ##
=======================================
  Coverage   93.91%   93.91%           
=======================================
  Files         151      151           
  Lines        4615     4615           
  Branches      953      953           
=======================================
  Hits         4334     4334           
  Misses        281      281           
Impacted Files Coverage Δ
...opentelemetry-core/src/platform/node/timer-util.ts 50.00% <100.00%> (ø)

Copy link
Member

@obecny obecny left a comment

Choose a reason for hiding this comment

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

why all packages have license: UNLICENSED ?

backwards-compatability/node8/package.json Outdated Show resolved Hide resolved
backwards-compatability/node8/index.ts Outdated Show resolved Hide resolved
@dyladan dyladan merged commit 2052a24 into open-telemetry:master Aug 27, 2020
dyladan added a commit to dyladan/opentelemetry-js that referenced this pull request Sep 9, 2022
Co-authored-by: Daniel Dyla <dyladan@users.noreply.github.com>
dyladan added a commit to dyladan/opentelemetry-js that referenced this pull request Sep 9, 2022
Co-authored-by: Daniel Dyla <dyladan@users.noreply.github.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.

Cannot compile an app with @types/node v8 installed
3 participants