+170
-117
lines changedFilter options
+170
-117
lines changed Original file line number Diff line number Diff line change
@@ -72,6 +72,8 @@ At the time of writing, the following breaking changes are planned:
72
72
- [ ] Make sure that the payload output of `readTag` and `readCommit` is newline-correct to easily verify. Then remove the `verify` command.
73
73
- [x] Make sure all the example code works.
74
74
- [x] Update the Getting Started guide.
75
+
- [ ] Update the WebWorker Guide.
76
+
- [ ] Update the Useful Snippets.
75
77
76
78
## Getting Started
77
79
@@ -100,12 +102,12 @@ const fs = new LightningFS('fs')
100
102
</script>
101
103
```
102
104
103
-
If you're using ES module syntax, use either a namespace import or named imports to benefit from tree-shaking:
105
+
If you're using ES module syntax, you can use either the default import or named imports to benefit from tree-shaking:
104
106
105
107
```js
106
-
import * as git from 'isomorphic-git'
108
+
import git from 'isomorphic-git'
107
109
// or
108
-
import {plugins, clone, commit, push} from 'isomorphic-git
110
+
import {plugins, clone, commit, push} from 'isomorphic-git'
109
111
```
110
112
111
113
View the full [Getting Started guide](https://isomorphic-git.github.io/docs/quickstart.html) on the docs website.
@@ -150,9 +152,9 @@ In the package.json you'll see there are actually 3 different versions:
150
152
151
153
This deserves a brief explanation.
152
154
153
-
- the "main" version is for node.
154
-
- the "module" version is for webpack or other browser bundlers.
155
-
- the "unpkg" version is the UMD build.
155
+
- the "main" version is a CommonJS build
156
+
- the "module" version is an ES Module build
157
+
- the "unpkg" version is a minified UMD build with dependencies already bundled
156
158
157
159
### `isogit` CLI
158
160
Original file line number Diff line number Diff line change
@@ -15,6 +15,7 @@ Array [
15
15
"clone",
16
16
"commit",
17
17
"currentBranch",
18
+
"default",
18
19
"deleteBranch",
19
20
"deleteRef",
20
21
"deleteRemote",
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
1
1
/* eslint-env node, browser, jasmine */
2
+
import http from 'isomorphic-git/http'
3
+
2
4
const { makeFixture } = require('./__helpers__/FixtureFS.js')
3
5
4
6
const { clone } = require('isomorphic-git')
5
-
const { http } = require('isomorphic-git/http')
6
7
7
8
// this is so it works with either Node local tests or Browser WAN tests
8
9
const localhost =
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
1
1
/* eslint-env node, browser, jasmine */
2
+
import http from 'isomorphic-git/http'
3
+
2
4
const { makeFixture } = require('./__helpers__/FixtureFS.js')
3
5
4
6
const { sleep } = require('isomorphic-git/internal-apis')
5
-
const { http } = require('isomorphic-git/http')
6
7
const { E, setConfig, fetch } = require('isomorphic-git')
7
8
8
9
// this is so it works with either Node local tests or Browser WAN tests
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
1
1
/* eslint-env node, browser, jasmine */
2
+
import http from 'isomorphic-git/http'
3
+
2
4
// @ts-ignore
3
5
const snapshots = require('./__snapshots__/test-getRemoteInfo.js.snap')
4
6
const registerSnapshots = require('./__helpers__/jasmine-snapshots')
5
7
const { E, getRemoteInfo } = require('isomorphic-git')
6
-
const { http } = require('isomorphic-git/http')
7
8
8
9
// this is so it works with either Node local tests or Browser WAN tests
9
10
const localhost =
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
1
1
/* eslint-env node, browser, jasmine */
2
+
import http from 'isomorphic-git/http'
3
+
2
4
const { makeFixture } = require('./__helpers__/FixtureFS.js')
3
5
4
6
const { fetch, push } = require('isomorphic-git')
5
-
const { http } = require('isomorphic-git/http')
6
7
7
8
// this is so it works with either Node local tests or Browser WAN tests
8
9
const localhost =
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
1
1
/* eslint-env node, browser, jasmine */
2
+
import http from 'isomorphic-git/http'
3
+
2
4
const { makeFixture } = require('./__helpers__/FixtureFS.js')
3
5
4
6
const { clone } = require('isomorphic-git')
5
-
const { http } = require('isomorphic-git/http')
6
7
7
8
// this is so it works with either Node local tests or Browser WAN tests
8
9
const localhost =
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
1
1
/* eslint-env node, browser, jasmine */
2
+
import http from 'isomorphic-git/http'
3
+
2
4
const { makeFixture } = require('./__helpers__/FixtureFS.js')
3
5
4
6
const { setConfig, push, E } = require('isomorphic-git')
5
-
const { http } = require('isomorphic-git/http')
6
7
7
8
// this is so it works with either Node local tests or Browser WAN tests
8
9
const localhost =
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
1
1
/* eslint-env node, browser, jasmine */
2
+
import http from 'isomorphic-git/http'
3
+
2
4
const { makeFixture } = require('./__helpers__/FixtureFS.js')
3
5
// @ts-ignore
4
6
const snapshots = require('./__snapshots__/test-push.js.snap')
5
7
const registerSnapshots = require('./__helpers__/jasmine-snapshots')
6
8
7
9
const { setConfig, push, listBranches } = require('isomorphic-git')
8
-
const { http } = require('isomorphic-git/http')
9
10
10
11
// this is so it works with either Node local tests or Browser WAN tests
11
12
const localhost =
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
1
1
/* eslint-env node, browser, jasmine */
2
+
import http from 'isomorphic-git/http'
3
+
2
4
const { makeFixture } = require('./__helpers__/FixtureFS.js')
3
5
4
6
const { clone, checkout, listFiles, commit } = require('isomorphic-git')
5
-
const { http } = require('isomorphic-git/http')
6
7
7
8
// this is so it works with either Node local tests or Browser WAN tests
8
9
const localhost =
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4