@teambit/objects 0.0.0-d4a7e44aa93980c597df6147719cb80b7a4fab1b → 0.0.0-dba64528286167c6e3ad315978703875d416e05c
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 +6 -5
- 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 +35 -35
- /package/dist/{preview-1752762490382.js → preview-1754995361790.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,63 +1,63 @@
|
|
1
1
|
{
|
2
2
|
"name": "@teambit/objects",
|
3
|
-
"version": "0.0.0-
|
3
|
+
"version": "0.0.0-dba64528286167c6e3ad315978703875d416e05c",
|
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": "dba64528286167c6e3ad315978703875d416e05c"
|
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",
|
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",
|
28
44
|
"@teambit/legacy-bit-id": "1.1.3",
|
29
|
-
"@teambit/
|
30
|
-
"@teambit/
|
31
|
-
"@teambit/legacy.
|
32
|
-
"@teambit/
|
33
|
-
"@teambit/
|
34
|
-
"@teambit/config-store": "0.0.0-1f27e4443a7ba34bfcbfd8d504f8a633ffa13434",
|
35
|
-
"@teambit/legacy.cli.error": "0.0.21",
|
36
|
-
"@teambit/legacy.constants": "0.0.12",
|
37
|
-
"@teambit/legacy.logger": "0.0.21",
|
38
|
-
"@teambit/legacy.scope": "0.0.55",
|
39
|
-
"@teambit/toolbox.crypto.sha1": "0.0.7",
|
40
|
-
"@teambit/component.sources": "0.0.107",
|
41
|
-
"@teambit/legacy-component-log": "0.0.407",
|
42
|
-
"@teambit/legacy.consumer-component": "0.0.56",
|
43
|
-
"@teambit/legacy.consumer-config": "0.0.55",
|
44
|
-
"@teambit/legacy.extension-data": "0.0.57",
|
45
|
-
"@teambit/pkg.modules.semver-helper": "0.0.11",
|
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",
|
46
50
|
"@teambit/toolbox.array.duplications-finder": "0.0.3",
|
47
|
-
"@teambit/bit.get-bit-version": "0.0.
|
48
|
-
"@teambit/semantics.doc-parser": "0.0.
|
49
|
-
"@teambit/graph": "0.0.0-
|
50
|
-
"@teambit/harmony.modules.concurrency": "0.0.13",
|
51
|
-
"@teambit/toolbox.promise.map-pool": "0.0.6",
|
52
|
-
"@teambit/harmony.modules.in-memory-cache": "0.0.14",
|
53
|
-
"@teambit/toolbox.fs.remove-empty-dir": "0.0.5"
|
51
|
+
"@teambit/bit.get-bit-version": "0.0.6",
|
52
|
+
"@teambit/semantics.doc-parser": "0.0.73",
|
53
|
+
"@teambit/graph": "0.0.0-a893c7afe20748c9b024bcdb2468da90c85647e6"
|
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
63
|
"chai": "5.2.1",
|
File without changes
|