@teambit/objects 0.0.0-a5b843d18f525f0529505c523353353140f78921 → 0.0.0-a9f25f0cec34dad43dbb54f764a23e23814cdefc
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/dist/models/dependencies-graph.d.ts +1 -1
- package/dist/models/dependencies-graph.js.map +1 -1
- package/dist/models/lane-history.d.ts +1 -1
- package/dist/models/lane-history.js.map +1 -1
- package/dist/models/lane.d.ts +4 -3
- package/dist/models/lane.js.map +1 -1
- package/dist/models/model-component.d.ts +10 -8
- package/dist/models/model-component.js.map +1 -1
- package/dist/models/scopeMeta.d.ts +1 -1
- package/dist/models/scopeMeta.js.map +1 -1
- package/dist/models/source.d.ts +2 -2
- package/dist/models/symlink.d.ts +1 -1
- package/dist/models/version-history.d.ts +1 -1
- package/dist/models/version-history.js.map +1 -1
- package/dist/models/version.d.ts +11 -9
- package/dist/models/version.js.map +1 -1
- package/dist/objects/bit-object-list.d.ts +1 -1
- package/dist/objects/bit-object-list.js.map +1 -1
- package/dist/objects/object-list-to-graph.d.ts +2 -2
- package/dist/objects/object-list-to-graph.js.map +1 -1
- package/dist/objects/object.d.ts +2 -2
- package/dist/objects/object.js.map +1 -1
- package/dist/objects/objects-readable-generator.d.ts +4 -4
- package/dist/objects/objects-readable-generator.js.map +1 -1
- package/dist/objects/raw-object.d.ts +2 -2
- package/dist/objects/raw-object.js.map +1 -1
- package/dist/objects/ref.d.ts +2 -2
- package/dist/objects/ref.js.map +1 -1
- package/dist/objects/repository-hooks.d.ts +1 -1
- package/dist/objects/repository-hooks.js.map +1 -1
- package/dist/objects/repository.d.ts +10 -7
- package/dist/objects/repository.js.map +1 -1
- package/dist/objects/scope-index.d.ts +2 -2
- package/dist/objects/scope-index.js.map +1 -1
- package/models/dependencies-graph.ts +1 -1
- package/models/lane-history.ts +1 -1
- package/models/lane.ts +4 -3
- package/models/model-component.ts +13 -10
- package/models/scopeMeta.ts +1 -1
- package/models/version-history.ts +1 -1
- package/models/version.ts +9 -6
- package/objects/bit-object-list.ts +1 -1
- package/objects/object-list-to-graph.ts +2 -2
- package/objects/object.ts +2 -2
- package/objects/objects-readable-generator.ts +6 -6
- package/objects/raw-object.ts +1 -1
- package/objects/ref.ts +2 -2
- package/objects/repository-hooks.ts +1 -1
- package/objects/repository.ts +13 -14
- package/objects/scope-index.ts +2 -2
- package/package.json +37 -37
- /package/dist/{preview-1753220530578.js → preview-1754998460308.js} +0 -0
package/objects/raw-object.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { NULL_BYTE, SPACE_DELIMITER } from '@teambit/legacy.constants';
|
2
2
|
import { getStringifyArgs, inflate } from '@teambit/legacy.utils';
|
3
3
|
import { typesObj as types } from '@teambit/legacy.scope';
|
4
|
-
import BitObject from './object';
|
4
|
+
import type BitObject from './object';
|
5
5
|
import { clone } from 'lodash';
|
6
6
|
|
7
7
|
export default class BitRawObject {
|
package/objects/ref.ts
CHANGED
package/objects/repository.ts
CHANGED
@@ -3,30 +3,29 @@ import uidNumber from 'uid-number';
|
|
3
3
|
import { Mutex } from 'async-mutex';
|
4
4
|
import { compact, uniqBy, differenceWith, isEqual } from 'lodash';
|
5
5
|
import { BitError } from '@teambit/bit-error';
|
6
|
-
import { ComponentID } from '@teambit/component-id';
|
6
|
+
import type { ComponentID } from '@teambit/component-id';
|
7
7
|
import { HASH_SIZE, isSnap } from '@teambit/component-version';
|
8
8
|
import * as path from 'path';
|
9
9
|
import { pMapPool } from '@teambit/toolbox.promise.map-pool';
|
10
10
|
import { OBJECTS_DIR } from '@teambit/legacy.constants';
|
11
11
|
import { logger } from '@teambit/legacy.logger';
|
12
|
-
import {
|
12
|
+
import type { ChownOptions, PathOsBasedAbsolute } from '@teambit/legacy.utils';
|
13
|
+
import { glob, writeFile } from '@teambit/legacy.utils';
|
13
14
|
import { removeEmptyDir } from '@teambit/toolbox.fs.remove-empty-dir';
|
14
15
|
import { concurrentIOLimit } from '@teambit/harmony.modules.concurrency';
|
15
|
-
import {
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
ScopeJson,
|
20
|
-
UnmergedComponents,
|
21
|
-
RemoteLanes,
|
22
|
-
} from '@teambit/legacy.scope';
|
23
|
-
import { ScopeIndex, IndexType, IndexItem } from './scope-index';
|
16
|
+
import type { Types, ScopeJson } from '@teambit/legacy.scope';
|
17
|
+
import { HashNotFound, OutdatedIndexJson, UnmergedComponents, RemoteLanes } from '@teambit/legacy.scope';
|
18
|
+
import type { IndexType, IndexItem } from './scope-index';
|
19
|
+
import { ScopeIndex } from './scope-index';
|
24
20
|
import BitObject from './object';
|
25
|
-
import { ObjectItem
|
21
|
+
import type { ObjectItem } from './object-list';
|
22
|
+
import { ObjectList } from './object-list';
|
26
23
|
import BitRawObject from './raw-object';
|
27
24
|
import Ref from './ref';
|
28
|
-
import { ContentTransformer
|
29
|
-
import {
|
25
|
+
import type { ContentTransformer } from './repository-hooks';
|
26
|
+
import { onPersist, onRead } from './repository-hooks';
|
27
|
+
import type { InMemoryCache } from '@teambit/harmony.modules.in-memory-cache';
|
28
|
+
import { getMaxSizeForObjects, createInMemoryCache } from '@teambit/harmony.modules.in-memory-cache';
|
30
29
|
import { ScopeMeta, Lane, ModelComponent } from '../models';
|
31
30
|
|
32
31
|
const OBJECTS_BACKUP_DIR = `${OBJECTS_DIR}.bak`;
|
package/objects/scope-index.ts
CHANGED
@@ -7,8 +7,8 @@ import { logger } from '@teambit/legacy.logger';
|
|
7
7
|
import { InvalidIndexJson } from '@teambit/legacy.scope';
|
8
8
|
import { ModelComponent, Symlink } from '../models';
|
9
9
|
import Lane from '../models/lane';
|
10
|
-
import BitObject from './object';
|
11
|
-
import Ref from './ref';
|
10
|
+
import type BitObject from './object';
|
11
|
+
import type Ref from './ref';
|
12
12
|
import { difference } from 'lodash';
|
13
13
|
|
14
14
|
const COMPONENTS_INDEX_FILENAME = 'index.json';
|
package/package.json
CHANGED
@@ -1,67 +1,67 @@
|
|
1
1
|
{
|
2
2
|
"name": "@teambit/objects",
|
3
|
-
"version": "0.0.0-
|
3
|
+
"version": "0.0.0-a9f25f0cec34dad43dbb54f764a23e23814cdefc",
|
4
4
|
"homepage": "https://bit.cloud/teambit/scope/objects",
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"componentId": {
|
7
7
|
"scope": "teambit.scope",
|
8
8
|
"name": "objects",
|
9
|
-
"version": "
|
9
|
+
"version": "a9f25f0cec34dad43dbb54f764a23e23814cdefc"
|
10
10
|
},
|
11
11
|
"dependencies": {
|
12
|
-
"@pnpm/dependency-path": "1001.0.1",
|
13
|
-
"@pnpm/lockfile.types": "^1001.0.8",
|
14
|
-
"semver": "7.7.1",
|
15
12
|
"lodash": "4.17.21",
|
16
|
-
"uuid": "8.3.2",
|
17
|
-
"async-mutex": "0.3.1",
|
18
|
-
"p-map-series": "2.1.0",
|
19
13
|
"tar-stream": "2.2.0",
|
14
|
+
"p-map-series": "2.1.0",
|
20
15
|
"is-relative-path": "2.0.0",
|
16
|
+
"async-mutex": "0.3.1",
|
21
17
|
"fs-extra": "10.0.0",
|
22
18
|
"uid-number": "0.0.6",
|
19
|
+
"@pnpm/dependency-path": "1001.1.0",
|
20
|
+
"@pnpm/lockfile.types": "^1002.0.0",
|
21
|
+
"semver": "7.7.1",
|
22
|
+
"uuid": "8.3.2",
|
23
23
|
"@teambit/harmony": "0.4.7",
|
24
|
+
"@teambit/cli": "0.0.1258",
|
24
25
|
"@teambit/component-id": "1.2.4",
|
26
|
+
"@teambit/component.snap-distance": "0.0.66",
|
27
|
+
"@teambit/graph.cleargraph": "0.0.11",
|
28
|
+
"@teambit/harmony.modules.concurrency": "0.0.15",
|
29
|
+
"@teambit/legacy.logger": "0.0.24",
|
30
|
+
"@teambit/legacy.scope": "0.0.65",
|
31
|
+
"@teambit/toolbox.promise.map-pool": "0.0.6",
|
32
|
+
"@teambit/legacy.constants": "0.0.14",
|
33
|
+
"@teambit/legacy.utils": "0.0.23",
|
34
|
+
"@teambit/toolbox.crypto.sha1": "0.0.7",
|
25
35
|
"@teambit/bit-error": "0.0.404",
|
26
36
|
"@teambit/component-version": "1.0.4",
|
37
|
+
"@teambit/harmony.modules.in-memory-cache": "0.0.17",
|
38
|
+
"@teambit/toolbox.fs.remove-empty-dir": "0.0.5",
|
27
39
|
"@teambit/lane-id": "0.0.312",
|
28
|
-
"@teambit/
|
40
|
+
"@teambit/harmony.modules.get-basic-log": "0.0.66",
|
41
|
+
"@teambit/config-store": "0.0.138",
|
42
|
+
"@teambit/legacy.cli.error": "0.0.24",
|
43
|
+
"@teambit/component.sources": "0.0.117",
|
29
44
|
"@teambit/legacy-bit-id": "1.1.3",
|
45
|
+
"@teambit/legacy-component-log": "0.0.408",
|
46
|
+
"@teambit/legacy.consumer-component": "0.0.66",
|
47
|
+
"@teambit/legacy.consumer-config": "0.0.65",
|
48
|
+
"@teambit/legacy.extension-data": "0.0.67",
|
49
|
+
"@teambit/pkg.modules.semver-helper": "0.0.13",
|
30
50
|
"@teambit/toolbox.array.duplications-finder": "0.0.3",
|
31
|
-
"@teambit/
|
32
|
-
"@teambit/
|
33
|
-
"@teambit/
|
34
|
-
"@teambit/cli": "0.0.0-ae5382ca79387782f52cb390e51e7bb72b4de1a9",
|
35
|
-
"@teambit/legacy.utils": "0.0.0-66a40bdda04e740ef260d2837207ba4d824831b0",
|
36
|
-
"@teambit/harmony.modules.get-basic-log": "0.0.0-179e24c39abf331e70e82b090e3883d001f36aa2",
|
37
|
-
"@teambit/component.snap-distance": "0.0.0-547ff0d4357a6cdac0ba259f711bf97b2523ac96",
|
38
|
-
"@teambit/config-store": "0.0.0-b50e2fca0569afeeffa68b80101b67cf1b15afa3",
|
39
|
-
"@teambit/legacy.cli.error": "0.0.0-07813b475d6f7ea157103f2ce9d80a79ec82196c",
|
40
|
-
"@teambit/legacy.constants": "0.0.0-781500b3b567aebdcfa398275e9462565f52cdc1",
|
41
|
-
"@teambit/legacy.logger": "0.0.0-9d003cc5e8782cbd9be828164ed5126a01142c88",
|
42
|
-
"@teambit/legacy.scope": "0.0.0-b7cc9d558c072d098ebf9faad076e471be800cbc",
|
43
|
-
"@teambit/component.sources": "0.0.0-157f593a3a5e8bd161201cf5b37c9de6792dff83",
|
44
|
-
"@teambit/legacy-component-log": "0.0.0-f6716c8dc19f82f28f24e0e3edb5ab7d583a7b8f",
|
45
|
-
"@teambit/legacy.consumer-component": "0.0.0-2aea412e4fd8e025ae49360ab4e638538e01a75e",
|
46
|
-
"@teambit/legacy.consumer-config": "0.0.0-dd6dcf5c4e2aeeda02090208f859be9dc8918a26",
|
47
|
-
"@teambit/legacy.extension-data": "0.0.0-8a0d8a4fcf14c011236b9bbee9c2c4c5f2710065",
|
48
|
-
"@teambit/pkg.modules.semver-helper": "0.0.0-5036991b47931681766c168aa3d4ae289eda78fe",
|
49
|
-
"@teambit/bit.get-bit-version": "0.0.0-9bcc597fb9b7139ebc6037ab585d8f701a2f7b19",
|
50
|
-
"@teambit/semantics.doc-parser": "0.0.0-662b61937f632cf2b7cae1d646c191499457aeac",
|
51
|
-
"@teambit/graph": "0.0.0-835425ddc60227c28b1a43520266946025b57d8f",
|
52
|
-
"@teambit/harmony.modules.concurrency": "0.0.0-8d798007a7d2e62b76c2db33c1c559bef0e752a3",
|
53
|
-
"@teambit/harmony.modules.in-memory-cache": "0.0.0-8449431a07ecc05fe3bf297481a94f110167e43a"
|
51
|
+
"@teambit/bit.get-bit-version": "0.0.6",
|
52
|
+
"@teambit/semantics.doc-parser": "0.0.73",
|
53
|
+
"@teambit/graph": "0.0.0-2702dfcb65dfde98d2dc5dbad6cfed10fbd2261f"
|
54
54
|
},
|
55
55
|
"devDependencies": {
|
56
|
-
"@types/semver": "7.5.8",
|
57
56
|
"@types/lodash": "4.14.165",
|
58
|
-
"@types/uuid": "8.3.4",
|
59
57
|
"@types/fs-extra": "9.0.7",
|
60
|
-
"@
|
58
|
+
"@types/semver": "7.5.8",
|
59
|
+
"@types/uuid": "8.3.4",
|
60
|
+
"@teambit/harmony.envs.core-aspect-env": "0.0.75"
|
61
61
|
},
|
62
62
|
"peerDependencies": {
|
63
|
-
"chai": "
|
64
|
-
"@types/chai": "
|
63
|
+
"chai": "5.2.1",
|
64
|
+
"@types/chai": "5.2.2"
|
65
65
|
},
|
66
66
|
"license": "Apache-2.0",
|
67
67
|
"optionalDependencies": {},
|
File without changes
|