Commit Graph

50 Commits

Author SHA1 Message Date
Michael Schmuki
4a4d42d8f7 fix: allow dependencies without a package.json (#3782)
close #1866

Co-authored-by: Zoltan Kochan <z@kochan.io>
2021-10-01 00:31:55 +03:00
Zoltan Kochan
07e7b1c0c3 fix: do not download optional dependencies that are not needed (#3672)
close #2038
2021-08-17 02:33:36 +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
e6a2654a27 feat: run prepare scripts of Git dependencies (#3394)
close #855
2021-04-28 02:22:25 +03:00
Zoltan Kochan
3f4385b7bb fix: verify the name and version of the package in the store (#3224)
* fix: verify the name and version of the package in the store

ref #3202

* fix: autofix broken lockfile

* docs: add changesets
2021-03-08 21:22:33 +02:00
Zoltan Kochan
44d52f7995 test: use .toContain() in assertions 2021-02-20 14:42:42 +02:00
Zoltan Kochan
d6d091f249 style: use es2015 imports (#3143) 2021-02-15 05:06:10 +02:00
Zoltan Kochan
3503951d39 perf: don't use graceful-fs and mz/fs (#3129) 2021-02-09 13:44:07 +02:00
Zoltan Kochan
e27dcf0dcc refactor(dependency-path): add depPathToFilename() 2020-12-30 12:12:08 +02:00
Zoltan Kochan
1c3114639f test(package-requester): migrate to Jest
ref #2858
2020-11-08 17:37:42 +02:00
Zoltan Kochan
0a65440431 perf: faster integrity verification of the store
If a file in the store was never modified, we are not checking its
integrity.

PR #2876
2020-09-19 23:20:19 +03:00
Zoltan Kochan
186bcbdd56 style: no unnecessary boolean literal compare 2020-08-26 03:11:26 +03:00
Zoltan Kochan
88e1eaa908 style: use no delimiters in type declarations 2020-08-26 01:42:36 +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
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
802d145fcd feat!: remove independent-leaves=true support
PR #2571
2020-05-22 11:09:05 +03:00
Zoltan Kochan
c75a921e36 style: no trailing commas in functions 2020-05-12 19:00:16 +03:00
Zoltan Kochan
da091c7114 feat!: remove store state
PR #2542
ref #594
2020-05-10 12:02:46 +03:00
Zoltan Kochan
471149e669 feat!: make the package index file more extendable
Move all the info in the package index file into a "files" property.
This will allow to store more information without breaking changes
in the future.

PR #2541
2020-05-10 12:02:13 +03:00
Zoltan Kochan
b5f66c0f2b perf: less dirs in the virtual store directory
Reduce the number of directories in the virtual store directory.
Don't create a subdirectory for the package version. Append the
package version to the package name directory.

close #2521
PR #2531
2020-05-06 02:15:55 +03:00
Zoltan Kochan
9596774f2a perf: reduce directory nesting in the store
Store the package index files in the CAFS.

ref #2521
PR #2527
2020-05-04 23:36:14 +03:00
Zoltan Kochan
42e6490d18 perf: read the package manifests from the memory, when possible
When a new package is being added to the store, its manifest is streamed
in the memory. So instead of reading the manifest from the filesystem,
we can parse the stream from the memory.

PR #2525
2020-05-03 17:38:10 +03:00
Zoltan Kochan
f516d266c9 feat: executable are saved into a separate dir
Executables are saved into a separate subdirectory
inside the content-addressable filesystem.

ref #2470
2020-04-27 22:14:12 +03:00
Zoltan Kochan
b6a82072ea feat!: using a content-addressable filesystem
ref #2470

BREAKING CHANGE:

New global store structure
2020-04-26 15:40:03 +03:00
Zoltan Kochan
bb5d41f337 style: add missing trailing commas and fix the linting rule 2020-01-01 19:18:25 +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
ace67aa4bf refactor: remove prefix from store-controller-types 2019-11-03 14:05:51 +02:00
Zoltan Kochan
4fc917ebbb feat: rename lockfile-directory to lockfile-dir
ref #2088
PR #2120
2019-10-27 16:18: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
37aefc97b1 feat: update logger to v3 2019-10-06 13:24:38 +03:00
Zoltan Kochan
fc0fe15938 refactor: rawNpmConfig=>rawConfig 2019-10-04 01:29:26 +03:00
Zoltan Kochan
b456a26f01 refactor: rename fields in fetch response
BREAKING CHANGE: @pnpm/package-requester

PR #2011
2019-09-15 01:04:05 +03:00
Zoltan Kochan
d36103b5ee fix: unhadled promise rejections
PR #2009
2019-09-14 16:03:43 +03:00
Zoltan Kochan
47f718d70f fix(deps): use @zkochan/rimraf instead of rimraf-then 2019-08-18 02:40:20 +03:00
Zoltan Kochan
c7a5ad2e70 refactor: move all local types to one place 2019-05-18 01:38:42 +03:00
Renovate Bot
54e7be564a fix(deps): update dependency load-json-file to v6 2019-04-27 21:43:03 +03:00
ExE Boss
cfeeab8be0 refactor(npm‑resolver): enable strictBindCallApply
PR #1770

* chore(npm‑resolver): Enable `strictBindCallApply`

* fix(npm-resolver): Correct `resolveNpm` type definition

* fix(local‑resolver): Fix return type

* fix(default‑resolver): Specify return type

* test: Fix dependency on `@pnpm/npm‑resolver`

* fix: revert making fields optional in ResolveOptions
2019-04-12 23:34:32 +03:00
Zoltan Kochan
5248dacd84 refactor(deps): remove util.promisify from dependencies 2019-04-06 01:50:36 +03:00
Zoltan Kochan
c49d4569b8 refactor: move verifyStoreIntegrity to store init function 2019-03-08 20:12:32 +02:00
Zoltan Kochan
f45df73a71 feat: breaking API changes 2019-03-08 16:46:33 +02:00
Zoltan Kochan
5489e8c4e1 refactor: rename shrinkwrap variables 2019-03-07 02:47:59 +02:00
Zoltan Kochan
ba2f3e707d feat: rename shrinkwrapDirectory to lockfileDirectory 2019-03-06 22:47:19 +02:00
Zoltan Kochan
a57012069b fix: path to local tarball should be relative to shrinkwrap dir
This is an issue that may only happen in monorepos that use a
shared shrinkwrap.yaml
2019-01-11 20:35:14 +02:00
Zoltan Kochan
92e7383d00 style: sort keys 2018-11-15 03:04:37 +02:00
Zoltan Kochan
dd03d96c1a style: fix styles in tests 2018-11-15 01:14:33 +02:00
Zoltan Kochan
73e88a9acf fix(deps): update dependency load-json-file to v5.1.0
close #1381
2018-09-21 22:31:26 +03:00
Zoltan Kochan
865609eb88 fix: reunpack modified local tarball dependencies
Also, store id of local tarball is the same regardless of wd

PR #1363
close #1362
2018-09-08 15:45:05 +03:00
Zoltan Kochan
7bd3d3deb1 fix(package-requester): create package integrity after package refetch 2018-08-25 17:50:53 +03:00
Zoltan Kochan
2faf494c43 refactor: move @pnpm/package-requester to the monorepo 2018-08-17 23:56:33 +03:00