@verdaccio/tarball 11.0.0-6-next.44 → 12.0.0-next-7.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +209 -0
- package/build/index.d.ts +1 -1
- package/build/index.js +6 -0
- package/build/index.js.map +1 -1
- package/package.json +6 -6
- package/src/index.ts +1 -1
- package/tests/getLocalRegistryTarballUri.spec.ts +36 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,214 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 12.0.0-next-7.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- @verdaccio/core@7.0.0-next-7.7
|
|
8
|
+
- @verdaccio/url@12.0.0-next-7.7
|
|
9
|
+
- @verdaccio/utils@7.0.0-next-7.7
|
|
10
|
+
|
|
11
|
+
## 12.0.0-next.6
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- e14b064: - Fixes polynomial regular expression when determining the file name of tarball
|
|
16
|
+
- Add tests for extracting tarball name
|
|
17
|
+
- @verdaccio/core@7.0.0-next.6
|
|
18
|
+
- @verdaccio/url@12.0.0-next.6
|
|
19
|
+
- @verdaccio/utils@7.0.0-next.6
|
|
20
|
+
|
|
21
|
+
## 12.0.0-next.5
|
|
22
|
+
|
|
23
|
+
### Patch Changes
|
|
24
|
+
|
|
25
|
+
- Updated dependencies [f047cc8]
|
|
26
|
+
- @verdaccio/core@7.0.0-next.5
|
|
27
|
+
- @verdaccio/url@12.0.0-next.5
|
|
28
|
+
- @verdaccio/utils@7.0.0-next.5
|
|
29
|
+
|
|
30
|
+
## 12.0.0-next.4
|
|
31
|
+
|
|
32
|
+
### Patch Changes
|
|
33
|
+
|
|
34
|
+
- @verdaccio/core@7.0.0-next.4
|
|
35
|
+
- @verdaccio/url@12.0.0-next.4
|
|
36
|
+
- @verdaccio/utils@7.0.0-next.4
|
|
37
|
+
|
|
38
|
+
## 12.0.0-next.3
|
|
39
|
+
|
|
40
|
+
### Major Changes
|
|
41
|
+
|
|
42
|
+
- e7ebccb61: update major dependencies, remove old nodejs support
|
|
43
|
+
|
|
44
|
+
### Minor Changes
|
|
45
|
+
|
|
46
|
+
- daceb6d87: restore legacy support
|
|
47
|
+
|
|
48
|
+
### Patch Changes
|
|
49
|
+
|
|
50
|
+
- Updated dependencies [daceb6d87]
|
|
51
|
+
- Updated dependencies [e7ebccb61]
|
|
52
|
+
- @verdaccio/core@7.0.0-next.3
|
|
53
|
+
- @verdaccio/url@12.0.0-next.3
|
|
54
|
+
- @verdaccio/utils@7.0.0-next.3
|
|
55
|
+
|
|
56
|
+
## 12.0.0-next.2
|
|
57
|
+
|
|
58
|
+
### Patch Changes
|
|
59
|
+
|
|
60
|
+
- @verdaccio/core@7.0.0-next.2
|
|
61
|
+
- @verdaccio/url@12.0.0-next.2
|
|
62
|
+
- @verdaccio/utils@7.0.0-next.2
|
|
63
|
+
|
|
64
|
+
## 12.0.0-next.1
|
|
65
|
+
|
|
66
|
+
### Patch Changes
|
|
67
|
+
|
|
68
|
+
- @verdaccio/core@7.0.0-next.1
|
|
69
|
+
- @verdaccio/url@12.0.0-next.1
|
|
70
|
+
- @verdaccio/utils@7.0.0-next.1
|
|
71
|
+
|
|
72
|
+
## 12.0.0-next.0
|
|
73
|
+
|
|
74
|
+
### Major Changes
|
|
75
|
+
|
|
76
|
+
- feat!: bump to v7
|
|
77
|
+
|
|
78
|
+
### Patch Changes
|
|
79
|
+
|
|
80
|
+
- Updated dependencies
|
|
81
|
+
- @verdaccio/core@7.0.0-next.0
|
|
82
|
+
- @verdaccio/url@12.0.0-next.0
|
|
83
|
+
- @verdaccio/utils@7.0.0-next.0
|
|
84
|
+
|
|
85
|
+
## 11.0.0
|
|
86
|
+
|
|
87
|
+
### Major Changes
|
|
88
|
+
|
|
89
|
+
- 292c0a37f: feat!: replace deprecated request dependency by got
|
|
90
|
+
|
|
91
|
+
This is a big refactoring of the core, fetching dependencies, improve code, more tests and better stability. This is essential for the next release, will take some time but would allow modularize more the core.
|
|
92
|
+
|
|
93
|
+
## Notes
|
|
94
|
+
|
|
95
|
+
- Remove deprecated `request` by other `got`, retry improved, custom Agent ( got does not include it built-in)
|
|
96
|
+
- Remove `async` dependency from storage (used by core) it was linked with proxy somehow safe to remove now
|
|
97
|
+
- Refactor with promises instead callback wherever is possible
|
|
98
|
+
- ~Document the API~
|
|
99
|
+
- Improve testing, integration tests
|
|
100
|
+
- Bugfix
|
|
101
|
+
- Clean up old validations
|
|
102
|
+
- Improve performance
|
|
103
|
+
|
|
104
|
+
## 💥 Breaking changes
|
|
105
|
+
|
|
106
|
+
- Plugin API methods were callbacks based are returning promises, this will break current storage plugins, check documentation for upgrade.
|
|
107
|
+
- Write Tarball, Read Tarball methods parameters change, a new set of options like `AbortController` signals are being provided to the `addAbortSignal` can be internally used with Streams when a request is aborted. eg: `addAbortSignal(signal, fs.createReadStream(pathName));`
|
|
108
|
+
- `@verdaccio/streams` stream abort support is legacy is being deprecated removed
|
|
109
|
+
- Remove AWS and Google Cloud packages for future refactoring [#2574](https://github.com/verdaccio/verdaccio/pull/2574).
|
|
110
|
+
|
|
111
|
+
- a828271d6: refactor: download manifest endpoint and integrate fastify
|
|
112
|
+
|
|
113
|
+
Much simpler API for fetching a package
|
|
114
|
+
|
|
115
|
+
```
|
|
116
|
+
const manifest = await storage.getPackageNext({
|
|
117
|
+
name,
|
|
118
|
+
uplinksLook: true,
|
|
119
|
+
req,
|
|
120
|
+
version: queryVersion,
|
|
121
|
+
requestOptions,
|
|
122
|
+
});
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
> not perfect, the `req` still is being passed to the proxy (this has to be refactored at proxy package) and then removed from here, in proxy we pass the request instance to the `request` library.
|
|
126
|
+
|
|
127
|
+
### Details
|
|
128
|
+
|
|
129
|
+
- `async/await` sugar for getPackage()
|
|
130
|
+
- Improve and reuse code between current implementation and new fastify endpoint (add scaffolding for request manifest)
|
|
131
|
+
- Improve performance
|
|
132
|
+
- Add new tests
|
|
133
|
+
|
|
134
|
+
### Breaking changes
|
|
135
|
+
|
|
136
|
+
All storage plugins will stop to work since the storage uses `getPackageNext` method which is Promise based, I won't replace this now because will force me to update all plugins, I'll follow up in another PR. Currently will throw http 500
|
|
137
|
+
|
|
138
|
+
- 794af76c5: Remove Node 12 support
|
|
139
|
+
|
|
140
|
+
- We need move to the new `undici` and does not support Node.js 12
|
|
141
|
+
|
|
142
|
+
### Minor Changes
|
|
143
|
+
|
|
144
|
+
- ef88da3b4: feat: improve support for fs promises older nodejs
|
|
145
|
+
- 24b9be020: refactor: improve docker image build with strict dependencies and prod build
|
|
146
|
+
- 154b2ecd3: refactor: remove @verdaccio/commons-api in favor @verdaccio/core and remove duplications
|
|
147
|
+
|
|
148
|
+
### Patch Changes
|
|
149
|
+
|
|
150
|
+
- 351aeeaa8: fix(deps): @verdaccio/utils should be a prod dep of local-storage
|
|
151
|
+
- 9718e0330: fix: build targets for 5x modules
|
|
152
|
+
- 648575aa4: Bug Fixes
|
|
153
|
+
|
|
154
|
+
- fix escaped slash in namespaced packages
|
|
155
|
+
|
|
156
|
+
#### Related tickets
|
|
157
|
+
|
|
158
|
+
https://github.com/verdaccio/verdaccio/pull/2193
|
|
159
|
+
|
|
160
|
+
- Updated dependencies [292c0a37f]
|
|
161
|
+
- Updated dependencies [dc05edfe6]
|
|
162
|
+
- Updated dependencies [a1986e098]
|
|
163
|
+
- Updated dependencies [974cd8c19]
|
|
164
|
+
- Updated dependencies [a828271d6]
|
|
165
|
+
- Updated dependencies [ef88da3b4]
|
|
166
|
+
- Updated dependencies [43f32687c]
|
|
167
|
+
- Updated dependencies [a3a209b5e]
|
|
168
|
+
- Updated dependencies [459b6fa72]
|
|
169
|
+
- Updated dependencies [24b9be020]
|
|
170
|
+
- Updated dependencies [794af76c5]
|
|
171
|
+
- Updated dependencies [351aeeaa8]
|
|
172
|
+
- Updated dependencies [10aeb4f13]
|
|
173
|
+
- Updated dependencies [9718e0330]
|
|
174
|
+
- Updated dependencies [e367c3f1e]
|
|
175
|
+
- Updated dependencies [a1da11308]
|
|
176
|
+
- Updated dependencies [d2c65da9c]
|
|
177
|
+
- Updated dependencies [00d1d2a17]
|
|
178
|
+
- Updated dependencies [a610ef26b]
|
|
179
|
+
- Updated dependencies [648575aa4]
|
|
180
|
+
- Updated dependencies [b61f762d6]
|
|
181
|
+
- Updated dependencies [154b2ecd3]
|
|
182
|
+
- Updated dependencies [aa763baec]
|
|
183
|
+
- Updated dependencies [378e907d5]
|
|
184
|
+
- Updated dependencies [16e38df8a]
|
|
185
|
+
- Updated dependencies [34f0f1101]
|
|
186
|
+
- Updated dependencies [82cb0f2bf]
|
|
187
|
+
- Updated dependencies [dc571aabd]
|
|
188
|
+
- Updated dependencies [ce013d2fc]
|
|
189
|
+
- Updated dependencies [f859d2b1a]
|
|
190
|
+
- Updated dependencies [6c1eb021b]
|
|
191
|
+
- Updated dependencies [62c24b632]
|
|
192
|
+
- Updated dependencies [0a6412ca9]
|
|
193
|
+
- Updated dependencies [5167bb528]
|
|
194
|
+
- Updated dependencies [f86c31ed0]
|
|
195
|
+
- Updated dependencies [c9d1af0e5]
|
|
196
|
+
- Updated dependencies [4b29d715b]
|
|
197
|
+
- Updated dependencies [b13a3fefd]
|
|
198
|
+
- Updated dependencies [68ea21214]
|
|
199
|
+
- Updated dependencies [b849128de]
|
|
200
|
+
- @verdaccio/core@6.0.0
|
|
201
|
+
- @verdaccio/url@11.0.0
|
|
202
|
+
- @verdaccio/utils@6.0.0
|
|
203
|
+
|
|
204
|
+
## 11.0.0-6-next.45
|
|
205
|
+
|
|
206
|
+
### Patch Changes
|
|
207
|
+
|
|
208
|
+
- @verdaccio/core@6.0.0-6-next.76
|
|
209
|
+
- @verdaccio/url@11.0.0-6-next.42
|
|
210
|
+
- @verdaccio/utils@6.0.0-6-next.44
|
|
211
|
+
|
|
3
212
|
## 11.0.0-6-next.44
|
|
4
213
|
|
|
5
214
|
### Patch Changes
|
package/build/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { RequestOptions } from '@verdaccio/url';
|
|
2
2
|
export { convertDistRemoteToLocalTarballUrls, convertDistVersionToLocalTarballsUrl, } from './convertDistRemoteToLocalTarballUrls';
|
|
3
|
-
export { getLocalRegistryTarballUri } from './getLocalRegistryTarballUri';
|
|
3
|
+
export { extractTarballFromUrl, getLocalRegistryTarballUri } from './getLocalRegistryTarballUri';
|
|
4
4
|
export { RequestOptions };
|
package/build/index.js
CHANGED
|
@@ -21,6 +21,12 @@ Object.defineProperty(exports, "convertDistVersionToLocalTarballsUrl", {
|
|
|
21
21
|
return _convertDistRemoteToLocalTarballUrls.convertDistVersionToLocalTarballsUrl;
|
|
22
22
|
}
|
|
23
23
|
});
|
|
24
|
+
Object.defineProperty(exports, "extractTarballFromUrl", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function () {
|
|
27
|
+
return _getLocalRegistryTarballUri.extractTarballFromUrl;
|
|
28
|
+
}
|
|
29
|
+
});
|
|
24
30
|
Object.defineProperty(exports, "getLocalRegistryTarballUri", {
|
|
25
31
|
enumerable: true,
|
|
26
32
|
get: function () {
|
package/build/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_url","require","_convertDistRemoteToLocalTarballUrls","_getLocalRegistryTarballUri"],"sources":["../src/index.ts"],"sourcesContent":["import { RequestOptions } from '@verdaccio/url';\n\nexport {\n convertDistRemoteToLocalTarballUrls,\n convertDistVersionToLocalTarballsUrl,\n} from './convertDistRemoteToLocalTarballUrls';\nexport { getLocalRegistryTarballUri } from './getLocalRegistryTarballUri';\n\nexport { RequestOptions };\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","names":["_url","require","_convertDistRemoteToLocalTarballUrls","_getLocalRegistryTarballUri"],"sources":["../src/index.ts"],"sourcesContent":["import { RequestOptions } from '@verdaccio/url';\n\nexport {\n convertDistRemoteToLocalTarballUrls,\n convertDistVersionToLocalTarballsUrl,\n} from './convertDistRemoteToLocalTarballUrls';\nexport { extractTarballFromUrl, getLocalRegistryTarballUri } from './getLocalRegistryTarballUri';\n\nexport { RequestOptions };\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,IAAA,GAAAC,OAAA;AAEA,IAAAC,oCAAA,GAAAD,OAAA;AAIA,IAAAE,2BAAA,GAAAF,OAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@verdaccio/tarball",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "12.0.0-next-7.7",
|
|
4
4
|
"description": "tarball utilities resolver",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"private",
|
|
@@ -34,14 +34,14 @@
|
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"debug": "4.3.4",
|
|
37
|
-
"@verdaccio/core": "
|
|
38
|
-
"@verdaccio/url": "
|
|
39
|
-
"@verdaccio/utils": "
|
|
37
|
+
"@verdaccio/core": "7.0.0-next-7.7",
|
|
38
|
+
"@verdaccio/url": "12.0.0-next-7.7",
|
|
39
|
+
"@verdaccio/utils": "7.0.0-next-7.7",
|
|
40
40
|
"lodash": "4.17.21"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@verdaccio/types": "
|
|
44
|
-
"node-mocks-http": "1.
|
|
43
|
+
"@verdaccio/types": "12.0.0-next.2",
|
|
44
|
+
"node-mocks-http": "1.14.1"
|
|
45
45
|
},
|
|
46
46
|
"funding": {
|
|
47
47
|
"type": "opencollective",
|
package/src/index.ts
CHANGED
|
@@ -4,6 +4,6 @@ export {
|
|
|
4
4
|
convertDistRemoteToLocalTarballUrls,
|
|
5
5
|
convertDistVersionToLocalTarballsUrl,
|
|
6
6
|
} from './convertDistRemoteToLocalTarballUrls';
|
|
7
|
-
export { getLocalRegistryTarballUri } from './getLocalRegistryTarballUri';
|
|
7
|
+
export { extractTarballFromUrl, getLocalRegistryTarballUri } from './getLocalRegistryTarballUri';
|
|
8
8
|
|
|
9
9
|
export { RequestOptions };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { extractTarballFromUrl } from '../src';
|
|
2
|
+
|
|
3
|
+
describe('extractTarballFromUrl', () => {
|
|
4
|
+
const metadata: any = {
|
|
5
|
+
name: 'npm_test',
|
|
6
|
+
versions: {
|
|
7
|
+
'1.0.0': {
|
|
8
|
+
dist: {
|
|
9
|
+
tarball: 'http://registry.org/npm_test/-/npm_test-1.0.0.tgz',
|
|
10
|
+
},
|
|
11
|
+
},
|
|
12
|
+
'1.0.1': {
|
|
13
|
+
dist: {
|
|
14
|
+
tarball: 'npm_test-1.0.1.tgz',
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
'1.0.2': {
|
|
18
|
+
dist: {
|
|
19
|
+
tarball: 'https://localhost/npm_test-1.0.2.tgz',
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
test('should return only name of tarball', () => {
|
|
26
|
+
expect(extractTarballFromUrl(metadata.versions['1.0.0'].dist.tarball)).toEqual(
|
|
27
|
+
'npm_test-1.0.0.tgz'
|
|
28
|
+
);
|
|
29
|
+
expect(extractTarballFromUrl(metadata.versions['1.0.1'].dist.tarball)).toEqual(
|
|
30
|
+
'npm_test-1.0.1.tgz'
|
|
31
|
+
);
|
|
32
|
+
expect(extractTarballFromUrl(metadata.versions['1.0.2'].dist.tarball)).toEqual(
|
|
33
|
+
'npm_test-1.0.2.tgz'
|
|
34
|
+
);
|
|
35
|
+
});
|
|
36
|
+
});
|