es-git 0.0.12 → 0.1.0

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/index.js CHANGED
@@ -310,9 +310,21 @@ if (!nativeBinding) {
310
310
  throw new Error(`Failed to load native binding`)
311
311
  }
312
312
 
313
- const { Commit, DiffFlags, diffFlagsContains, DeltaType, DiffFormat, Diff, DiffStats, Deltas, DiffDelta, FileMode, DiffFile, IndexStage, Index, IndexEntries, ObjectType, GitObject, isValidOid, isZeroOid, zeroOid, hashObjectOid, hashFileOid, ReferenceType, Reference, isReferenceNameValid, ReferenceFormat, normalizeReferenceName, Direction, CredentialType, FetchPrune, AutotagOption, RemoteRedirect, Remote, RepositoryState, RepositoryOpenFlags, Repository, initRepository, openRepository, discoverRepository, cloneRepository, RevparseMode, revparseModeContains, RevwalkSort, Revwalk, createSignature, isValidTagName, Tag, TreeWalkMode, Tree, TreeIter, TreeEntry } = nativeBinding
313
+ const { Blob, Commit, ConfigLevel, ConfigEntries, Config, openConfig, openDefaultConfig, findGlobalConfigPath, findSystemConfigPath, findXdgConfigPath, parseConfigBool, parseConfigI32, parseConfigI64, DiffFlags, diffFlagsContains, DeltaType, DiffFormat, Diff, DiffStats, Deltas, DiffDelta, FileMode, DiffFile, IndexStage, Index, IndexEntries, ObjectType, GitObject, isValidOid, isZeroOid, zeroOid, hashObjectOid, hashFileOid, ReferenceType, Reference, isValidReferenceName, ReferenceFormat, normalizeReferenceName, Direction, CredentialType, FetchPrune, AutotagOption, RemoteRedirect, Remote, RepositoryState, RepositoryInitMode, Repository, initRepository, openRepository, discoverRepository, cloneRepository, RevparseMode, revparseModeContains, RevwalkSort, Revwalk, createSignature, isValidTagName, Tag, TreeWalkMode, Tree, TreeIter, TreeEntry } = nativeBinding
314
314
 
315
+ module.exports.Blob = Blob
315
316
  module.exports.Commit = Commit
317
+ module.exports.ConfigLevel = ConfigLevel
318
+ module.exports.ConfigEntries = ConfigEntries
319
+ module.exports.Config = Config
320
+ module.exports.openConfig = openConfig
321
+ module.exports.openDefaultConfig = openDefaultConfig
322
+ module.exports.findGlobalConfigPath = findGlobalConfigPath
323
+ module.exports.findSystemConfigPath = findSystemConfigPath
324
+ module.exports.findXdgConfigPath = findXdgConfigPath
325
+ module.exports.parseConfigBool = parseConfigBool
326
+ module.exports.parseConfigI32 = parseConfigI32
327
+ module.exports.parseConfigI64 = parseConfigI64
316
328
  module.exports.DiffFlags = DiffFlags
317
329
  module.exports.diffFlagsContains = diffFlagsContains
318
330
  module.exports.DeltaType = DeltaType
@@ -335,7 +347,7 @@ module.exports.hashObjectOid = hashObjectOid
335
347
  module.exports.hashFileOid = hashFileOid
336
348
  module.exports.ReferenceType = ReferenceType
337
349
  module.exports.Reference = Reference
338
- module.exports.isReferenceNameValid = isReferenceNameValid
350
+ module.exports.isValidReferenceName = isValidReferenceName
339
351
  module.exports.ReferenceFormat = ReferenceFormat
340
352
  module.exports.normalizeReferenceName = normalizeReferenceName
341
353
  module.exports.Direction = Direction
@@ -345,7 +357,7 @@ module.exports.AutotagOption = AutotagOption
345
357
  module.exports.RemoteRedirect = RemoteRedirect
346
358
  module.exports.Remote = Remote
347
359
  module.exports.RepositoryState = RepositoryState
348
- module.exports.RepositoryOpenFlags = RepositoryOpenFlags
360
+ module.exports.RepositoryInitMode = RepositoryInitMode
349
361
  module.exports.Repository = Repository
350
362
  module.exports.initRepository = initRepository
351
363
  module.exports.openRepository = openRepository
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "es-git",
3
- "version": "0.0.12",
3
+ "version": "0.1.0",
4
4
  "main": "index.js",
5
5
  "types": "index.d.ts",
6
6
  "files": [
@@ -28,15 +28,16 @@
28
28
  }
29
29
  },
30
30
  "engines": {
31
- "node": ">= 10.7.0"
31
+ "node": ">= 10.20.0"
32
32
  },
33
33
  "workspaces": [
34
- "docs"
34
+ "docs",
35
+ "benchmarks"
35
36
  ],
36
37
  "scripts": {
37
38
  "prepublishOnly": "napi prepublish -t npm",
38
- "build": "napi build --platform --release --pipe=\"yarn transform:dts\"",
39
- "build:debug": "napi build --platform --pipe=\"yarn transform:dts\"",
39
+ "build": "napi build --platform --release --no-const-enum --pipe=\"yarn transform:dts\"",
40
+ "build:debug": "DEBUG=\"napi:*\" napi build --platform --no-const-enum --pipe=\"yarn transform:dts\"",
40
41
  "transform:dts": "jscodeshift -t transforms/dts.mjs index.d.ts",
41
42
  "check": "biome check",
42
43
  "check:fix": "biome check --write --unsafe"
@@ -48,7 +49,14 @@
48
49
  "@types/node": "^22.8.4",
49
50
  "fast-glob": "^3.3.3",
50
51
  "jscodeshift": "^17.1.2",
51
- "typescript": "5.7.3",
52
+ "typescript": "5.8.2",
52
53
  "vitest": "^3.0.5"
54
+ },
55
+ "optionalDependencies": {
56
+ "es-git-darwin-x64": "0.1.0",
57
+ "es-git-darwin-arm64": "0.1.0",
58
+ "es-git-win32-x64-msvc": "0.1.0",
59
+ "es-git-linux-x64-gnu": "0.1.0",
60
+ "es-git-linux-x64-musl": "0.1.0"
53
61
  }
54
62
  }
package/CHANGELOG.md DELETED
@@ -1 +0,0 @@
1
- # Changelog