Pierre-Yves B
23c0406bed
Migrate from CommonJS to ESM ( #6651 )
2021-07-09 12:53:55 +01:00
dependabot-preview[bot]
ee83590942
Build(deps-dev): bump @typescript-eslint/eslint-plugin from 2.34.0 to 4.19.0, run [GitHub GitlabCoverage F-Droid Wordpress VisualStudioAppCenter Ore Packagist] ( #6319 )
...
* Build(deps-dev): bump @typescript-eslint/eslint-plugin
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin ) from 2.34.0 to 4.19.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases )
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/CHANGELOG.md )
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.19.0/packages/eslint-plugin )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
* chore: update eslint camelcase rule
* chore: eslint camelcase updates for wordpress
* chore: fix eslint camelcase for misc other services
* chore: fix eslint camelcase issue in github and gitlab
* chore: run prettier
* chore: account for JSX globals
* deps: bump typescript-eslint-parser to v4
* chore: frontend lint changes
* chore: update eslint config to only run @typescript-eslint/explicit-module-boundary-types on ts files
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Caleb Cartwright <caleb.cartwright@outlook.com >
2021-03-28 08:26:01 -05:00
chris48s
504015c0ba
migrate hapi/joi to joi ( #5624 )
...
* update joi + joi-extension-semver
* @hapi/joi --> joi
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2020-09-30 17:51:02 +00:00
Caleb Cartwright
6682b87efe
convert some service classes to static props, run [f-droid fedora flathub] ( #5552 )
...
* refactor(f-droid): convert to static props
* refactor(fedora): convert to static props
* refactor(flathub): convert to static props
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2020-09-18 22:19:05 +00:00
kitsunyan
26e22e62b1
Migrate to the official F-Droid API ( #5416 )
...
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2020-08-15 20:24:25 +00:00
kitsunyan
5a75ffaa99
Migrate to F-Droid API ( #5362 )
...
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2020-07-30 00:16:24 +00:00
chris48s
13d75e0607
upgrade to prettier 2 ( #5051 )
...
* arrowParens: avoid
* remove trailingComma setting
2020-05-05 21:07:43 +01:00
François Hodierne
0d8a2d5ca0
Update to eslint 6.8.0 [appveyor githubissuedetail packagist] ( #4489 )
...
* update to eslint 6.8.0 and related packages
* Fixes for no-prototype-builtins
* Updates for explicit-function-return-type
* Add ignores for no-explicit-any
* update to eslint 6.8.0 and related packages
* Fixes for no-prototype-builtins
* Updates for explicit-function-return-type
* Add ignores for no-explicit-any
* package: activate eslint-config-standard
* apply updated eslint configuration
* lint: apply eslint feedback after rebase
* Update lockfile
* Update lockfile
* Restore missing deps
* Update lockfile
* Re-add eslint-plugin-node
* Add eslint-plugin-standard and eslint-plugin-react-hooks
* Clean lint
Co-authored-by: Paul Melnikow <github@paulmelnikow.com >
2020-02-29 11:06:36 -06:00
chris48s
c762d971b4
upgrade Joi and related packages ( #4060 )
...
* update dependencies
* (core) children --> keys
* (core) fix/update BaseService validate
* (core) update error messages in tests
* (core) only Joi.attempt if we've got a Joi schema
* (core) allow 'expected' to be a regex
* (services) pass 2 schema to .alternatives()
* (services) functions --> Joi schema
* (services) update expected error message
* (services) explicit check for color: undefined
* re-bump joi
* (services) wrap another regex
* (core/services) remove use of array arguments
* (core/services) when --> conditional
* (services) remove more array arguments
* fix spelling in var name
* DRY up sonar helper
2019-09-23 17:36:56 +01:00
Paul Melnikow
4eb6d25ff7
Fix trailing 0 in [F-Droid] yaml format ( #3831 )
...
Closes #3830
2019-08-06 15:39:55 +02:00
chris48s
8621fe42d7
Upgrade Joi ( #3505 )
...
* upgrade joi
* find & replace ALL THE THINGS
* update related deps
2019-06-02 21:59:55 +01:00
Paul Melnikow
f8aeb56129
Unify order of more services ( #3358 )
...
Ref #3353
2019-04-24 15:08:26 -04:00
Pierre-Yves B
1f29c22d3d
Migrated most service tests to use new expectBadge ( #3122 )
2019-02-28 21:43:23 +00:00
Paul Melnikow
fafb22efee
Move "good" badge helpers from lib/ to services/ ( #3101 )
...
This moves a few helpers from `lib/` to `services/`:
build-status.js
build-status.spec.js
color-formatters.js
color-formatters.spec.js
contributor-count.js
licenses.js
licenses.spec.js
php-version.js
php-version.spec.js
text-formatters.js
text-formatters.spec.js
version.js
version.spec.js
And one from `lib/` to `core/`:
unhandled-rejection.spec.js
The diff is long, but the changes are straightforward.
Ref #2832
2019-02-27 20:47:46 -05:00
Paul Melnikow
2d7be31b0c
Validate query params in BaseService ( #3042 )
...
This is a mid-sized PR that adds query param validation to BaseService and updates most of the services which use query param validation to use it. There are a couple minor tweaks I made along the way.
Fix #2676
2019-02-20 22:24:47 -05:00
Caleb Cartwright
855c9cd261
Remove dev dep imports in production code ( #2937 )
...
Fixes #2876 with @paulmelnikow's suggestion
Moved imports of `ServiceTester` and `createServiceTester` to a separate file so that dev dependencies are not imported by service classes.
2019-02-05 21:51:55 -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
89113eee17
Migrate deprecated staticExample -> staticPreview ( #2650 )
2019-01-06 17:30:25 -05:00
Paul Melnikow
83044ce325
Update more exampleUrls; style tweaks ( #2639 )
2019-01-06 08:18:19 -05:00
chris48s
b5ac5d6044
[dynamicyaml f-droid] add yaml base service class ( #2540 )
2018-12-16 20:29:20 +00:00
Paul Melnikow
8a8311d931
Unify and minimize tester boilerplate ( #2472 )
...
I started using this one-line boilerplate a while back and it seems to tidy things up a bit.
2018-12-08 13:15:24 -05:00
Camilo QS
5b5ec38337
Improve [F-droid] support to .yml metadata format ( #2377 )
...
closes : #2083
2018-12-07 00:45:19 -05:00
Paul Melnikow
3ad742e79a
Example: Canonicalize urlPattern to pattern ( #2341 )
...
Close #2334
To avoid merge conflicts, I've deferred removing the aliasing logic in `prepareExamples`. That whole function will be refactored momentarily, and there's also #2339 open.
2018-11-18 09:03:33 -05:00
Paul Melnikow
02ec19fd22
BaseService terminology: Rename url to route ( #2278 )
...
The term “url” is overloaded in services, to refer to the Shields route and also the API URL. Calling the Shields URL a “route” is on the whole more descriptive, and makes it clearer and more obvious which one of these we’re talking about. It’s a small thing, though seems like an improvement.
We have a few functions called `buildUrl`. I’ve renamed them to `buildRoute` when they refer to routes, and left them as `buildUrl` when they refer to API URLs.
I included a minor style tweak and some formatting cleanup in `TUTORIAL.md`.
2018-11-09 15:11:03 -05:00
Paul Melnikow
d55e1c15a6
Enforce using async-await [f-droid] ( #2241 )
...
Close #2028
2018-11-04 00:33:47 -04:00
Pyves
7417dc5f6c
Delete BaseHTTPService and implement new BaseXmlService (affects [eclipse-marketplace f-droid]; also testing on [uptimerobot circleci]) ( #2037 )
2018-09-03 19:37:37 +01:00
Nicco Kunzmann
11fa6114fe
New badge: f-droid ( #1965 )
2018-08-30 23:02:09 +01:00