Rhys Arkins
3d1a715d2b
fix(npm): don’t authorize public non-scoped packages
...
The authorization header can interfere with caching because npmjs doesn’t return “public” in the “Cache-Control” header.
2018-08-22 09:53:26 +02:00
Rhys Arkins
9b3f4b90e1
fix(npm): remove temporary cache-blocking code for scoped
...
npmjs has fixed/lowered the cache expiry time now
2018-08-22 09:49:18 +02:00
Rhys Arkins
ebb3496586
fix(npm): skip caching for scoped packages
...
Ref: https://npm.community/t/scoped-packages-have-latest-version-disappear-temporarily-soon-after-publish/633/7
2018-08-16 22:15:11 +02:00
Rhys Arkins
586ec1f5b8
refactor(npm): delete package homepage if it’s a github repo
2018-08-16 18:32:55 +02:00
Rhys Arkins
e9108a0502
refactor(npm): return package tags
2018-08-16 06:19:39 +02:00
Rhys Arkins
cc2d860556
fix: correct log for npmjs headers
2018-08-07 07:30:59 +02:00
Rhys Arkins
ebbc9d5f67
fix(npm): add check before massaging response
2018-07-30 08:42:50 +02:00
Rhys Arkins
83e00f2adc
refactor(presets): move more logic into datasource
2018-07-30 08:08:28 +02:00
Rhys Arkins
89de664e7c
fix: restore renovate-config to dependency return
2018-07-30 07:36:15 +02:00
Rhys Arkins
32c775265a
refactor: separate npm.getPresets
2018-07-30 07:12:30 +02:00
Rhys Arkins
ac5e0313e0
refactor: rename getDependencyInner to getDependency
2018-07-29 16:13:11 +02:00
Rhys Arkins
31f2f4c610
refactor: rename getDependency to getPkgReleases
2018-07-29 16:04:00 +02:00
Rhys Arkins
7a52575738
fix: npm raw/res typo
2018-07-17 20:02:13 +02:00
Rhys Arkins
ad3ac0967c
refactor: log npmjs headers
2018-07-17 19:24:05 +02:00
Rhys Arkins
98bccb37a9
fix(npm): reset npmrcraw
2018-07-06 17:16:50 +02:00
Ayoub Kaanich
219950399e
feat: endpoints credentials handling
2018-07-06 07:26:52 +02:00
Rhys Arkins
6d82d7b46a
fix: check before lower case
2018-07-05 15:58:43 +02:00
Rhys Arkins
a16754c501
fix: case-insensitive datasource name compare
2018-07-05 15:47:43 +02:00
Rhys Arkins
b2183fe0c2
logs: log regUrl for mismatched npm lookup
2018-07-05 15:42:02 +02:00
Rhys Arkins
16d88aee4c
feat: ignoreDeprecated
...
Renovate now ignores any upgrades that are marked as deprecated, unless the current version is itself also deprecated. The new config option `ignoreDeprecated` can be set to false to disable this if necessary.
Closes #1988
2018-07-05 15:10:50 +02:00
Rhys Arkins
db38553d05
fix(npm): verify that received package name matches requested name
2018-07-05 11:10:25 +02:00
Rhys Arkins
24a89a775b
feat(npm): deprecation warnings ( #2222 )
...
Raises a deprecation warning issue per-dependency. Uses logic that if latest version is deprecated then the package is deprecated.
Closes #1592
2018-07-05 09:16:53 +02:00
Rhys Arkins
1a72984fe2
feat(npm): detect deprecated packages
...
Adds logic to detect presence of “deprecated” field in latest version. First step towards #1592
2018-07-04 20:33:48 +02:00
Rhys Arkins
4cfc4e769d
refactor: skip duplicate setNpmrc
2018-07-03 14:21:46 +02:00
Rhys Arkins
d206897113
refactor: Revert "refactor: debug log npm token for each lookup"
...
This reverts commit b46a95a9e2
.
2018-07-02 19:42:48 +02:00
Rhys Arkins
b46a95a9e2
refactor: debug log npm token for each lookup
2018-07-02 19:25:23 +02:00
Rhys Arkins
068ff16ec4
fix: Revert "feat: endpoint credentials handling ( #2146 )"
...
This reverts commit 04e0ca1f80
.
2018-07-02 13:18:37 +02:00
Ayoub Kaanich
04e0ca1f80
feat: endpoint credentials handling ( #2146 )
...
Refactors credentials/token handling to rely less on env variables and instead use an endpoints middleware for credentials handling.
First step towards #2105
2018-07-02 10:01:42 +02:00
Rhys Arkins
108e8cb2b6
fix: remove console.log in npm datasource
2018-06-28 10:03:39 +02:00
Rhys Arkins
40962940a0
refactor: harmonize release timestamp ( #2189 )
...
Renames "date" and "time" values from datasources to instead be "releaseTimestamp".
2018-06-28 09:07:28 +02:00
Rhys Arkins
321c5285fb
fix: don’t use npm homepage as repositoryurl
2018-06-17 09:40:41 +02:00
Rhys Arkins
688ec14b6a
refactor: datasource return array of releases
2018-06-11 14:28:50 +02:00
Rhys Arkins
c82c348c8e
refactor: add gitRef to npm datasource
2018-06-11 13:16:42 +02:00
Rhys Arkins
bb78d47e15
refactor: filter and sort versions in datasource
2018-06-11 09:55:44 +02:00
Rhys Arkins
01d2fb3bca
feat: datasource wrapper ( #2100 )
...
Adds a wrapper to all datasources to provide a generic purl-based interface.
2018-06-08 10:49:08 +02:00
Rhys Arkins
603b77799b
feat: refactor unpublishSafe for multiple package managers ( #2090 )
2018-06-06 11:04:54 +02:00
Connor Brathwaite
398303235b
(refactor): delegate generic predicate checking to @sindresorhus/is ( #2021 )
...
Closes #1764
2018-06-04 20:07:22 +02:00
Rhys Arkins
795df6e4bf
fix: check for res.repository.url
2018-06-01 10:36:35 +02:00
Rhys Arkins
761573a865
fix: massage www out of npm repository url
2018-06-01 09:55:43 +02:00
Rhys Arkins
19550a328c
refactor: log npm 429 retries
2018-05-28 16:16:30 +02:00
Rhys Arkins
1210300dd2
fix: retry 429 with retry-after
2018-05-28 16:10:23 +02:00
Rhys Arkins
6799374e34
fix(npmrc): don’t massage naked ‘_auth’
2018-05-23 19:18:27 +02:00
Rhys Arkins
c338bdd2dd
fix(nmprc): massage _auth to _authToken only if base64 encoded
2018-05-23 18:13:17 +02:00
Rhys Arkins
00031c09fa
refactor: return latestVersion with npmjs result
2018-05-21 17:42:49 +02:00
Marco Massarotto
929231b46c
Feat/allow ghe changelog ( #1981 )
...
This PR follows up and fixes #1968
The previous PR didn't behave correctly as it was expecting Github Enterprise to ALWAYS been configured and that the github.com token was available in the `GITHUB_COM_TOKEN` env variable.
But for non GHE project `GITHUB_COM_TOKEN` is not defined and github.com token is available at the `GITHUB_TOKEN` env variable instead.
This updated PR fix this issue and avoid further problems by prioritising `github.com` over GHE.
Now the code is NOOP if no `GITHUB_ENDPOINT` is configured.
If it's configured, instead, now the codes assumes that, by DEFAULT, a dependency is hosted on `github.com` so it removes `GITHUB_ENDPOINT` and use `GITHUB_COM_TOKEN` as Github token immediately.
They are restored only if needed, when a dependency is hosted on the provided GithubEnterprise.
2018-05-19 07:44:56 +02:00
Rhys Arkins
4822bc5d91
fix: Revert "fix(npm): ignore deprecated versions"
...
This reverts commit 7fcbb47b3a
.
2018-05-18 08:34:34 +02:00
Rhys Arkins
ced6ee20bb
fix: Revert "fix(npm): deprecate only if deprecated === ‘this’"
...
This reverts commit 080d945153
.
2018-05-18 08:34:17 +02:00
Rhys Arkins
080d945153
fix(npm): deprecate only if deprecated === ‘this’
2018-05-18 08:23:49 +02:00
Rhys Arkins
7fcbb47b3a
fix(npm): ignore deprecated versions
...
Closes #1988
2018-05-18 07:44:34 +02:00
Rhys Arkins
6dbf9c52ad
fix: Revert "feat: support retrieving changelog from ghe hosted repositories ( #1968 )"
...
This reverts commit f2fb2e6bda
.
2018-05-16 07:04:59 +02:00