@teambit/objects 0.0.0-bc9f6b192a4bf179acfc31e4fe6c4b1d5e94d367 → 0.0.0-bce1ab681dd28b6813d809e288da40032f77e890
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 +25 -25
- /package/dist/{preview-1753215892993.js → preview-1754944634121.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,16 +1,16 @@
|
|
1
1
|
{
|
2
2
|
"name": "@teambit/objects",
|
3
|
-
"version": "0.0.0-
|
3
|
+
"version": "0.0.0-bce1ab681dd28b6813d809e288da40032f77e890",
|
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": "bce1ab681dd28b6813d809e288da40032f77e890"
|
10
10
|
},
|
11
11
|
"dependencies": {
|
12
|
-
"@pnpm/dependency-path": "1001.0
|
13
|
-
"@pnpm/lockfile.types": "^
|
12
|
+
"@pnpm/dependency-path": "1001.1.0",
|
13
|
+
"@pnpm/lockfile.types": "^1002.0.0",
|
14
14
|
"semver": "7.7.1",
|
15
15
|
"lodash": "4.17.21",
|
16
16
|
"uuid": "8.3.2",
|
@@ -22,42 +22,42 @@
|
|
22
22
|
"uid-number": "0.0.6",
|
23
23
|
"@teambit/harmony": "0.4.7",
|
24
24
|
"@teambit/component-id": "1.2.4",
|
25
|
+
"@teambit/legacy.utils": "0.0.23",
|
26
|
+
"@teambit/harmony.modules.get-basic-log": "0.0.66",
|
25
27
|
"@teambit/bit-error": "0.0.404",
|
26
28
|
"@teambit/component-version": "1.0.4",
|
29
|
+
"@teambit/component.snap-distance": "0.0.66",
|
27
30
|
"@teambit/lane-id": "0.0.312",
|
31
|
+
"@teambit/legacy.cli.error": "0.0.24",
|
32
|
+
"@teambit/legacy.constants": "0.0.14",
|
33
|
+
"@teambit/legacy.logger": "0.0.24",
|
34
|
+
"@teambit/legacy.scope": "0.0.65",
|
28
35
|
"@teambit/toolbox.crypto.sha1": "0.0.7",
|
36
|
+
"@teambit/component.sources": "0.0.117",
|
29
37
|
"@teambit/legacy-bit-id": "1.1.3",
|
38
|
+
"@teambit/legacy-component-log": "0.0.408",
|
39
|
+
"@teambit/legacy.consumer-component": "0.0.66",
|
40
|
+
"@teambit/legacy.consumer-config": "0.0.65",
|
41
|
+
"@teambit/legacy.extension-data": "0.0.67",
|
42
|
+
"@teambit/pkg.modules.semver-helper": "0.0.13",
|
30
43
|
"@teambit/toolbox.array.duplications-finder": "0.0.3",
|
31
44
|
"@teambit/graph.cleargraph": "0.0.11",
|
45
|
+
"@teambit/bit.get-bit-version": "0.0.6",
|
46
|
+
"@teambit/semantics.doc-parser": "0.0.73",
|
47
|
+
"@teambit/harmony.modules.concurrency": "0.0.15",
|
32
48
|
"@teambit/toolbox.promise.map-pool": "0.0.6",
|
49
|
+
"@teambit/harmony.modules.in-memory-cache": "0.0.17",
|
33
50
|
"@teambit/toolbox.fs.remove-empty-dir": "0.0.5",
|
34
|
-
"@teambit/cli": "0.0.0-
|
35
|
-
"@teambit/
|
36
|
-
"@teambit/
|
37
|
-
"@teambit/component.snap-distance": "0.0.0-69ea00fd5db3fe5c575108712471eed233882433",
|
38
|
-
"@teambit/config-store": "0.0.0-868769e3a546b4a5a8cf40ba3161a8a34d5c27f2",
|
39
|
-
"@teambit/legacy.cli.error": "0.0.0-95168ce44b07be07c2708ff8b6df3d18b9630603",
|
40
|
-
"@teambit/legacy.constants": "0.0.0-d9a21071eaedd2501387ff0eeb65c7b7c9964de9",
|
41
|
-
"@teambit/legacy.logger": "0.0.0-b0f7be9d93e177bbe63d9c999fbb5d62b5bb6424",
|
42
|
-
"@teambit/legacy.scope": "0.0.0-61c5f118c2879f0b4a00a395828e013b47b9f412",
|
43
|
-
"@teambit/component.sources": "0.0.0-23fa283610b4e3cf9b5cce281003686bc3b35796",
|
44
|
-
"@teambit/legacy-component-log": "0.0.0-51340dd329146ba9378400938872a3644f927818",
|
45
|
-
"@teambit/legacy.consumer-component": "0.0.0-cf7dc83df6836d547b42c488ea651d7fc599fc78",
|
46
|
-
"@teambit/legacy.consumer-config": "0.0.0-774c63a0f3ee5c249e4398c33b326013cac88f90",
|
47
|
-
"@teambit/legacy.extension-data": "0.0.0-fdf611061e01718aca7de2bcd2859b7048783f5b",
|
48
|
-
"@teambit/pkg.modules.semver-helper": "0.0.0-7d64d530ac606f7a9dfca47123b40cb50da7c146",
|
49
|
-
"@teambit/bit.get-bit-version": "0.0.0-ab75920341b549fe07be7cea8039a5a10c606929",
|
50
|
-
"@teambit/semantics.doc-parser": "0.0.0-0919051713706195cdbc7742efce5c129c7ad62d",
|
51
|
-
"@teambit/graph": "0.0.0-31dc1f684fb76a9de83a17d5db5e6d9db7ba294f",
|
52
|
-
"@teambit/harmony.modules.concurrency": "0.0.0-5b0ff2a63cfe84d4857c51167398fa9fc3c1fc33",
|
53
|
-
"@teambit/harmony.modules.in-memory-cache": "0.0.0-2e7982e3cc12c0723ab04360e97ddab6a02f4c59"
|
51
|
+
"@teambit/cli": "0.0.0-6da0146ab673bd771550b1487f10e215e28b7993",
|
52
|
+
"@teambit/config-store": "0.0.0-b8fc8a287a3da70de4ac719105ef6eb8673dce59",
|
53
|
+
"@teambit/graph": "0.0.0-4b48109c605137d67c272b9fe668f5477e3c8820"
|
54
54
|
},
|
55
55
|
"devDependencies": {
|
56
56
|
"@types/semver": "7.5.8",
|
57
57
|
"@types/lodash": "4.14.165",
|
58
58
|
"@types/uuid": "8.3.4",
|
59
59
|
"@types/fs-extra": "9.0.7",
|
60
|
-
"@teambit/harmony.envs.core-aspect-env": "0.0.
|
60
|
+
"@teambit/harmony.envs.core-aspect-env": "0.0.75"
|
61
61
|
},
|
62
62
|
"peerDependencies": {
|
63
63
|
"chai": "5.2.1",
|
File without changes
|