Skip to content

Fix bad types/v* references in tests#40575

Merged
sandersn merged 2 commits intomasterfrom
fix-bad-types-references-tests
Nov 22, 2019
Merged

Fix bad types/v* references in tests#40575
sandersn merged 2 commits intomasterfrom
fix-bad-types-references-tests

Conversation

@sandersn
Copy link
Contributor

This also fixes the tests for incorrect 'package/v7-style references, which I missed previously.

  • gulp-connect apparently works with gulp 3 or 4, but the examples on
    the homepage are written for gulp 3. I updated them minimally to work
    with gulp 4 -- its types at least.

  • auth0.widget depends on auth0-js which now uses modules. I switched to
    import types and updated the type names.

gulp-connect *apparently* works with gulp 3 or 4, but the examples on
the homepage are written for gulp 3. I updated them minimally to work
with gulp 4 -- its types at least.

auth0.widget depends on auth0-js which now uses modules. I switched to
import types and updated the type names.
@sandersn sandersn changed the title Fix bad types references tests Fix bad types/v* references in tests Nov 22, 2019
@sandersn sandersn merged commit 6f4c34b into master Nov 22, 2019
@sandersn sandersn deleted the fix-bad-types-references-tests branch November 22, 2019 00:05
@typescript-bot
Copy link
Contributor

I just published @types/auth0.widget@0.0.36 to npm.

@typescript-bot
Copy link
Contributor

👋 Hi there! I’ve run some quick measurements against master and your PR. These metrics should help the humans reviewing this PR gauge whether it might negatively affect compile times or editor responsiveness for users who install these typings.

Let’s review the numbers, shall we?

auth0.widget/v*

Comparison details for auth0.widget/v* 📊
master #40575 diff
Batch compilation
Memory usage (MiB) 34.9 32.9 -5.8%
Type count 2243 2216 -1%
Assignability cache size 119 115 -3%
Language service
Samples taken 12 10 -17%
Identifiers in tests 12 10 -17%
getCompletionsAtPosition
    Mean duration (ms) 95.7 91.9 -3.9%
    Mean CV 22.4% 22.2%
    Worst duration (ms) 110.8 110.5 -0.2%
    Worst identifier callbackURL icon
getQuickInfoAtPosition
    Mean duration (ms) 90.7 87.3 -3.8%
    Mean CV 18.6% 16.7% -10.2%
    Worst duration (ms) 108.7 98.5 -9.4%
    Worst identifier callbackURL clientID

It looks like nothing changed too much. I won’t post performance data again unless it gets worse.

gulp-connect/v5

Comparison details for gulp-connect/v5 📊
master #40575 diff
Batch compilation
Memory usage (MiB) 69.5 68.9 -0.8%
Type count 11510 11265 -2%
Assignability cache size 3692 3760 +2%
Language service
Samples taken 116 128 +10%
Identifiers in tests 116 128 +10%
getCompletionsAtPosition
    Mean duration (ms) 374.0 365.2 -2.3%
    Mean CV 11.2% 11.1%
    Worst duration (ms) 512.8 463.1 -9.7%
    Worst identifier connect middleware
getQuickInfoAtPosition
    Mean duration (ms) 373.7 364.1 -2.6%
    Mean CV 11.4% 10.5% -8.0%
    Worst duration (ms) 497.4 450.4 -9.4%
    Worst identifier root connect

It looks like nothing changed too much. I won’t post performance data again unless it gets worse.

@typescript-bot typescript-bot added the Perf: Same typescript-bot determined that this PR will not significantly impact compilation performance. label Nov 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Perf: Same typescript-bot determined that this PR will not significantly impact compilation performance.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants