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
fix(express): Add package.json for express #50554
fix(express): Add package.json for express #50554
Conversation
@quinnturner Thank you for submitting this PR! I see this is your first time submitting to DefinitelyTyped 👋 — I'm the local bot who will help you through the process of getting things through. This is a live comment which I will keep updated. 1 package in this PRCode ReviewsBecause this is a widely-used package, a DT maintainer will need to review it before it can be merged. Status
Once every item on this list is checked, I'll ask you for permission to merge and publish the changes. Diagnostic Information: What the bot saw about this PR{
"type": "info",
"now": "-",
"pr_number": 50554,
"author": "quinnturner",
"headCommitOid": "bb385e1224e07264d5aef8e63a8c077b79219298",
"lastPushDate": "2021-01-12T19:10:53.000Z",
"lastActivityDate": "2021-01-12T19:24:34.000Z",
"maintainerBlessed": false,
"hasMergeConflict": false,
"isFirstContribution": true,
"popularityLevel": "Critical",
"pkgInfo": [
{
"name": "express",
"kind": "edit",
"files": [
{
"path": "types/express/package.json",
"kind": "package-meta-ok"
}
],
"owners": [
"borisyankov",
"CMUH",
"puneetar",
"dfrankland"
],
"addedOwners": [],
"deletedOwners": [],
"popularityLevel": "Critical"
}
],
"reviews": [
{
"type": "stale",
"reviewer": "andrewbranch",
"date": "2021-01-12T17:31:12.000Z",
"abbrOid": "f45cfc4"
}
],
"ciResult": "pass"
} |
🔔 @borisyankov @CMUH @puneetar @dfrankland — please review this PR in the next few days. Be sure to explicitly select |
@quinnturner The CI build failed! Please review the logs for more information. Once you've pushed the fixes, the build will automatically re-run. Thanks! |
types/express/package.json
Outdated
"private": true, | ||
"dependencies": { | ||
"@types/body-parser": "*", | ||
"@types/express-serve-static-core": "^4.17.18", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove the others and add this one here: https://github.com/microsoft/DefinitelyTyped-tools/blob/master/packages/definitions-parser/allowedPackageJsonDependencies.txt
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was thinking that as well, glad I got the second opinion. Thanks!
f45cfc4
to
04664e0
Compare
@quinnturner The CI build failed! Please review the logs for more information. Once you've pushed the fixes, the build will automatically re-run. Thanks! |
Adds `@types/express-serve-static-core` to `allowedPackageJsonDependencies.txt`. Required for DefinitelyTyped/DefinitelyTyped#50554. `@types/express@4.17.10` requires `@types/express-serve-static-core@^4.17.18`. All versions before `4.17.18` break typing.
Submitted a request on |
Adds a versioned peer dependency for `@types/express` for `@types/express-serve-static-core` `^4.17.18`. This fixes a breaking typing issue for `@types/4.17.10` where it strictly requires `@types/express-serve-static-core` `^4.17.18`. Otherwise, all properties on `Request` are not defined.
04664e0
to
bb385e1
Compare
Inspecting the JavaScript source for this package found some properties that are not in the .d.ts files. express (unpkg)was missing the following properties:
|
@andrewbranch Thank you for reviewing this PR! The author has pushed new commits since your last review. Could you take another look and submit a fresh review? |
@AndrewLeedham, can you sign off? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes this looks good to me
👋 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? Comparison details 📊
It looks like nothing changed too much. I won’t post performance data again unless it gets worse. |
I just published |
Tested, here's my current
LGTM ✅ |
* Add PWA support via CLI. Add some icons... (#39) * Update dependencies (as well as Angular 11 migration) (#31) * Update angular core * Update angular cli * Update angular universal * Update the rest * Update dependencies 2 (#34) * Update Angular core * Update Angular material * Update depencies, npm audit * Remove package-lock from .gitignore * General code restyling (#33) * Edit editor config (IDEA): space between brackets for imports, double quotes * Remove [NBSP] * Rename types to pokemon-types.ts including classes and references. * Set typescript version between 4.0.0 and 4.1.0 in package.json * Replace generics with types in generation collection item model * Restyle footer. Format code and remove unnecessary imports. * Use concat instead of + in getPokemonSvgUrl function. * Rename constants for better reading. * Clickable generation card (#35) * Initial components and logic. All clicks on generation cards lead to generation 1. * Add cards to generation item / pokemon list. Remove underline from generation list. * Add subtitles for card, add function for version_group formatting. * Added new subtitle for pokemon list from generation. Changed homescreen Pokemon to list 251 entries. * Change return type of formatVersionGroups function * Add initial pwa setup via CLI and add some icons * Check dependencies and merge and update where necessary * Add more icons * Rename app in manifest * Change theme color in webmanifest to whitesmoke * Install on other machine, update package.json * Remove reducer folder and files. (#42) * Simple refactoring 1 (#43) * Rename a whole lot of files, add folder structure for interfaces. Some changes to theme color. * Modify gamesForGeneration.ts to use numbers instead of a string. * Change witch case in generations.component.ts to use numbers from the gamesForGeneration object. Move ngFor iterator to anchor tag in html template. * Add Apple touch icon and rename short name in manifest. * Add data for generations (first / last Pokemon, games, platform) (#48) * Add pokemon numbers for each generation. * New file for consolidated generation data * Replace gamesForGeneration and pokemonNumberForGeneration with new data set (generationData.ts). Update switch case in generations.component.ts. * Add working generation list and links (#44) * Add routing and logic for generations. Replace dreamworld svg with official artwork. * Remove padding from pokemon image in mat-card. * Remove pokemon component (entry page) and replace it with a home component. * Add the missing home component. * Fix folder structure fore home route. Rename functions. * Add subtitle with Generation X Pokémon for mat-card. * Fix issues (duplicated property, remove unnecessary component) from merge conflict. * Add new model for main region. Add main region to card subtitle. * Run obligatory dependency security updates * Add title to generation (list of pokemon) page. * Add ngIf directive to check for generation content. Restyle component. * Fix DefinitelyTyped/DefinitelyTyped#50554 * Fix issue with generation title card rendering. (#57) * Add pokemon boxart (Gen 1 - 5) (#49) * Add first batch of games and boxarts. * Add another batch of boxart. * Add more boxart images. Start with mat-card styling / layout for games * Add more boxart images. Start with mat-card styling / layout for games. * Add more box art images. * Add generationData for card subtitle. Add missing Pokemon Yellow. * Add more boxart up to generation 5. Add generation title cards. Update styling. * Add alt attribute to images. * Change some styling. * Change sidenav behaviour to be opened in desktop mode. (#59) * Rename generation component into pokemon-list. (#61)
* Add PWA support via CLI. Add some icons... (#39) * Update dependencies (as well as Angular 11 migration) (#31) * Update angular core * Update angular cli * Update angular universal * Update the rest * Update dependencies 2 (#34) * Update Angular core * Update Angular material * Update depencies, npm audit * Remove package-lock from .gitignore * General code restyling (#33) * Edit editor config (IDEA): space between brackets for imports, double quotes * Remove [NBSP] * Rename types to pokemon-types.ts including classes and references. * Set typescript version between 4.0.0 and 4.1.0 in package.json * Replace generics with types in generation collection item model * Restyle footer. Format code and remove unnecessary imports. * Use concat instead of + in getPokemonSvgUrl function. * Rename constants for better reading. * Clickable generation card (#35) * Initial components and logic. All clicks on generation cards lead to generation 1. * Add cards to generation item / pokemon list. Remove underline from generation list. * Add subtitles for card, add function for version_group formatting. * Added new subtitle for pokemon list from generation. Changed homescreen Pokemon to list 251 entries. * Change return type of formatVersionGroups function * Add initial pwa setup via CLI and add some icons * Check dependencies and merge and update where necessary * Add more icons * Rename app in manifest * Change theme color in webmanifest to whitesmoke * Install on other machine, update package.json * Remove reducer folder and files. (#42) * Simple refactoring 1 (#43) * Rename a whole lot of files, add folder structure for interfaces. Some changes to theme color. * Modify gamesForGeneration.ts to use numbers instead of a string. * Change witch case in generations.component.ts to use numbers from the gamesForGeneration object. Move ngFor iterator to anchor tag in html template. * Add Apple touch icon and rename short name in manifest. * Add data for generations (first / last Pokemon, games, platform) (#48) * Add pokemon numbers for each generation. * New file for consolidated generation data * Replace gamesForGeneration and pokemonNumberForGeneration with new data set (generationData.ts). Update switch case in generations.component.ts. * Add working generation list and links (#44) * Add routing and logic for generations. Replace dreamworld svg with official artwork. * Remove padding from pokemon image in mat-card. * Remove pokemon component (entry page) and replace it with a home component. * Add the missing home component. * Fix folder structure fore home route. Rename functions. * Add subtitle with Generation X Pokémon for mat-card. * Fix issues (duplicated property, remove unnecessary component) from merge conflict. * Add new model for main region. Add main region to card subtitle. * Run obligatory dependency security updates * Add title to generation (list of pokemon) page. * Add ngIf directive to check for generation content. Restyle component. * Fix DefinitelyTyped/DefinitelyTyped#50554 * Add function to add conjunction word to list. * Add function to convert word to uppercase. * Use helper function in generation component. * Add helper function to get artwork image from species. Remove old function in pokemon-list.component.ts
Adds a versioned peer dependency for `@types/express` for `@types/express-serve-static-core` `^4.17.18`. This fixes a breaking typing issue for `@types/4.17.10` where it strictly requires `@types/express-serve-static-core` `^4.17.18`. Otherwise, all properties on `Request` are not defined.
Adds a versioned dependency for
@types/express
for@types/express-serve-static-core
^4.17.18
.This fixes a breaking typing issue for
@types/4.17.10
where it strictly requires@types/express-serve-static-core
^4.17.18
.Otherwise, all properties on
Request
are not defined.Please review the existing discussion on this thread: #50390
We might be required to modify: https://github.com/microsoft/DefinitelyTyped-tools/blob/master/packages/definitions-parser/allowedPackageJsonDependencies.txtModification merged.Please fill in this template.
npm test <package to test>
.