Commit Graph

47 Commits

Author SHA1 Message Date
Zoltan Kochan
252ba1a8d8 test(npm-resolver): fix 2021-10-17 17:45:03 +03:00
Zoltan Kochan
917b95c01f fix: upgrade typescript to v4.4.4 2021-10-16 23:33:34 +03:00
Zoltan Kochan
bab1723854 fix: do not silently exit on bad HTTPS requests (#3768)
close #3756
close #3754
2021-09-13 04:44:40 +03:00
Zoltan Kochan
a4fed27983 fix(npm-resolver): ignore broken shasum in metadata (#3666)
close #3663
2021-08-13 11:08:10 +03:00
Zoltan Kochan
691f647137 feat: save the metadata separately from the CAFS (#3578)
ref #2574
2021-07-04 19:35:53 +03:00
Zoltan Kochan
bf322c7022 fix(npm-resolver): avoid conflicts in metadata when pkg name is upper case 2021-05-04 01:04:12 +03:00
amit
ae36ac7d3c fix(npm-resolver): unhandled rejection in fetch (#3413)
When fetch command fails for any reason  catch it and return FetchError to avoid Unhandled rejection

close #3261.

Co-authored-by: amit <amit@enso.security>
2021-05-04 00:28:06 +03:00
javier-garcia-meteologica
85fb21a837 feat: workspace:^ and workspace:~ aliases (#3116) (#3368)
* feat: workspace:^ and workspace:~ aliases (#3116)

* fix: apply suggestions and add changeset

* fix(npm-resolver): workspace aliases

* refactor: implement suggestions

* refactor: use only one regex
2021-04-21 18:22:08 +03:00
Zoltan Kochan
d6d091f249 style: use es2015 imports (#3143) 2021-02-15 05:06:10 +02:00
Zoltan Kochan
5b0b6e3dc4 test(npm-resolver): fix on Windows 2020-12-17 03:41:46 +02:00
Zoltan Kochan
f47551a3c9 fix(npm-resolver): throw a meaningful error on malformed meta
close #3013
PR #3019
2020-12-12 20:37:47 +02:00
Zoltan Kochan
f9befbfb53 test(npm-resolver): fix types 2020-11-23 00:37:52 +02:00
Zoltan Kochan
8698a7060e feat: prefer-workspace-packages
close #2136
PR #2980
2020-11-16 22:25:07 +02:00
Zoltan Kochan
284e95c5e4 feat: specifying a path to workspace packages in version specs
close #2959
PR #2972
2020-11-14 14:22:30 +02:00
Zoltan Kochan
084614f559 feat: aliases for workspace packages
close #2970
PR #2976
2020-11-12 11:28:15 +02:00
Zoltan Kochan
5ff6c28fab fix: retry metadata download if the received JSON is broken
close #2949
PR #2971
2020-11-08 15:43:07 +02:00
Zoltan Kochan
e6ac4f85e1 test(npm-resolver): use Jest
ref #2858
2020-11-08 11:53:53 +02:00
Zoltan Kochan
3633f5e46a fix: print the actual version in no matching version error
close #1314
PR #2851
2020-09-13 15:53:31 +03:00
Zoltan Kochan
75a36debad fix: report auth info on 404 errors as well
PR #2818
2020-09-01 18:16:37 +03:00
Zoltan Kochan
1c8a02e996 style: use eslint instead of tslint
PR #2796
close #2300
2020-08-24 02:01:25 +03:00
Zoltan Kochan
a1cdae3dc7 refactor(npm-resolver): remove options.metaCache 2020-08-17 01:48:12 +03:00
Zoltan Kochan
6d480dd7a2 feat: print more info on forbid errors
close #2774
PR #2777
2020-08-16 21:24:32 +03:00
Zoltan Kochan
622c0b6f93 fix: get the right pkg name of a pkg resolved from GitHub registry
ref #2687
PR #2734
2020-07-31 11:09:32 +03:00
Zoltan Kochan
379cdcaf82 fix: better workspace range resolution error 2020-07-10 11:56:45 +03:00
Zoltan Kochan
71aeb9a382 refactor: API of resolvers and fetchers
Instead of creating a separate fetch function for the resolvers
and fetchers, use a single one.

Also, use a single getCredentials function.

close #2652
PR #2655
2020-06-29 17:13:02 +03:00
Zoltan Kochan
fb86d17d2f test: more stable npm-resolver tests 2020-05-08 18:11:13 +03:00
Zoltan Kochan
5bc033c434 perf: keep all the metadata files in the same dir
Reduce the number of directories in the store by keeping all the metadata json
files in the same directory.

Previously the metadata file of express would be stored at:

<store>/registry.npmjs.org/express/index.json

Now it will be stored at:

<store>/metadata/registry.npmjs.org/express.json

ref #2521
PR #2529
2020-05-05 18:18:57 +03:00
Yao Ding
152b8b3c4a feat: add info when not-found package name has valid semver
PR #2308
close #1319
2020-01-30 21:23:24 +02:00
Yao Ding
a56c7856a2 feat: check package name for scope and report better error
close #1306
PR #2274
2020-01-16 02:09:58 +02:00
Zoltan Kochan
272bf7ae73 fix: resolving packages in a monorepo
This fixes a regression introduced by #2172 (pnpm v4.3.3).

Local prerelease version of packages should be linked
only if the range is *

PR #2259
2020-01-09 00:30:12 +02:00
Zoltan Kochan
f8b927391e refactor: rename importers & workspace pkgs to projects
WsPkg=>Project
WorkspacePackage=>Project
mporterManifest=>ProjectManifest
importers=>projects
importerDir=>projectDir
LockfileImporter=>ProjectSnapshot

PR #2242
2020-01-01 18:57:14 +02:00
Zoltan Kochan
9bbd2469d8 refactor: rename LocalPackages to WorkspacePackages
BREAKING CHANGE:

- @pnpm/resolver-base
2019-12-14 16:43:20 +02:00
Zoltan Kochan
4763a5d119 feat(resolver): preferredVersions should allow multiple selectors
BREAKING CHANGES:

- @pnpm/resolver-base
- @pnpm/npm-resolver
- @pnpm/resolve-dependencies
2019-12-12 23:02:51 +02:00
Zoltan Kochan
b8da2b0b2c feat: add|update [-r] --workspace
PR #2196
close #1918
2019-12-05 21:38:16 +02:00
Tim Suchanek
b506e8c975 fix: resolving workspace deps with prerelease versions
close #2171
PR #2172

* chore: fix test

* chore: add test
2019-11-20 15:17:12 +02:00
Zoltan Kochan
ace67aa4bf refactor: remove prefix from store-controller-types 2019-11-03 14:05:51 +02:00
Zoltan Kochan
6160cb033e refactor: rename package to manifest in resolution result
BREAKING CHANGE:
- @pnpm/resolver-base
2019-11-03 02:06:42 +02:00
Zoltan Kochan
176ed5bde9 refactor: path=>dir
BREAKING CHANGE:
- @pnpm/npm-resolver
- pkg-graph
- find-packages
2019-11-01 20:48:00 +02:00
Zoltan Kochan
76c737d70b feat: rename store config to store-dir
BREAKING CHANGE:
- @pnpm/config
- @pnpm/default-reporter
- @pnpm/default-resolver
- @pnpm/headless
- @pnpm/npm-resolver
- @pnpm/package-requester
- @pnpm/package-store
- supi

PR #2118
ref #2088
2019-10-27 13:18:24 +02:00
Zoltan Kochan
fc0fe15938 refactor: rawNpmConfig=>rawConfig 2019-10-04 01:29:26 +03:00
Zoltan Kochan
d773134b3d feat: support the workspace protocol
@pnpm/npm-resolver can work with the workspace: protocol.

The CLI converts workspace protocol to a regular version before
publish.

PR #1920
2019-08-14 01:38:42 +03:00
Zoltan Kochan
89f5178369 test: add type references to tests 2019-05-19 20:05:11 +03:00
Renovate Bot
54e7be564a fix(deps): update dependency load-json-file to v6 2019-04-27 21:43:03 +03:00
Renovate Bot
96a0d827ea fix(deps): update dependency load-json-file to v5.3.0 2019-04-07 13:09:44 +03:00
Zoltan Kochan
718ba58cae feat: all error codes are prefix with ERR_PNPM_
BREAKING CHANGE: error codes changed
2019-03-07 12:34:31 +02:00
Zoltan Kochan
adbe1c3a0c style: fix code style 2019-01-30 02:18:47 +02:00
Zoltan Kochan
f2d8c7f8cd feat: move @pnpm/npm-resolver to monorepo
close #1315
2019-01-27 15:24:46 +02:00