@loaders.gl/compression
Advanced tools
Comparing version 4.3.0-alpha.8 to 4.3.0-beta.1
@@ -8,3 +8,3 @@ // loaders.gl | ||
// @ts-ignore TS2304: Cannot find name '__VERSION__'. | ||
const VERSION = typeof "4.3.0-alpha.7" !== 'undefined' ? "4.3.0-alpha.7" : 'latest'; | ||
const VERSION = typeof "4.3.0-alpha.8" !== 'undefined' ? "4.3.0-alpha.8" : 'latest'; | ||
/** | ||
@@ -11,0 +11,0 @@ * Worker for Zlib real-time compression and decompression |
@@ -5,8 +5,6 @@ // loaders.gl | ||
import { Compression } from "./compression.js"; | ||
import { isBrowser, toArrayBuffer } from '@loaders.gl/loader-utils'; | ||
import { registerJSModules, getJSModule, getJSModuleOrNull } from '@loaders.gl/loader-utils'; | ||
import { isBrowser, toArrayBuffer, registerJSModules, getJSModule, getJSModuleOrNull, promisify1 } from '@loaders.gl/loader-utils'; | ||
// import brotli from 'brotli'; // https://bundlephobia.com/package/brotli | ||
import { BrotliDecode } from "../brotli/decode.js"; | ||
import zlib from 'zlib'; | ||
import { promisify1 } from '@loaders.gl/loader-utils'; | ||
const DEFAULT_BROTLI_OPTIONS = { | ||
@@ -13,0 +11,0 @@ brotli: { |
@@ -5,4 +5,3 @@ // loaders.gl | ||
// Compression interface | ||
import { concatenateArrayBuffersAsync } from '@loaders.gl/loader-utils'; | ||
import { registerJSModules } from '@loaders.gl/loader-utils'; | ||
import { concatenateArrayBuffersAsync, registerJSModules } from '@loaders.gl/loader-utils'; | ||
/** Compression */ | ||
@@ -9,0 +8,0 @@ export class Compression { |
@@ -5,6 +5,5 @@ // loaders.gl | ||
import { Compression } from "./compression.js"; | ||
import { isBrowser, toArrayBuffer } from '@loaders.gl/loader-utils'; | ||
import { isBrowser, toArrayBuffer, promisify1 } from '@loaders.gl/loader-utils'; | ||
import pako from 'pako'; // https://bundlephobia.com/package/pako | ||
import zlib from 'zlib'; | ||
import { promisify1 } from '@loaders.gl/loader-utils'; | ||
/** | ||
@@ -11,0 +10,0 @@ * DEFLATE compression / decompression |
@@ -23,4 +23,3 @@ // loaders.gl | ||
// LZ4 | ||
import { toArrayBuffer } from '@loaders.gl/loader-utils'; | ||
import { registerJSModules, getJSModule } from '@loaders.gl/loader-utils'; | ||
import { toArrayBuffer, registerJSModules, getJSModule } from '@loaders.gl/loader-utils'; | ||
import { Compression } from "./compression.js"; | ||
@@ -27,0 +26,0 @@ // import lz4js from 'lz4js'; // https://bundlephobia.com/package/lz4 |
@@ -5,4 +5,3 @@ // loaders.gl | ||
import { Compression } from "./compression.js"; | ||
import { registerJSModules } from '@loaders.gl/loader-utils'; | ||
import { checkJSModule, getJSModule, getJSModuleOrNull } from '@loaders.gl/loader-utils'; | ||
import { registerJSModules, checkJSModule, getJSModule, getJSModuleOrNull } from '@loaders.gl/loader-utils'; | ||
// import {ZstdCodec} from 'zstd-codec'; // https://bundlephobia.com/package/zstd-codec | ||
@@ -9,0 +8,0 @@ const CHUNK_SIZE = 1000000; // Tested value |
{ | ||
"name": "@loaders.gl/compression", | ||
"version": "4.3.0-alpha.8", | ||
"version": "4.3.0-beta.1", | ||
"description": "Decompression and compression plugins for loaders.gl", | ||
@@ -53,4 +53,4 @@ "license": "MIT", | ||
"dependencies": { | ||
"@loaders.gl/loader-utils": "4.3.0-alpha.8", | ||
"@loaders.gl/worker-utils": "4.3.0-alpha.8", | ||
"@loaders.gl/loader-utils": "4.3.0-beta.1", | ||
"@loaders.gl/worker-utils": "4.3.0-beta.1", | ||
"@types/brotli": "^1.3.0", | ||
@@ -76,3 +76,3 @@ "@types/pako": "^1.0.1", | ||
}, | ||
"gitHead": "c458e0c3a09543cd7c4a293d3c3f08c12acf78c0" | ||
"gitHead": "992d24e7d4e3015a91fa1cbfe87ee7dc1b333322" | ||
} |
@@ -8,4 +8,10 @@ // loaders.gl | ||
import {Compression} from './compression'; | ||
import {isBrowser, toArrayBuffer} from '@loaders.gl/loader-utils'; | ||
import {registerJSModules, getJSModule, getJSModuleOrNull} from '@loaders.gl/loader-utils'; | ||
import { | ||
isBrowser, | ||
toArrayBuffer, | ||
registerJSModules, | ||
getJSModule, | ||
getJSModuleOrNull, | ||
promisify1 | ||
} from '@loaders.gl/loader-utils'; | ||
@@ -16,3 +22,2 @@ import type brotliNamespace from 'brotli'; | ||
import zlib from 'zlib'; | ||
import {promisify1} from '@loaders.gl/loader-utils'; | ||
@@ -19,0 +24,0 @@ export type BrotliCompressionOptions = CompressionOptions & { |
@@ -6,4 +6,3 @@ // loaders.gl | ||
// Compression interface | ||
import {concatenateArrayBuffersAsync} from '@loaders.gl/loader-utils'; | ||
import {registerJSModules} from '@loaders.gl/loader-utils'; | ||
import {concatenateArrayBuffersAsync, registerJSModules} from '@loaders.gl/loader-utils'; | ||
@@ -10,0 +9,0 @@ /** Compression options */ |
@@ -8,6 +8,5 @@ // loaders.gl | ||
import {Compression} from './compression'; | ||
import {isBrowser, toArrayBuffer} from '@loaders.gl/loader-utils'; | ||
import {isBrowser, toArrayBuffer, promisify1} from '@loaders.gl/loader-utils'; | ||
import pako from 'pako'; // https://bundlephobia.com/package/pako | ||
import zlib from 'zlib'; | ||
import {promisify1} from '@loaders.gl/loader-utils'; | ||
@@ -14,0 +13,0 @@ export type DeflateCompressionOptions = CompressionOptions & { |
@@ -29,4 +29,3 @@ // loaders.gl | ||
// LZ4 | ||
import {toArrayBuffer} from '@loaders.gl/loader-utils'; | ||
import {registerJSModules, getJSModule} from '@loaders.gl/loader-utils'; | ||
import {toArrayBuffer, registerJSModules, getJSModule} from '@loaders.gl/loader-utils'; | ||
import type {CompressionOptions} from './compression'; | ||
@@ -33,0 +32,0 @@ import {Compression} from './compression'; |
@@ -8,4 +8,8 @@ // loaders.gl | ||
import {Compression} from './compression'; | ||
import {registerJSModules} from '@loaders.gl/loader-utils'; | ||
import {checkJSModule, getJSModule, getJSModuleOrNull} from '@loaders.gl/loader-utils'; | ||
import { | ||
registerJSModules, | ||
checkJSModule, | ||
getJSModule, | ||
getJSModuleOrNull | ||
} from '@loaders.gl/loader-utils'; | ||
@@ -12,0 +16,0 @@ // import {ZstdCodec} from 'zstd-codec'; // https://bundlephobia.com/package/zstd-codec |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
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
2613334
21229
+ Added@loaders.gl/loader-utils@4.3.0-beta.1(transitive)
+ Added@loaders.gl/schema@4.3.0-beta.1(transitive)
+ Added@loaders.gl/worker-utils@4.3.0-beta.1(transitive)
- Removed@loaders.gl/loader-utils@4.3.0-alpha.8(transitive)
- Removed@loaders.gl/schema@4.3.0-alpha.8(transitive)
- Removed@loaders.gl/worker-utils@4.3.0-alpha.8(transitive)