@miniflare/core
Advanced tools
Comparing version 2.5.1 to 2.6.0-d1.1
@@ -45,2 +45,3 @@ /// <reference types="node" /> | ||
import { URL as URL_2 } from 'url'; | ||
import { UsageModel } from '@miniflare/shared'; | ||
import { ValueOf } from '@miniflare/shared'; | ||
@@ -148,2 +149,6 @@ import { webcrypto } from 'crypto'; | ||
export declare class CompressionStream extends TransformStream<Uint8Array, Uint8Array> { | ||
constructor(format: "gzip" | "deflate"); | ||
} | ||
/* Excluded from this release type: _CoreMount */ | ||
@@ -162,2 +167,3 @@ | ||
compatibilityFlags?: CompatibilityFlag[]; | ||
usageModel?: "bundled" | "unbound"; | ||
upstream?: string; | ||
@@ -168,2 +174,3 @@ watch?: boolean; | ||
updateCheck?: boolean; | ||
repl?: boolean; | ||
mounts?: Record<string, string | CoreOptions | BindingsOptions>; | ||
@@ -176,2 +183,3 @@ name?: string; | ||
globalRandom?: boolean; | ||
actualTime?: boolean; | ||
} | ||
@@ -190,2 +198,3 @@ | ||
compatibilityFlags?: CompatibilityFlag[]; | ||
usageModel?: "bundled" | "unbound"; | ||
upstream?: string; | ||
@@ -196,2 +205,3 @@ watch?: boolean; | ||
updateCheck?: boolean; | ||
repl?: boolean; | ||
rootPath?: string; | ||
@@ -205,2 +215,3 @@ mounts?: Record<string, string | CoreOptions | BindingsOptions>; | ||
globalRandom?: boolean; | ||
actualTime?: boolean; | ||
readonly processedModuleRules: ProcessedModuleRule[]; | ||
@@ -220,4 +231,10 @@ readonly upstreamURL?: URL_2; | ||
export declare function createDate(actualTime?: boolean): typeof Date; | ||
export declare function createTimer<Return>(func: TimerFunction<Return>, blockGlobalTimers?: boolean): TimerFunction<Return>; | ||
export declare class DecompressionStream extends TransformStream<Uint8Array, Uint8Array> { | ||
constructor(format: "gzip" | "deflate"); | ||
} | ||
/* Excluded from this release type: _deepEqual */ | ||
@@ -300,3 +317,3 @@ | ||
#private; | ||
constructor(service: string | FetcherFetch, getServiceFetch: (name: string) => Promise<FetcherFetch>); | ||
constructor(service: string | FetcherFetch, getServiceFetch: (name: string) => Promise<FetcherFetchWithUsageModel>, defaultUsageModel?: UsageModel); | ||
fetch(input: RequestInfo, init?: RequestInit): Promise<Response>; | ||
@@ -307,2 +324,7 @@ } | ||
export declare interface FetcherFetchWithUsageModel { | ||
fetch: FetcherFetch; | ||
usageModel?: UsageModel; | ||
} | ||
export declare class FetchError extends MiniflareError<FetchErrorCode> { | ||
@@ -472,2 +494,6 @@ } | ||
export declare class Navigator { | ||
readonly userAgent = "Cloudflare-Workers"; | ||
} | ||
export declare type PluginInstances<Plugins extends PluginSignatures> = { | ||
@@ -474,0 +500,0 @@ [K in keyof Plugins]: InstanceType<Plugins[K]>; |
{ | ||
"name": "@miniflare/core", | ||
"version": "2.5.1", | ||
"version": "2.6.0-d1.1", | ||
"description": "Core module for Miniflare: a fun, full-featured, fully-local simulator for Cloudflare Workers", | ||
@@ -42,4 +42,4 @@ "keywords": [ | ||
"@iarna/toml": "^2.2.5", | ||
"@miniflare/shared": "2.5.1", | ||
"@miniflare/watcher": "2.5.1", | ||
"@miniflare/shared": "2.6.0-d1.1", | ||
"@miniflare/watcher": "2.6.0-d1.1", | ||
"busboy": "^1.6.0", | ||
@@ -53,6 +53,6 @@ "dotenv": "^10.0.0", | ||
"devDependencies": { | ||
"@miniflare/durable-objects": "2.5.1", | ||
"@miniflare/shared-test": "2.5.1", | ||
"@miniflare/watcher": "2.5.1", | ||
"@miniflare/web-sockets": "2.5.1", | ||
"@miniflare/durable-objects": "2.6.0-d1.1", | ||
"@miniflare/shared-test": "2.6.0-d1.1", | ||
"@miniflare/watcher": "2.6.0-d1.1", | ||
"@miniflare/web-sockets": "2.6.0-d1.1", | ||
"@types/busboy": "^1.5.0", | ||
@@ -59,0 +59,0 @@ "@types/set-cookie-parser": "^2.4.1", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
188246
3622
1
7
+ Added@miniflare/shared@2.6.0-d1.1(transitive)
+ Added@miniflare/watcher@2.6.0-d1.1(transitive)
+ Added@types/better-sqlite3@7.6.11(transitive)
+ Added@types/node@22.5.5(transitive)
+ Addedbase64-js@1.5.1(transitive)
+ Addedbetter-sqlite3@7.6.2(transitive)
+ Addedbindings@1.5.0(transitive)
+ Addedbl@4.1.0(transitive)
+ Addedbuffer@5.7.1(transitive)
+ Addedchownr@1.1.4(transitive)
+ Addeddecompress-response@6.0.0(transitive)
+ Addeddeep-extend@0.6.0(transitive)
+ Addeddetect-libc@2.0.3(transitive)
+ Addedend-of-stream@1.4.4(transitive)
+ Addedexpand-template@2.0.3(transitive)
+ Addedfile-uri-to-path@1.0.0(transitive)
+ Addedfs-constants@1.0.0(transitive)
+ Addedgithub-from-package@0.0.0(transitive)
+ Addedieee754@1.2.1(transitive)
+ Addedinherits@2.0.4(transitive)
+ Addedini@1.3.8(transitive)
+ Addedmimic-response@3.1.0(transitive)
+ Addedminimist@1.2.8(transitive)
+ Addedmkdirp-classic@0.5.3(transitive)
+ Addednapi-build-utils@1.0.2(transitive)
+ Addednode-abi@3.68.0(transitive)
+ Addedonce@1.4.0(transitive)
+ Addedprebuild-install@7.1.2(transitive)
+ Addedpump@3.0.2(transitive)
+ Addedrc@1.2.8(transitive)
+ Addedreadable-stream@3.6.2(transitive)
+ Addedsafe-buffer@5.2.1(transitive)
+ Addedsemver@7.6.3(transitive)
+ Addedsimple-concat@1.0.1(transitive)
+ Addedsimple-get@4.0.1(transitive)
+ Addedstring_decoder@1.3.0(transitive)
+ Addedstrip-json-comments@2.0.1(transitive)
+ Addedtar-fs@2.1.1(transitive)
+ Addedtar-stream@2.2.0(transitive)
+ Addedtunnel-agent@0.6.0(transitive)
+ Addedundici-types@6.19.8(transitive)
+ Addedutil-deprecate@1.0.2(transitive)
+ Addedwrappy@1.0.2(transitive)
- Removed@miniflare/shared@2.5.1(transitive)
- Removed@miniflare/watcher@2.5.1(transitive)
Updated@miniflare/shared@2.6.0-d1.1