chris48s and GitHub
a8bedce8a4
clarify cache docs for endpoint badge ( #2855 )
2019-01-23 22:02:43 +00:00
chris48s and Paul Melnikow
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 and Paul Melnikow
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] and Paul Melnikow
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] and Paul Melnikow
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 and GitHub
fc12b591db
Reorganize BaseService-related modules ( #2831 )
...
Ref #2698
2019-01-22 23:52:13 -05:00
Paul Melnikow and GitHub
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] and Paul Melnikow
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 and GitHub
c7844ca7bb
Fix a preview badge ( #2836 )
2019-01-21 23:04:52 -05:00
Paul Melnikow and GitHub
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 and GitHub
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 and GitHub
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 and Caleb Cartwright
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 and GitHub
62810143ac
Move coalesce and validate ( #2828 )
...
Ref #2698
2019-01-21 16:11:23 -05:00
Paul Melnikow and GitHub
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 and GitHub
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 and GitHub
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 and chris48s
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 and chris48s
31f0b8e6d8
Optimize diffing in Danger ( #2827 )
2019-01-21 20:16:50 +00:00
Paul Melnikow and GitHub
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] and Paul Melnikow
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 and Paul Melnikow
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] and Paul Melnikow
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] and Paul Melnikow
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] and Paul Melnikow
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] and Paul Melnikow
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 and Paul Melnikow
36956897e9
Make code contributions easier with Gitpod ( #2783 )
...
Ref #2772
2019-01-21 11:44:53 -05:00
chris48s and Paul Melnikow
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 and chris48s
26d0495ee6
Add logo support for the endpoint badge and refactor logo functions ( #2796 )
2019-01-20 20:22:46 +00:00
Paul Melnikow and GitHub
a8e27d139d
Fix Docker build ( #2815 )
...
Close #2814
2019-01-20 15:01:07 -05:00
chris48s and Paul Melnikow
7789e80fe5
refactor [packagecontrol] service ( #2803 )
2019-01-19 14:28:14 -05:00
James Cahill and Caleb Cartwright
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 and GitHub
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 and Caleb Cartwright
69ced81cd1
Fix integration test pattern ( #2811 )
...
Ref #2792
2019-01-18 11:56:04 -06:00
dependabot[bot] and Paul Melnikow
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 and Paul Melnikow
653242d004
refactor [itunes] service ( #2802 )
2019-01-18 06:44:49 -05:00
dependabot[bot] and Paul Melnikow
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 and GitHub
5ff7beb3bf
Reorganize token pooling code ( #2792 )
...
Ref #2698
2019-01-18 06:18:31 -05:00
Paul Melnikow and GitHub
4bfc8d3b72
Fix [static] tests ( #2797 )
2019-01-17 15:24:02 -05:00
Paul Melnikow and GitHub
328a6b0f9d
Set static previews for packagecontrol ( #2799 )
2019-01-17 15:18:55 -05:00
Paul Melnikow and GitHub
d927df22c5
Convert more static previews ( #2801 )
2019-01-17 15:13:31 -05:00
dependabot[bot] and chris48s
ab5fee2bfd
Bump eslint-config-prettier from 3.4.0 to 3.5.0 ( #2794 )
...
Bumps [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier ) from 3.4.0 to 3.5.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.4.0...v3.5.0 )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2019-01-17 20:02:26 +00:00
dependabot[bot] and chris48s
f2a6569037
Bump got from 9.5.1 to 9.6.0 ( #2795 )
...
Bumps [got](https://github.com/sindresorhus/got ) from 9.5.1 to 9.6.0.
- [Release notes](https://github.com/sindresorhus/got/releases )
- [Commits](https://github.com/sindresorhus/got/compare/v9.5.1...v9.6.0 )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2019-01-17 19:59:28 +00:00
Paul Melnikow and GitHub
3c98ad38ac
test:server -> test:core ( #2798 )
...
This renames `npm run test:server` to `npm run test:core` to go along with the reorganization of #2698 . `server` has been a bit imprecise, since there's a lot of stuff under test besides the server, and most of the tests don't hit the server itself.
Probably files like `luarocks.spec.js` ought to be run as part of a different target, especially if we build out a separate code-coverage metric for core. Though I'm not in a huge rush to sort that out.
2019-01-17 13:52:47 -05:00
Paul Melnikow and GitHub
2ece7c4ee2
Wrap HTML in __html in service def export ( #2791 )
...
The intention of wrapping HTML in an `__html` is to avoid accidentally unsafe rendering of something that is non-html.
Including this in the definition export solves the problem, and does not seem too onerous for other possible users of that file.
Close #2725
2019-01-17 13:47:23 -05:00
Paul Melnikow and GitHub
4415a3e94e
Reorganize badge URL helper functions ( #2790 )
...
Ref #2698
2019-01-17 13:44:46 -05:00
Paul Melnikow and GitHub
05b9dd46e8
BaseService: Minor stylistic refactor of color computation ( #2793 )
...
As I was working on refactoring the logo code, I thought of a way to compute the color in a way more befitting the declarative style of the function.
2019-01-16 23:36:06 -05:00
Caleb Cartwright and GitHub
576a6c1dee
Fix [AzureDevOps] branch specific badges ( #2777 )
...
* fix: updated Azure DevOps fetch function to reflect query param name change
* fix: fixed branch filter for azure devops to enable branch name usage
* fix: simplified branch pattern for azure devops badges
2019-01-16 21:16:32 -06:00
Paul Melnikow and GitHub
bcc9acd18f
Disallow redundant example patterns ( #2787 )
2019-01-16 19:47:10 -05:00
Paul Melnikow and GitHub
7d4acba5c1
Validate namedParams in examples ( #2786 )
...
Fix #2784
2019-01-16 19:38:36 -05:00