dependabot[bot]
8777ba1cb1
Bump enzyme-adapter-react-16 from 1.7.1 to 1.8.0 ( #2864 )
...
Bumps [enzyme-adapter-react-16](https://github.com/airbnb/enzyme ) from 1.7.1 to 1.8.0.
- [Release notes](https://github.com/airbnb/enzyme/releases )
- [Changelog](https://github.com/airbnb/enzyme/blob/master/CHANGELOG.md )
- [Commits](https://github.com/airbnb/enzyme/commits/enzyme-adapter-utils@1.8.0 )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2019-01-25 12:33:23 -05:00
dependabot[bot]
b77e2421e3
Bump nock from 11.0.0-beta.4 to 11.0.0-beta.5 ( #2865 )
...
Bumps [nock](https://github.com/nock/nock ) from 11.0.0-beta.4 to 11.0.0-beta.5.
- [Release notes](https://github.com/nock/nock/releases )
- [Changelog](https://github.com/nock/nock/blob/beta/CHANGELOG.md )
- [Commits](https://github.com/nock/nock/commits )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2019-01-25 12:12:20 -05:00
Paul Melnikow
be7cb93773
Refactor service loader ( #2861 )
...
This moves the loader code into `core/base-service`, leaving behind in `services/index.js` only the convenience imports.
Ref #2832
2019-01-24 22:55:10 -05:00
Paul Melnikow
23fe3927b2
Refactor _makeBadgeData -> coalesceBadge ( #2859 )
...
`base.js` is pretty long and `_makeBadgeData` is one of the most complex
functions in it.
It's a pure function so it's easy to test in isolation. This moves the function into its own module and reorganizes the tests in a way that makes it evaluate what it's doing, and easier to test what is and isn't covered.
Ref https://github.com/badges/shields/pull/2796#discussion_r249251008
2019-01-24 22:48:45 -05:00
dependabot[bot]
2db22abd11
Bump @babel/plugin-proposal-object-rest-spread from 7.3.0 to 7.3.1 ( #2853 )
...
Bumps [@babel/plugin-proposal-object-rest-spread](https://github.com/babel/babel ) from 7.3.0 to 7.3.1.
- [Release notes](https://github.com/babel/babel/releases )
- [Changelog](https://github.com/babel/babel/blob/master/CHANGELOG.md )
- [Commits](https://github.com/babel/babel/compare/v7.3.0...v7.3.1 )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2019-01-24 20:49:58 +00:00
dependabot[bot]
e718ecaeb0
Bump bytes from 3.0.0 to 3.1.0 ( #2851 )
...
Bumps [bytes](https://github.com/visionmedia/bytes.js ) from 3.0.0 to 3.1.0.
- [Release notes](https://github.com/visionmedia/bytes.js/releases )
- [Changelog](https://github.com/visionmedia/bytes.js/blob/master/History.md )
- [Commits](https://github.com/visionmedia/bytes.js/compare/3.0.0...3.1.0 )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2019-01-24 20:46:46 +00:00
dependabot[bot]
9cb399a8dc
Bump eslint-plugin-import from 2.14.0 to 2.15.0 ( #2852 )
...
Bumps [eslint-plugin-import](https://github.com/benmosher/eslint-plugin-import ) from 2.14.0 to 2.15.0.
- [Release notes](https://github.com/benmosher/eslint-plugin-import/releases )
- [Changelog](https://github.com/benmosher/eslint-plugin-import/blob/master/CHANGELOG.md )
- [Commits](https://github.com/benmosher/eslint-plugin-import/compare/v2.14.0...v2.15.0 )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2019-01-24 01:00:24 -05:00
dependabot[bot]
d03faaa7bb
Bump @babel/plugin-proposal-class-properties from 7.2.3 to 7.3.0 ( #2841 )
...
Bumps [@babel/plugin-proposal-class-properties](https://github.com/babel/babel ) from 7.2.3 to 7.3.0.
- [Release notes](https://github.com/babel/babel/releases )
- [Changelog](https://github.com/babel/babel/blob/master/CHANGELOG.md )
- [Commits](https://github.com/babel/babel/compare/v7.2.3...v7.3.0 )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2019-01-24 00:57:54 -05:00
dependabot[bot]
8c4c5ed6bd
Bump @babel/preset-env from 7.2.3 to 7.3.1 ( #2843 )
...
Bumps [@babel/preset-env](https://github.com/babel/babel ) from 7.2.3 to 7.3.1.
- [Release notes](https://github.com/babel/babel/releases )
- [Changelog](https://github.com/babel/babel/blob/master/CHANGELOG.md )
- [Commits](https://github.com/babel/babel/compare/v7.2.3...v7.3.1 )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2019-01-24 00:56:02 -05:00
dependabot[bot]
1cc7be7989
Bump moment from 2.23.0 to 2.24.0 ( #2839 )
...
Bumps [moment](https://github.com/moment/moment ) from 2.23.0 to 2.24.0.
- [Release notes](https://github.com/moment/moment/releases )
- [Changelog](https://github.com/moment/moment/blob/develop/CHANGELOG.md )
- [Commits](https://github.com/moment/moment/compare/2.23.0...2.24.0 )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2019-01-23 21:54:48 -05:00
Caleb Cartwright
8e41e95a4e
Update [VisualStudioMarketplace] download calculation for Azure DevOps Extensions ( #2748 )
...
* feat: udpate vs marketplace download counts to handle azure devops scenario
* chore: added documentation info to download badge for AzureDevOps on VS Marketplace
* refactor: updated VS Marketplace Downloads badge to better cover Azure DevOps extensions
* feat: added separate service for ADO extension install badges
* refactor: simplifying vs marketplace statistics transform
* refactor: finished refactoring VS Marketplace services
* docs: added inline comment on VS Marketplace service base
* Tweak docs
* refactor: tweaked validation for VS Marketplace response
* chore: added todo in VS Marketplace base
* Tweak comment
* refactor: VS Marketplace base validation cleanup
* refactor: moved rating precision in VS Marketplace
2019-01-23 18:14:26 -06:00
Paul Melnikow
4e9763b4c3
Provide friendlier error messages for [endpoint] ( #2858 )
...
Ref https://github.com/badges/shields/issues/2838#issuecomment-456594803
2019-01-23 18:43:38 -05:00
chris48s
a8bedce8a4
clarify cache docs for endpoint badge ( #2855 )
2019-01-23 22:02:43 +00:00
chris48s
7e473fe72c
pre-compute the 3 most common icon styles on server init ( #2856 )
...
refs #2833 (comment)
2019-01-23 16:41:10 -05:00
chris48s
eaa64a8dab
automatically show light or dark logos when using simple-icons ( #2833 )
...
closes #2431
refs #2510
2019-01-23 14:42:08 -05:00
dependabot[bot]
1ac208e656
Bump react-pose from 4.0.5 to 4.0.6 ( #2850 )
...
Bumps [react-pose](https://github.com/Popmotion/popmotion ) from 4.0.5 to 4.0.6.
- [Release notes](https://github.com/Popmotion/popmotion/releases )
- [Commits](https://github.com/Popmotion/popmotion/commits )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2019-01-23 11:01:08 -05:00
dependabot[bot]
b1b92b6654
Bump prettier from 1.16.0 to 1.16.1 ( #2849 )
...
Bumps [prettier](https://github.com/prettier/prettier ) from 1.16.0 to 1.16.1.
- [Release notes](https://github.com/prettier/prettier/releases )
- [Changelog](https://github.com/prettier/prettier/blob/master/CHANGELOG.md )
- [Commits](https://github.com/prettier/prettier/compare/1.16.0...1.16.1 )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2019-01-23 10:26:58 -05:00
Paul Melnikow
fc12b591db
Reorganize BaseService-related modules ( #2831 )
...
Ref #2698
2019-01-22 23:52:13 -05:00
Paul Melnikow
bbc10c5a68
Remove unused TokenProvider code ( #2844 )
...
The TokenProvider abstraction was refactored away during #1205 and is now obsolete. Other users of token pooling should use TokenPool and TokenPersistence directly.
2019-01-22 21:39:04 -05:00
dependabot[bot]
cd89a4db9e
Bump @babel/plugin-proposal-object-rest-spread from 7.2.0 to 7.3.0 ( #2842 )
...
Bumps [@babel/plugin-proposal-object-rest-spread](https://github.com/babel/babel ) from 7.2.0 to 7.3.0.
- [Release notes](https://github.com/babel/babel/releases )
- [Changelog](https://github.com/babel/babel/blob/master/CHANGELOG.md )
- [Commits](https://github.com/babel/babel/compare/v7.2.0...v7.3.0 )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2019-01-22 08:46:42 -05:00
Paul Melnikow
c7844ca7bb
Fix a preview badge ( #2836 )
2019-01-21 23:04:52 -05:00
Paul Melnikow
0fc3df84d7
[Endpoint] badge ( #2473 )
...
This reimplements the idea @bkdotcom came up with in #1519 , and took a stab at in #1525 . It’s a really powerful way to add all sorts of custom badges, particularly considering [tools like RunKit endpoints and Jupyter Kernel Gateway](https://github.com/badges/shields/issues/2259#issuecomment-444186589 ), not to mention all the other ways cloud functions can be deployed these days.
2019-01-21 22:55:24 -05:00
Paul Melnikow
6a17210850
Fix production crash ( #2835 )
...
`ShieldsRuntimeError` is in `services/errors.js` but not `services/index.js`. Oops!
Close #2834
2019-01-21 22:41:50 -05:00
Paul Melnikow
aac2a4d5ad
Move legacy request helpers ( #2829 )
...
In #2698 we decided to put legacy helper functions in `core/legacy`. I think that’s a fine idea, though if we’re going to have a bunch of badge helper functions in there, it seems like it is probably better to keep these two important but esoteric helper functions with the core code to which they are most coupled. So I added `legacy-` to the name, and put them in `core/base-service`.
2019-01-21 22:14:22 -05:00
Paul Melnikow
eb390a30c9
Fix Redis integration tests in CI; change 10 to latest ( #2830 )
...
* Fix Redis integration tests in CI
* 10 to latest
2019-01-21 15:20:42 -06:00
Paul Melnikow
62810143ac
Move coalesce and validate ( #2828 )
...
Ref #2698
2019-01-21 16:11:23 -05:00
Paul Melnikow
b13834037f
Split integration tests into their own stage ( #2825 )
...
These tests fail more often than others, and it's inconvenient to hold up merging when the changes are unrelated.
2019-01-21 15:51:54 -05:00
Paul Melnikow
226fa67a02
Create shortcut for BaseService-related imports ( #2809 )
...
Continue to implement #2698 :
- Add `core/base-service/index.js` (but hold off on moving the things it imports)
- Add shortcuts in `services/index.js` for Base*Service, errors, and deprecatedService. This file will be streamlined later to avoid cluttering it with rarely used bits.
- Apply consistent ordering of imports and use of `module.exports` in testers.
- Remove some renaming of imports.
- Remove obsolete tests here and there.
2019-01-21 15:41:24 -05:00
Paul Melnikow
8dc8afeb55
Avoid func declarations using function keyword ( #2813 )
...
We had only a few function expressions declared with the function keyword; almost everything is using function declarations.
This came up after this discussion: https://github.com/badges/shields/pull/2803#discussion_r249011621 though is actually not related ot that example.
What’s being removed is a third option, which is assigning to a variable a function expression using the `function` keyword. There’s still room for the programmer to choose between arrow function expressions and function declarations.
2019-01-21 15:33:43 -05:00
Felix Becker
18a65fc69c
Add directory field to package.json ( #2823 )
...
https://github.com/npm/rfcs/blob/latest/accepted/0010-monorepo-subdirectory-declaration.md
This helps tools find this package in the repository.
2019-01-21 20:19:03 +00:00
Paul Melnikow
31f0b8e6d8
Optimize diffing in Danger ( #2827 )
2019-01-21 20:16:50 +00:00
Paul Melnikow
558576dfb7
Temporarily remove useless npm-install task in CI ( #2808 )
...
It still seems worth using workspace caching to properly tackle #1937 , though in the meantime we're wasting time with a useless build. This should cut our total build latency roughly by half.
2019-01-21 13:02:35 -05:00
dependabot[bot]
cc2f514d05
Bump eslint-config-prettier from 3.5.0 to 3.6.0 ( #2821 )
...
Bumps [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier ) from 3.5.0 to 3.6.0.
- [Release notes](https://github.com/prettier/eslint-config-prettier/releases )
- [Changelog](https://github.com/prettier/eslint-config-prettier/blob/master/CHANGELOG.md )
- [Commits](https://github.com/prettier/eslint-config-prettier/compare/v3.5.0...v3.6.0 )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2019-01-21 12:49:52 -05:00
Antoine Boisadam
7face4995f
Add [Ansible] quality score badge ( #2620 )
...
Adds quality score badge from Ansible, closes #2602
2019-01-21 12:32:28 -05:00
dependabot[bot]
fd41131579
Bump prettier from 1.15.3 to 1.16.0 ( #2819 )
...
Bumps [prettier](https://github.com/prettier/prettier ) from 1.15.3 to 1.16.0.
- [Release notes](https://github.com/prettier/prettier/releases )
- [Changelog](https://github.com/prettier/prettier/blob/master/CHANGELOG.md )
- [Commits](https://github.com/prettier/prettier/compare/1.15.3...1.16.0 )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2019-01-21 12:29:43 -05:00
dependabot[bot]
b7f0f2fd8e
Bump nock from 11.0.0-beta.3 to 11.0.0-beta.4 ( #2818 )
...
Bumps [nock](https://github.com/nock/nock ) from 11.0.0-beta.3 to 11.0.0-beta.4.
- [Release notes](https://github.com/nock/nock/releases )
- [Changelog](https://github.com/nock/nock/blob/beta/CHANGELOG.md )
- [Commits](https://github.com/nock/nock/commits )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2019-01-21 12:23:29 -05:00
dependabot[bot]
a438ea7eee
Bump sinon from 7.2.2 to 7.2.3 ( #2820 )
...
Bumps [sinon](https://github.com/sinonjs/sinon ) from 7.2.2 to 7.2.3.
- [Release notes](https://github.com/sinonjs/sinon/releases )
- [Changelog](https://github.com/sinonjs/sinon/blob/master/CHANGELOG.md )
- [Commits](https://github.com/sinonjs/sinon/compare/v7.2.2...v7.2.3 )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2019-01-21 12:05:34 -05:00
dependabot[bot]
433f92fc1e
Bump eslint from 5.12.0 to 5.12.1 ( #2822 )
...
Bumps [eslint](https://github.com/eslint/eslint ) from 5.12.0 to 5.12.1.
- [Release notes](https://github.com/eslint/eslint/releases )
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md )
- [Commits](https://github.com/eslint/eslint/compare/v5.12.0...v5.12.1 )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2019-01-21 12:00:55 -05:00
Jan Keromnes
36956897e9
Make code contributions easier with Gitpod ( #2783 )
...
Ref #2772
2019-01-21 11:44:53 -05:00
chris48s
fba846986a
fix logo imports in [github twitter liberapay] ( #2817 )
...
this was moved in #2796 but we missed updating some of the imports
2019-01-20 23:19:12 -05:00
Paul Melnikow
26d0495ee6
Add logo support for the endpoint badge and refactor logo functions ( #2796 )
2019-01-20 20:22:46 +00:00
Paul Melnikow
a8e27d139d
Fix Docker build ( #2815 )
...
Close #2814
2019-01-20 15:01:07 -05:00
chris48s
7789e80fe5
refactor [packagecontrol] service ( #2803 )
2019-01-19 14:28:14 -05:00
James Cahill
e3c8508ce4
Added various [Spiget] badges ( #2745 )
...
* Spiget Downloads badge
* Spiget Download Size badge
* Spiget Latest version badge
* Add a base class
* Spiget Rating / Stars badges
* Spiget versions badge
* remove useless regex escape
* use renderVersionBadge for rendering
* misc fixes
* use expectJSON when possible
* use the download count color formatter
* merge service classes
* add keywords
* Add tests for non-star ratings
* Add nock tests
* misc fixes
* chore: minor formatting update on spiget dl
2019-01-19 11:24:58 -06:00
Paul Melnikow
94acb92258
Rewrite test of analytics endpoint ( #2810 )
...
This test is being weirdly flaky in #2809 . The problem seems to be in the test helper code, so I rewrote this using Joi.
I imagine the change has to do with a change to the test ordering. It's a bit puzzling.
However, the new test seems fine (and the endpoint is rarely used; not critical to begin with).
2019-01-18 23:51:07 -05:00
Paul Melnikow
69ced81cd1
Fix integration test pattern ( #2811 )
...
Ref #2792
2019-01-18 11:56:04 -06:00
dependabot[bot]
cd8528c30f
Bump eslint-plugin-react from 7.12.3 to 7.12.4 ( #2804 )
...
Bumps [eslint-plugin-react](https://github.com/yannickcr/eslint-plugin-react ) from 7.12.3 to 7.12.4.
- [Release notes](https://github.com/yannickcr/eslint-plugin-react/releases )
- [Changelog](https://github.com/yannickcr/eslint-plugin-react/blob/master/CHANGELOG.md )
- [Commits](https://github.com/yannickcr/eslint-plugin-react/compare/v7.12.3...v7.12.4 )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2019-01-18 06:46:46 -05:00
chris48s
653242d004
refactor [itunes] service ( #2802 )
2019-01-18 06:44:49 -05:00
dependabot[bot]
835c21faf3
Bump react-select from 2.2.0 to 2.3.0 ( #2805 )
...
Bumps [react-select](https://github.com/JedWatson/react-select ) from 2.2.0 to 2.3.0.
- [Release notes](https://github.com/JedWatson/react-select/releases )
- [Changelog](https://github.com/JedWatson/react-select/blob/master/.sweet-changelogs.js )
- [Commits](https://github.com/JedWatson/react-select/compare/v2.2.0...v2.3.0 )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2019-01-18 06:40:43 -05:00
Paul Melnikow
5ff7beb3bf
Reorganize token pooling code ( #2792 )
...
Ref #2698
2019-01-18 06:18:31 -05:00