Rhys Arkins
f764f8879c
feat(config): containerbaseDir ( #17414 )
2022-08-25 15:43:06 +00:00
Rhys Arkins
ee6287971d
refactor: use containerbase not buildpack terminology ( #17398 )
2022-08-25 06:59:55 +00:00
Michael Kriese
0316a5e62d
test: use jest v29 ( #17151 )
2022-08-16 14:22:29 +02:00
Michael Kriese
8270d5512d
refactor: fix lint issues ( #16779 )
...
* refactor: fix lint issues
* Update lib/renovate.ts
* chore: revert toplevel await for ts
2022-07-26 08:32:12 +00:00
Michael Kriese
4f82df4c3d
feat(buildpack): enable cache ( #16591 )
2022-07-21 07:00:02 +00:00
renovate[bot]
0ed7072a1f
chore(deps): update dependency type-fest to v2.16.0 ( #16473 )
...
* chore(deps): update dependency type-fest to v2.16.0
* chore: fix type issues
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de >
2022-07-15 10:09:50 +00:00
Sergei Zharinov
83f67c27d5
refactor(fs): Rename getSubDirectory to getParentDir ( #16446 )
...
* refactor(fs): Rename `getSubDirectory` to `getParentDir`
* Add tests for `getSiblingFileName`
* fix
* fix
2022-07-07 06:44:21 +00:00
Sergei Zharinov
2b43f273bf
refactor(fs): Remove proxies.ts file ( #16325 )
...
Co-authored-by: Michael Kriese <michael.kriese@visualon.de >
2022-07-01 14:57:30 +02:00
Sergei Zharinov
bfc393ef00
refactor(fs): Don't proxy writeFile function ( #16310 )
...
* refactor(fs): Don't proxy `writeFile` function
* Fix
* Update lib/workers/global/index.spec.ts
Co-authored-by: Michael Kriese <michael.kriese@visualon.de >
Co-authored-by: Michael Kriese <michael.kriese@visualon.de >
2022-06-29 06:23:36 +00:00
Rhys Arkins
54c35dbbd4
fix(config): apply secrets to global hostRules ( #16217 )
...
* fix(config): apply secrets to global hostRules
Closes #16215
* fix import ordering
Co-authored-by: Michael Kriese <michael.kriese@visualon.de >
2022-06-24 08:21:08 +00:00
Michael Kriese
10302eba68
refactor: fix prefer-nullish-coalescing ( #16171 )
2022-06-21 12:02:49 +00:00
Michael Kriese
e5c6f38d75
refactor: enable strict checks ( #16168 )
...
* refactor: enable strict checks
* chore: revert changes
* chore: fix tsconfig
2022-06-21 13:00:21 +02:00
RahulGautamSingh
03b0d2a24e
refactor(lib/workers): fix null-check for tests ( #16163 )
...
Co-authored-by: Michael Kriese <michael.kriese@visualon.de >
2022-06-21 09:39:30 +00:00
Sergei Zharinov
0cf4f48842
refactor: Strict null checks for all files except tests ( #16071 )
...
Co-authored-by: Michael Kriese <michael.kriese@visualon.de >
2022-06-20 11:47:07 +02:00
RahulGautamSingh
996e4a6e57
feat: rename aliases to registryAliases ( #15877 )
2022-06-10 05:14:49 +00:00
Rhys Arkins
a10e4ce915
fix: set global config before validating local presets ( #15926 )
2022-06-07 13:33:51 +02:00
Rhys Arkins
cf6885f71a
fix(config): move endpoint, platform to GlobalConfig ( #15864 )
...
Co-authored-by: Michael Kriese <michael.kriese@visualon.de >
2022-06-03 06:43:58 +02:00
Maron
0cf2ab4823
feat: refactor requireConfig option ( #15594 )
2022-05-18 10:21:51 +00:00
Michael Kriese
ef470f7f92
feat(config): parse json files as json5 ( #15187 )
2022-04-29 08:34:55 +00:00
Michael Kriese
64f5bd5f03
test: enforce lint style rules ( #15085 )
2022-04-12 14:49:49 +00:00
MaronHatoum
3e312fd641
feat: refactor dry-run option ( #14849 )
...
* feat : added dryRun new behavior + added more migration
* feat : revert extra space
* feat : revert extra code
* feat : added unit tests
* feat : added unit tests
* feat : removed extra tests + removed unnecessary condition
* feat: changes after CR
* feat: added dry run migration cli and env + unit tests
* Update lib/workers/global/config/parse/cli.ts
Co-authored-by: Michael Kriese <michael.kriese@visualon.de >
* feat: migration changes + added logs + added unit test
* feat: removed log msgs + change unit test
* feat: update
* feat: update
* Update lib/workers/global/config/parse/cli.ts
Co-authored-by: Rhys Arkins <rhys@arkins.net >
Co-authored-by: Michael Kriese <michael.kriese@visualon.de >
2022-04-11 20:29:02 +00:00
Michael Kriese
89d7fdf781
Revert "feat: extend dryRun options to extract lookup full ( #14555 )" ( #14836 )
...
This reverts commit 39471b57ad .
2022-03-29 02:47:54 +02:00
MaronHatoum
39471b57ad
feat: extend dryRun options to extract lookup full ( #14555 )
2022-03-28 13:55:26 +02:00
Rhys Arkins
dca3418bbd
refactor: lib/modules ( #14488 )
...
Moves datasource, manager, platform and versioning code from lib/ into new lib/modules/
BREAKING CHANGE: External tools must update paths to datasource, manager, platform and versioning
2022-03-04 09:04:02 +01:00
Rhys Arkins
b0d4012c45
fix(presets): set global host rules before validating presets ( #14213 )
2022-02-14 17:30:49 +00:00
Sergei Zharinov
00a2dce783
refactor(datasource/docker): Convert to class ( #14194 )
2022-02-13 19:13:13 +00:00
Oleg Krivtsov
0786775005
feat(workers/global): support eager resolving of presets ( #13279 )
...
Co-authored-by: Rhys Arkins <rhys@arkins.net >
Co-authored-by: Michael Kriese <michael.kriese@visualon.de >
2022-02-11 11:35:29 +00:00
Michael Kriese
5723be1ac5
refactor: add strict null checks ( #14169 )
2022-02-11 11:02:30 +01:00
Jamie Magee
3b7e9a17cb
refactor: set importsNotUsedAsValues to error ( #14052 )
2022-02-07 06:37:17 +00:00
Sergei Zharinov
8a5be3440f
refactor: Use eslint rule to prohibit enums ( #13703 )
...
Co-authored-by: Rhys Arkins <rhys@arkins.net >
2022-01-21 15:33:23 +01:00
renovate[bot]
995dd0e670
build(deps): update dependency redis to v4 ( #13260 )
...
Co-authored-by: Michael Kriese <michael.kriese@visualon.de >
Co-authored-by: Renovate Bot <bot@renovateapp.com >
Co-authored-by: Rhys Arkins <rhys@arkins.net >
2022-01-19 06:05:23 +00:00
Sebastian Poxhofer
e406cd1131
feat(autodiscover): allow usage of regex patterns ( #13243 )
...
Co-authored-by: Rhys Arkins <rhys@arkins.net >
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com >
2022-01-18 20:23:35 +00:00
Jan Molak
4a332e032d
fix(renovate): Print preset validation errors so that they don't get lost ( #13597 )
2022-01-17 15:52:16 +00:00
Michael Kriese
5e0e9ac1c2
refactor: prepare esm helper ( #13250 )
...
* refactor: prepare esm helper
* chore: fix type name
2021-12-22 17:01:28 +01:00
Michael Kriese
c5d50f6da3
refactor: more esm imports ( #13233 )
...
Co-authored-by: Rhys Arkins <rhys@arkins.net >
2021-12-22 11:28:20 +00:00
Michael Kriese
2b24a98359
refactor: update imports for esm ( #13230 )
...
Co-authored-by: Rhys Arkins <rhys@arkins.net >
2021-12-22 08:37:47 +00:00
Oleg Krivtsov
dad3863e8a
fix(config): detect missing RENOVATE_CONFIG_FILE ( #13196 )
...
Co-authored-by: Michael Kriese <michael.kriese@visualon.de >
2021-12-22 08:38:49 +01:00
Michael Kriese
1e1bea200a
fix: use @sindresorhus/is instead of is ( #13183 )
2021-12-18 14:50:51 +00:00
Sebastian Poxhofer
5eea19b5be
feat(autodiscover): reverts autodiscoverfilter as array ( #13169 )
...
This reverts commit a0a770338f .
2021-12-17 13:44:40 +01:00
Sebastian Poxhofer
a0a770338f
feat(autodiscover): allow array for autodiscoverfilter ( #13100 )
2021-12-16 15:12:35 +00:00
Peter Valdemar Mørch
c7a7ffbeed
feat(config): allow exporting async config ( #13075 )
...
* feat(config): allow exporting async config (#13035 )
module.exports can now be a function and it can be/return a Promise,
allowing the results of asynchronous operations to be used in the
configuration.
The discussion leading up to this PR in #13035 assumed that
module.exports had to be a plain object.
But this commit:
commit 9aa97af5b3
Author: Nejc Habjan <hab.nejc@gmail.com >
Date: Thu Dec 9 13:45:48 2021 +0100
feat(config)!: parse JSON5/YAML self-hosted admin config (#12644 )
Adds support for alternative admin config file formats.
BREAKING CHANGE: Renovate will now fail if RENOVATE_CONFIG_FILE is specified without a file extension
Had as an undocumented side effect, that it also handled transparenty
if module.exports was assigned a Promise. With that commit, the
promise will be await-ed so the resolved value is returned from
getConfig(). That was not the case before that commit.
So in this commit, configs that export functions are handled, and
test cases for both promises and functions have been added.
* Update lib/workers/global/config/parse/__fixtures__/fileAsyncFunction.js
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com >
* Update lib/workers/global/config/parse/__fixtures__/fileFunctionPromise.js
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com >
* feat(config): Fixed linter problems (#13035 )
* feat(config)!: Add doc for JSON5/YAML self-hosted admin config (#12644 )
The code was introduced in 9aa97af5b and here is the documentation to
go with it
* feat(config): Document config.js exports (#13035 )
* feat(config): Rename file*.js to config*.js because they really are config (#13035 )
* Update docs/usage/getting-started/running.md
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com >
* Update docs/usage/getting-started/running.md
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com >
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com >
Co-authored-by: Michael Kriese <michael.kriese@visualon.de >
2021-12-13 21:51:36 +00:00
Nejc Habjan
9aa97af5b3
feat(config)!: parse JSON5/YAML self-hosted admin config ( #12644 )
...
Adds support for alternative admin config file formats.
BREAKING CHANGE: Renovate will now fail if RENOVATE_CONFIG_FILE is specified without a file extension
2021-12-09 13:45:48 +01:00
Oleg Krivtsov
3fa21fbf83
feat(workers/global): check git at startup ( #12935 )
2021-12-08 13:11:43 +01:00
Nejc Habjan
0f1256317c
refactor(config): use async readFile and dynamic import to load config file ( #12649 )
...
Co-authored-by: Michael Kriese <michael.kriese@visualon.de >
2021-11-17 06:49:53 +00:00
Rhys Arkins
982e36963d
chore: re-enable eslint no-console
2021-11-09 07:48:31 +01:00
HonkingGoose
ab018191fa
chore: report and fix unused ESLint disable directives ( #12548 )
2021-11-08 20:20:03 +01:00
Michael Kriese
82e89825ab
chore: remove airbnb ( #12557 )
2021-11-08 13:03:55 +00:00
Michael Kriese
7afc2b75d5
test: fix lint ( #12551 )
2021-11-08 13:16:58 +01:00
Florian Greinacher
70700eedae
feat(config)!: make host rule detection configurable and opt-in ( #12294 )
...
Add configuration option `detectHostRulesFromEnv`.
BREAKING CHANGE: `hostRules` are no longer automatically derived from env variables such as `NPM_X_TOKEN`. Set `detectHostRulesFromEnv=true` in config to re-enable same functionality.
2021-11-05 08:10:27 +01:00
RahulGautamSingh
91f067b39f
fix: refactor regex to use re2 part3 ( #12283 )
...
Co-authored-by: Rhys Arkins <rhys@arkins.net >
2021-10-27 14:37:11 +00:00