@atlaspack/utils 2.18.0 → 2.18.1
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 +11 -0
- package/lib/{alternatives.d.ts → types/alternatives.d.ts} +1 -1
- package/lib/{blob.d.ts → types/blob.d.ts} +1 -1
- package/lib/{config.d.ts → types/config.d.ts} +2 -2
- package/lib/{generateBuildMetrics.d.ts → types/generateBuildMetrics.d.ts} +2 -2
- package/lib/{generateCertificate.d.ts → types/generateCertificate.d.ts} +1 -1
- package/lib/{getCertificate.d.ts → types/getCertificate.d.ts} +1 -2
- package/lib/{getRootDir.d.ts → types/getRootDir.d.ts} +1 -1
- package/lib/{glob.d.ts → types/glob.d.ts} +2 -2
- package/lib/{hash.d.ts → types/hash.d.ts} +1 -1
- package/lib/{http-server.d.ts → types/http-server.d.ts} +2 -2
- package/lib/{isDirectoryInside.d.ts → types/isDirectoryInside.d.ts} +1 -1
- package/lib/{path.d.ts → types/path.d.ts} +1 -1
- package/lib/{prettyDiagnostic.d.ts → types/prettyDiagnostic.d.ts} +1 -1
- package/lib/{progress-message.d.ts → types/progress-message.d.ts} +1 -1
- package/lib/{relativeBundlePath.d.ts → types/relativeBundlePath.d.ts} +1 -1
- package/lib/{replaceBundleReferences.d.ts → types/replaceBundleReferences.d.ts} +1 -1
- package/lib/{sourcemap.d.ts → types/sourcemap.d.ts} +1 -2
- package/lib/{stream.d.ts → types/stream.d.ts} +1 -1
- package/package.json +10 -8
- package/src/alternatives.ts +1 -1
- package/src/blob.ts +1 -1
- package/src/config.ts +2 -2
- package/src/generateBuildMetrics.ts +2 -2
- package/src/generateCertificate.ts +1 -1
- package/src/getCertificate.ts +1 -2
- package/src/getRootDir.ts +1 -1
- package/src/glob.ts +2 -2
- package/src/hash.ts +1 -1
- package/src/http-server.ts +2 -2
- package/src/isDirectoryInside.ts +1 -1
- package/src/path.ts +1 -1
- package/src/prettyDiagnostic.ts +1 -1
- package/src/progress-message.ts +1 -1
- package/src/relativeBundlePath.ts +1 -1
- package/src/replaceBundleReferences.ts +1 -1
- package/src/sourcemap.ts +1 -2
- package/src/stream.ts +1 -1
- /package/lib/{DefaultMap.d.ts → types/DefaultMap.d.ts} +0 -0
- /package/lib/{Deferred.d.ts → types/Deferred.d.ts} +0 -0
- /package/lib/{PromiseQueue.d.ts → types/PromiseQueue.d.ts} +0 -0
- /package/lib/{TapStream.d.ts → types/TapStream.d.ts} +0 -0
- /package/lib/{ansi-html.d.ts → types/ansi-html.d.ts} +0 -0
- /package/lib/{bundle-url.d.ts → types/bundle-url.d.ts} +0 -0
- /package/lib/{collection.d.ts → types/collection.d.ts} +0 -0
- /package/lib/{countLines.d.ts → types/countLines.d.ts} +0 -0
- /package/lib/{debounce.d.ts → types/debounce.d.ts} +0 -0
- /package/lib/{debug-tools.d.ts → types/debug-tools.d.ts} +0 -0
- /package/lib/{dependency-location.d.ts → types/dependency-location.d.ts} +0 -0
- /package/lib/{escape-html.d.ts → types/escape-html.d.ts} +0 -0
- /package/lib/{getExisting.d.ts → types/getExisting.d.ts} +0 -0
- /package/lib/{getModuleParts.d.ts → types/getModuleParts.d.ts} +0 -0
- /package/lib/{index.d.ts → types/index.d.ts} +0 -0
- /package/lib/{is-url.d.ts → types/is-url.d.ts} +0 -0
- /package/lib/{objectHash.d.ts → types/objectHash.d.ts} +0 -0
- /package/lib/{openInBrowser.d.ts → types/openInBrowser.d.ts} +0 -0
- /package/lib/{parseCSSImport.d.ts → types/parseCSSImport.d.ts} +0 -0
- /package/lib/{prettifyTime.d.ts → types/prettifyTime.d.ts} +0 -0
- /package/lib/{relativeUrl.d.ts → types/relativeUrl.d.ts} +0 -0
- /package/lib/{schema.d.ts → types/schema.d.ts} +0 -0
- /package/lib/{shared-buffer.d.ts → types/shared-buffer.d.ts} +0 -0
- /package/lib/{throttle.d.ts → types/throttle.d.ts} +0 -0
- /package/lib/{urlJoin.d.ts → types/urlJoin.d.ts} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @atlaspack/utils
|
|
2
2
|
|
|
3
|
+
## 2.18.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`ad26146`](https://github.com/atlassian-labs/atlaspack/commit/ad26146f13b4c1cc65d4a0f9c67060b90ef14ff3), [`f1b48e7`](https://github.com/atlassian-labs/atlaspack/commit/f1b48e7a04e005cef0f36a3e692087a9ecdb6f7a), [`7f5841c`](https://github.com/atlassian-labs/atlaspack/commit/7f5841c39df049f9546cccbeea2a7337e0337b45), [`73dd7ba`](https://github.com/atlassian-labs/atlaspack/commit/73dd7baab69456ef2f6e4a0cc7dbb04f407eb148)]:
|
|
8
|
+
- @atlaspack/rust@3.6.0
|
|
9
|
+
- @atlaspack/types-internal@2.19.0
|
|
10
|
+
- @atlaspack/feature-flags@2.22.0
|
|
11
|
+
- @atlaspack/logger@2.14.16
|
|
12
|
+
- @atlaspack/codeframe@2.13.6
|
|
13
|
+
|
|
3
14
|
## 2.18.0
|
|
4
15
|
|
|
5
16
|
### Minor Changes
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { FileSystem } from '@atlaspack/types';
|
|
1
|
+
import type { FileSystem } from '@atlaspack/types-internal';
|
|
2
2
|
export declare function findAlternativeNodeModules(fs: FileSystem, moduleName: string, dir: string): Promise<Array<string>>;
|
|
3
3
|
export declare function findAlternativeFiles(fs: FileSystem, fileSpecifier: string, dir: string, projectRoot: string, leadingDotSlash?: boolean, includeDirectories?: boolean, includeExtension?: boolean): Promise<Array<string>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Blob } from '@atlaspack/types';
|
|
1
|
+
import type { Blob } from '@atlaspack/types-internal';
|
|
2
2
|
import { Buffer } from 'buffer';
|
|
3
3
|
export declare function blobToBuffer(blob: Blob): Promise<Buffer>;
|
|
4
4
|
export declare function blobToString(blob: Blob): Promise<string>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ConfigResult, File, FilePath } from '@atlaspack/types';
|
|
2
|
-
import type { FileSystem } from '@atlaspack/
|
|
1
|
+
import type { ConfigResult, File, FilePath } from '@atlaspack/types-internal';
|
|
2
|
+
import type { FileSystem } from '@atlaspack/types-internal';
|
|
3
3
|
export type ConfigOutput = {
|
|
4
4
|
config: ConfigResult;
|
|
5
5
|
files: Array<File>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { FilePath, PackagedBundle } from '@atlaspack/types';
|
|
2
|
-
import type { FileSystem } from '@atlaspack/
|
|
1
|
+
import type { FilePath, PackagedBundle } from '@atlaspack/types-internal';
|
|
2
|
+
import type { FileSystem } from '@atlaspack/types-internal';
|
|
3
3
|
export type AssetStats = {
|
|
4
4
|
filePath: string;
|
|
5
5
|
size: number;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type { HTTPSOptions } from '@atlaspack/types';
|
|
2
|
-
import type { FileSystem } from '@atlaspack/fs';
|
|
1
|
+
import type { HTTPSOptions, FileSystem } from '@atlaspack/types-internal';
|
|
3
2
|
export default function getCertificate(fs: FileSystem, options: HTTPSOptions): Promise<{
|
|
4
3
|
cert: Buffer;
|
|
5
4
|
key: Buffer;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { FilePath } from '@atlaspack/types';
|
|
1
|
+
import type { FilePath } from '@atlaspack/types-internal';
|
|
2
2
|
export default function getRootDir(files: Array<FilePath>): FilePath;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { FilePath, Glob } from '@atlaspack/types';
|
|
2
|
-
import type { FileSystem } from '@atlaspack/
|
|
1
|
+
import type { FilePath, Glob } from '@atlaspack/types-internal';
|
|
2
|
+
import type { FileSystem } from '@atlaspack/types-internal';
|
|
3
3
|
import { FastGlobOptions } from 'fast-glob';
|
|
4
4
|
import { type Options } from 'micromatch';
|
|
5
5
|
export declare function isGlob(p: FilePath): any;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Readable } from 'stream';
|
|
2
|
-
import type { FileSystem } from '@atlaspack/
|
|
2
|
+
import type { FileSystem } from '@atlaspack/types-internal';
|
|
3
3
|
export declare function hashStream(stream: Readable): Promise<string>;
|
|
4
4
|
export declare function hashObject(obj: {
|
|
5
5
|
readonly [key: string]: unknown;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Server as HTTPOnlyServer, IncomingMessage as HTTPRequest, ServerResponse as HTTPResponse } from 'http';
|
|
2
2
|
import type { Server as HTTPSServer } from 'https';
|
|
3
|
-
import type { FilePath, HTTPSOptions } from '@atlaspack/types';
|
|
4
|
-
import type { FileSystem } from '@atlaspack/
|
|
3
|
+
import type { FilePath, HTTPSOptions } from '@atlaspack/types-internal';
|
|
4
|
+
import type { FileSystem } from '@atlaspack/types-internal';
|
|
5
5
|
type CreateHTTPServerOpts = {
|
|
6
6
|
listener?: (arg1: HTTPRequest, arg2: HTTPResponse) => void;
|
|
7
7
|
host?: string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { FilePath } from '@atlaspack/types';
|
|
1
|
+
import type { FilePath } from '@atlaspack/types-internal';
|
|
2
2
|
export default function isDirectoryInside(child: FilePath, parent: FilePath): boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { FilePath } from '@atlaspack/types';
|
|
1
|
+
import type { FilePath } from '@atlaspack/types-internal';
|
|
2
2
|
export declare function isAbsolute(filepath: string): boolean;
|
|
3
3
|
export declare function normalizeSeparators(filePath: FilePath): FilePath;
|
|
4
4
|
export type PathOptions = {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { BuildProgressEvent } from '@atlaspack/types';
|
|
1
|
+
import type { BuildProgressEvent } from '@atlaspack/types-internal';
|
|
2
2
|
export declare function getProgressMessage(event: BuildProgressEvent): string | null | undefined;
|
|
3
3
|
export declare function getPackageProgressMessage(completeBundles: number, totalBundles: number): string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type SourceMap from '@parcel/source-map';
|
|
2
|
-
import type { Async, Blob, Bundle, BundleGraph, Dependency, NamedBundle } from '@atlaspack/types';
|
|
2
|
+
import type { Async, Blob, Bundle, BundleGraph, Dependency, NamedBundle } from '@atlaspack/types-internal';
|
|
3
3
|
export declare function replaceURLReferences({ bundle, bundleGraph, contents, map, getReplacement, relative, }: {
|
|
4
4
|
bundle: NamedBundle;
|
|
5
5
|
bundleGraph: BundleGraph<NamedBundle>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type { SourceLocation } from '@atlaspack/types';
|
|
2
|
-
import type { FileSystem } from '@atlaspack/fs';
|
|
1
|
+
import type { SourceLocation, FileSystem } from '@atlaspack/types-internal';
|
|
3
2
|
import SourceMap from '@parcel/source-map';
|
|
4
3
|
export declare const SOURCEMAP_RE: RegExp;
|
|
5
4
|
export declare const SOURCEMAP_EXTENSIONS: Set<string>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Readable } from 'stream';
|
|
2
|
-
import type { Blob } from '@atlaspack/types';
|
|
2
|
+
import type { Blob } from '@atlaspack/types-internal';
|
|
3
3
|
export declare function measureStreamLength(stream: Readable): Promise<number>;
|
|
4
4
|
export declare function readableFromStringOrBuffer(str: string | Buffer): Readable;
|
|
5
5
|
export declare function bufferStream(stream: Readable): Promise<Buffer>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaspack/utils",
|
|
3
|
-
"version": "2.18.
|
|
3
|
+
"version": "2.18.1",
|
|
4
4
|
"description": "Blazing fast, zero configuration web application bundler",
|
|
5
5
|
"license": "(MIT OR Apache-2.0)",
|
|
6
6
|
"publishConfig": {
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
},
|
|
13
13
|
"main": "./lib/index.js",
|
|
14
14
|
"source": "./src/index.ts",
|
|
15
|
-
"types": "./lib/index.d.ts",
|
|
15
|
+
"types": "./lib/types/index.d.ts",
|
|
16
16
|
"engines": {
|
|
17
17
|
"node": ">= 16.0.0"
|
|
18
18
|
},
|
|
@@ -31,12 +31,13 @@
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@atlaspack/codeframe": "2.13.
|
|
34
|
+
"@atlaspack/codeframe": "2.13.6",
|
|
35
35
|
"@atlaspack/diagnostic": "2.14.2",
|
|
36
|
-
"@atlaspack/feature-flags": "2.
|
|
37
|
-
"@atlaspack/logger": "2.14.
|
|
36
|
+
"@atlaspack/feature-flags": "2.22.0",
|
|
37
|
+
"@atlaspack/logger": "2.14.16",
|
|
38
38
|
"@atlaspack/markdown-ansi": "2.14.2",
|
|
39
|
-
"@atlaspack/
|
|
39
|
+
"@atlaspack/types-internal": "2.19.0",
|
|
40
|
+
"@atlaspack/rust": "3.6.0",
|
|
40
41
|
"@parcel/source-map": "^2.1.1",
|
|
41
42
|
"@types/micromatch": "^4.0.9",
|
|
42
43
|
"@types/node-forge": "^1.3.13",
|
|
@@ -71,6 +72,7 @@
|
|
|
71
72
|
},
|
|
72
73
|
"type": "commonjs",
|
|
73
74
|
"scripts": {
|
|
74
|
-
"check-ts": "tsc --emitDeclarationOnly --rootDir src"
|
|
75
|
+
"check-ts": "tsc --emitDeclarationOnly --rootDir src",
|
|
76
|
+
"build:lib": "gulp build --gulpfile ../../../gulpfile.js --cwd ."
|
|
75
77
|
}
|
|
76
|
-
}
|
|
78
|
+
}
|
package/src/alternatives.ts
CHANGED
package/src/blob.ts
CHANGED
package/src/config.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type {ConfigResult, File, FilePath} from '@atlaspack/types';
|
|
2
|
-
import type {FileSystem} from '@atlaspack/
|
|
1
|
+
import type {ConfigResult, File, FilePath} from '@atlaspack/types-internal';
|
|
2
|
+
import type {FileSystem} from '@atlaspack/types-internal';
|
|
3
3
|
import ThrowableDiagnostic from '@atlaspack/diagnostic';
|
|
4
4
|
import path from 'path';
|
|
5
5
|
// @ts-expect-error TS7016
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type {FilePath, PackagedBundle} from '@atlaspack/types';
|
|
2
|
-
import type {FileSystem} from '@atlaspack/
|
|
1
|
+
import type {FilePath, PackagedBundle} from '@atlaspack/types-internal';
|
|
2
|
+
import type {FileSystem} from '@atlaspack/types-internal';
|
|
3
3
|
import SourceMap from '@parcel/source-map';
|
|
4
4
|
import nullthrows from 'nullthrows';
|
|
5
5
|
import path from 'path';
|
package/src/getCertificate.ts
CHANGED
package/src/getRootDir.ts
CHANGED
package/src/glob.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type {FilePath, Glob} from '@atlaspack/types';
|
|
2
|
-
import type {FileSystem} from '@atlaspack/
|
|
1
|
+
import type {FilePath, Glob} from '@atlaspack/types-internal';
|
|
2
|
+
import type {FileSystem} from '@atlaspack/types-internal';
|
|
3
3
|
|
|
4
4
|
// @ts-expect-error TS7016
|
|
5
5
|
import _isGlob from 'is-glob';
|
package/src/hash.ts
CHANGED
package/src/http-server.ts
CHANGED
|
@@ -5,8 +5,8 @@ import type {
|
|
|
5
5
|
} from 'http';
|
|
6
6
|
import type {Server as HTTPSServer} from 'https';
|
|
7
7
|
import type {Socket} from 'net';
|
|
8
|
-
import type {FilePath, HTTPSOptions} from '@atlaspack/types';
|
|
9
|
-
import type {FileSystem} from '@atlaspack/
|
|
8
|
+
import type {FilePath, HTTPSOptions} from '@atlaspack/types-internal';
|
|
9
|
+
import type {FileSystem} from '@atlaspack/types-internal';
|
|
10
10
|
|
|
11
11
|
import http from 'http';
|
|
12
12
|
import https from 'https';
|
package/src/isDirectoryInside.ts
CHANGED
package/src/path.ts
CHANGED
package/src/prettyDiagnostic.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type {Diagnostic} from '@atlaspack/diagnostic';
|
|
2
|
-
import type {PluginOptions} from '@atlaspack/types';
|
|
2
|
+
import type {PluginOptions} from '@atlaspack/types-internal';
|
|
3
3
|
|
|
4
4
|
import formatCodeFrame from '@atlaspack/codeframe';
|
|
5
5
|
import _mdAnsi from '@atlaspack/markdown-ansi';
|
package/src/progress-message.ts
CHANGED
package/src/sourcemap.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type {SourceLocation} from '@atlaspack/types';
|
|
2
|
-
import type {FileSystem} from '@atlaspack/fs';
|
|
1
|
+
import type {SourceLocation, FileSystem} from '@atlaspack/types-internal';
|
|
3
2
|
import SourceMap from '@parcel/source-map';
|
|
4
3
|
import path from 'path';
|
|
5
4
|
import {normalizeSeparators, isAbsolute} from './path';
|
package/src/stream.ts
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|