feat: (?:de|in)flation
This commit is contained in:
parent
2a0a2f1819
commit
9f31d98f5b
1
TODO.md
1
TODO.md
|
@ -39,3 +39,4 @@
|
|||
about inventory change
|
||||
- ❌ afterDestructionTickers shouldn't exist... destruction should be deferred
|
||||
- ❌ Remove position pack check from trait and add to Vector
|
||||
- ❌ zLib dictionary for packet compression
|
||||
|
|
11
packages/core/flate.js
Normal file
11
packages/core/flate.js
Normal file
|
@ -0,0 +1,11 @@
|
|||
import {deflateSync, inflateSync} from 'zlib';
|
||||
|
||||
export function inflate(buffer) {
|
||||
return inflateSync(buffer);
|
||||
}
|
||||
|
||||
export function deflate(buffer) {
|
||||
return deflateSync(buffer, {
|
||||
level: 9,
|
||||
});
|
||||
}
|
|
@ -120,4 +120,5 @@ export {
|
|||
mergeDiffPrimitive,
|
||||
} from './merge-diff';
|
||||
export {fastApply} from './fast-apply';
|
||||
export {inflate, deflate} from './flate';
|
||||
export {PropertyMixin as Property} from './property';
|
||||
|
|
Loading…
Reference in New Issue
Block a user