Commit Graph

811 Commits

Author SHA1 Message Date
Gabriela Araujo Britto
c8a7c5dace Fix lint errors (#750)
* Fix lint errors #1

* Fix lint errors #2

* Remove unnecessary disables

* Format comment
2020-03-04 12:29:00 -08:00
Gabriela Araujo Britto
a6ea7167bf Log suggestions (#748)
* print suggestions

* Add package-lock

* Clean suggestions directory before running

* Print single json for suggestions

* Print single suggestions json
2020-03-04 12:29:00 -08:00
Nathan Shively-Sanders
b8c010f0ce update package-lock.json 2020-03-04 12:29:00 -08:00
Nathan Shively-Sanders
82f953ace1 Use dtslint@latest (#747)
This was effectively always the case because by default types-publisher
uses the dtslint installed in DefinitelyTyped, which is dtslint@latest.
2020-03-04 12:29:00 -08:00
Nathan Shively-Sanders
32b0439b20 Fix get latest match error format (#744)
* Fix getLatestMatch error format

* add test
2020-03-04 12:29:00 -08:00
Connor Peet
7c0b14d775 Add electron store to dependenciesWhitelist (#740) 2020-03-04 12:28:59 -08:00
Eloy Durán
17284bb1da Don't double-prefix version directory name (#741)
* Don't double-prefix version directory name

* [packages] Add test for formatting version subdir

Co-authored-by: Jack Bates <jack@nottheoilrig.com>
2020-03-04 12:28:59 -08:00
Maxim Mazurok
693af3a880 fix: format contributors links properly (#725) 2020-03-04 12:28:59 -08:00
Eloy Durán
67b3b8a78d Support multiple minor versions in parallel (#723)
* [test] Make DT mock mutable

* [definition-parser] Add tests for current behaviour

* [definition-parser] Support minor version directories

* [package] Update ts-jest

* [test] Fix failure reporting by not symbolicating errors at runtime.

* [README] Prefer npm scripts because those also enable runtime callstack symbolication

* [definition-parser] Cleanup

* [package] Remove dependency on semver pkg again

* [packages] Cleanup

* [packages] Unify and update docs on definitions data

* [definition-parser] Record old minor version path mappings

* [packages] Change DependencyVersion to consider minor versions

* [packages] Take minor versions into consideration

* [tslint] Make green

* [README] Update example snippet from definitions.json

* [definition-parser] Cleanup TODOs

* [definition-parser] Get rid of unneeded data

* Cleanup more comments

* Doc fixes.

Co-Authored-By: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>

* [versions] Simplify code

* More doc fixes

* [definition-parser] Improve error output

Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
2020-03-04 12:28:59 -08:00
Allan Pope
264713bf09 add polished (#738) 2020-03-04 12:28:58 -08:00
Justin Beckwith
7ebacba2a5 fix: add @types/mkdirp-promise to whitelist (#736) 2020-03-04 12:28:58 -08:00
Piotr Błażejewicz (Peter Blazejewicz)
5ce51c1960 feat(connect-mongo): add connect-mongo to white list (#735)
As of version 3.1.1 the connect-mongo ships its own definition file.
Adding to white list will enable using 'connect-mongo' as external
dependency in the existing definitions like passport.socketio.

DefinitelyTyped/DefinitelyTyped#42047

Thanks!
2020-03-04 12:28:58 -08:00
Alan Lu
65a60bcc5c Add ethers to whitelist (#733) 2020-03-04 12:28:58 -08:00
Nathan Shively-Sanders
9a87d928e9 Assert that dependencies exist on npm (#732)
* Assert that dependencies exist

* fix line length lint
2020-03-04 12:28:58 -08:00
Doug Brunner
bc66676bca Fixed assert on platforms with different sort rules (#728) (#729)
* Fixed assert on platforms with different sort rules (#728)

* Removed unnecessary sort check (#728)

* Fixed unused import (#728)
2020-03-04 12:28:57 -08:00
Nathan Shively-Sanders
300d8b38d1 deprecated packages use unescapedName for dependency in package.json (#731)
previously it was `name` which is incorrect for scoped packages, because
it's the DT-mangled version -- scope__name -- not the npm name: @scope/name.
2020-03-04 12:28:57 -08:00
Doug Brunner
21adb8e51a Fixed case of .DS_Store exclusion (#639) (#730) 2020-03-04 12:28:57 -08:00
Callum Macrae
a31f84e871 Add @emotion/serialize to whitelist (#727)
Required for https://github.com/DefinitelyTyped/DefinitelyTyped/pull/41567
2020-03-04 12:28:57 -08:00
Simon Schick
7479da4def chore(whitelist): add some hapi packages (#726) 2020-03-04 12:28:57 -08:00
Nathan Shively-Sanders
dfb7456942 update dtslint@2.0.5 2020-03-04 12:28:56 -08:00
Nathan Shively-Sanders
cf4a67de02 Update dtslint to 2.0.4 - support Minimum for TS version 2020-03-04 12:28:56 -08:00
Nathan Shively-Sanders
27e27ebe56 Update dtslint and definitelytyped-header-parser 2020-03-04 12:28:56 -08:00
Eloy Durán
5aa6c0d616 [AppInsights] Check if key env exists before enabling (#722) 2020-03-04 12:28:56 -08:00
Eloy Durán
e74ad03f9a [tslint] Make green and add to CI (#721)
* Use CRLF everywhere

* [tslint] Disable a few rules as per current style

* [tslint] Run auto fix

* [tslint] Disable more rules as per current style

* [tslint] Manually fix most failures

* [tslint] Wait for promises to finish

* [package] Run lint as part of test script

Co-authored-by: Orta <orta.therox+github@gmail.com>
2020-03-04 12:28:55 -08:00
Nathan Shively-Sanders
3dba1ab9f1 Move github publishing to @types (#720)
* Publish to @types on github, not @testtypepublishing

Since the name is the same as NPM, a lot of name-switching
infrastructure isn't needed anymore.

I'm going to need a separate token for publishing now. I haven't got
that done yet.

* Differentiate github publish:@types vs types-registry

To create 3 different NPM publishers, I needed 3 different tokens, and 3
different enums, which further led to difference between package
publishing and registry publishing code. I think this is OK;
it's clunky but painfully explicit.

* remove GithubPackages token+enum entry
2020-03-04 12:28:55 -08:00
Nathan Shively-Sanders
5f61bab945 add logform to allowed dependencies 2020-03-04 12:28:55 -08:00
dependabot[bot]
63f3f98441 Bump npm from 6.12.0 to 6.13.4 (#719)
Bumps [npm](https://github.com/npm/cli) from 6.12.0 to 6.13.4.
- [Release notes](https://github.com/npm/cli/releases)
- [Changelog](https://github.com/npm/cli/blob/latest/CHANGELOG.md)
- [Commits](https://github.com/npm/cli/compare/v6.12.0...v6.13.4)

Signed-off-by: dependabot[bot] <support@github.com>
2020-03-04 12:28:55 -08:00
Nathan Shively-Sanders
30c9ff02a5 Remove parallelism from npm install (#715)
* Remove parallelism from npm install

I'm not sure this will prevent errors in @types/node PRs, but it should
help.

* fix closure-conversion mistake
2020-03-04 12:28:54 -08:00
ExE Boss
7c69e944f6 fix: Allow <reference /> to self in UMD tests (#714)
* fix: Allow `<reference />` to self in UMD tests

* fix: Disallow `<reference />` to self in module files that only export
2020-03-04 12:28:54 -08:00
Nathan Shively-Sanders
592470a647 Make filesystem interface synchronous (#713)
* Remove async in definition-parser and module-info

It seems about 33% faster on my local machine. I need to test it on
Azure of course; also I need to clean up uses of now-possibly-unused FS
methods.

* make FS synchronous
2020-03-04 12:28:54 -08:00
Nathan Shively-Sanders
0de94cfe7d Handle references to nested paths that are not defined 2020-03-04 12:28:54 -08:00
Nathan Shively-Sanders
0321ecd88e Last-minute update to allow <reference types="../packagename/x" /> 2020-03-04 12:28:53 -08:00
Nathan Shively-Sanders
8bbf3a8236 Follow test references to calculate unused files (#710)
* Saving work so far

Lots of notes on how it *should* work, plus some new tests. It doesn't
work the way it should yet though.

* fix header format in test files

* In-progress, very broken

* Add .vscode/launch.json for debugging

* Tests all pass, refactor is mostly done.

Still need to look at TODOs in definition-parser and probably write more
tests.

* cleanup/refactoring

* add dependencies from OTHER_FILES.txt

* more refactoring

* remove TODOs

* error on bad types references

* more errors for OTHER_FILES.txt

1. errors when it's already reachable (it shouldn't be in the list)
2. errors when it doesn't exist (it ... also shouldn't be in the list).

* fix test failures

* actually fix tests

* Allow files named v1.d.ts

even though it is extremely confusing

* add logging and commentary

* Improve new error message
2020-03-04 12:28:53 -08:00
Sebastian Silbermann
6cfa526a49 Update dependenciesWhitelist.txt (#712) 2020-03-04 12:28:53 -08:00
Nathan Shively-Sanders
78db156b06 Merge pull request #709 from microsoft/rename-UNUSED_FILES
Rename UNUSED_FILES to OTHER_FILES
2020-03-04 12:28:53 -08:00
Nathan Shively-Sanders
f33e17789a Merge pull request #699 from ffflorian/fix/whitespace
fix: LF newlines, remove trailing whitespace
2020-03-04 12:28:52 -08:00
Nathan Shively-Sanders
bb7badea38 Merge pull request #698 from ffflorian/feat/readme-links
feat: Make readme more readable
2020-03-04 12:28:52 -08:00
Nathan Shively-Sanders
20477d70a5 Merge pull request #703 from a-tarasyuk/add-types-react-navigation-to-whitelist
remove react-navigation from Whitelist in favor of @types/react-navigation
2020-03-04 12:28:52 -08:00
Nathan Shively-Sanders
d25ad0b941 remove @types/rsmq from Whitelist in favor of @types/rsmq (#705) 2020-03-04 12:28:52 -08:00
Alexander T
14888910a3 remove react-native-tab-view from Whitelist in favor of @types/react-native-tab-view (#704) 2020-03-04 12:28:52 -08:00
Alexander T
34072379f0 remove next-redux-wrapper from Whitelist in favor of @types/next-redux-wrapper (#706) 2020-03-04 12:28:51 -08:00
Nathan Shively-Sanders
896bc69e66 Update dtslint to 2.0 2020-03-04 12:28:51 -08:00
Nathan Shively-Sanders
dcccef6b3f Stop testing and publishing TS 2.0-2.7 2020-03-04 12:28:51 -08:00
Alexander T
807537c7cb remove highcharts from Whitelist in favor of @types/highcharts (#701) 2020-03-04 12:28:51 -08:00
Alexander T
48ccaf23bd remove ink from Whitelist in favor of @types/ink (#700) 2020-03-04 12:28:50 -08:00
Andrew Branch
49d4da9b18 Use full extension on types field to avoid FS lookups (#670) 2020-03-04 12:28:50 -08:00
Alexander T
8d58869e1a add @types/base-x to whitelist (#702) 2020-03-04 12:28:50 -08:00
Alexander T
eb0e0ae2b0 add @types/expect to dependencies whitelist (#697) 2020-03-04 12:28:50 -08:00
Nathan Shively-Sanders
039ffb53d6 Fix unneeded package.json for GH.
It is required to be the publisher repo's URL; NPM allows it to be any
URL, so we previously used it indicate the new location of the package.

This is a quickfix; probably the correct fix is to change the
NPM-generated package too.
2020-03-04 12:28:50 -08:00
Nathan Shively-Sanders
d1e551254f Dual-tag and -deprecate too 2020-03-04 12:28:49 -08:00