Skip to content

Commit 8ac976c

Browse files
committed
📝 Add ^ to import package versions
1 parent 207e6b1 commit 8ac976c

12 files changed

+37
-37
lines changed

src/getting-started/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ $HOME
2222
Next, write the following TypeScript code in `main.ts`:
2323

2424
```typescript,title=denops/denops-getting-started/main.ts
25-
import type { Entrypoint } from "jsr:@denops/[email protected]";
25+
import type { Entrypoint } from "jsr:@denops/std@^7.0.0";
2626

2727
export const main: Entrypoint = (denops) => {
2828
denops.dispatcher = {

src/getting-started/explanation.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ easily call.
9191
In the Getting Started, we wrote the following code in the `main.ts` file:
9292

9393
```typescript
94-
import type { Entrypoint } from "jsr:@denops/[email protected]";
94+
import type { Entrypoint } from "jsr:@denops/std@^7.0.0";
9595

9696
export const main: Entrypoint = (denops) => {
9797
denops.dispatcher = {
@@ -107,7 +107,7 @@ Let's break down this code step by step.
107107
### About Imports
108108

109109
```typescript
110-
import type { Entrypoint } from "jsr:@denops/[email protected]";
110+
import type { Entrypoint } from "jsr:@denops/std@^7.0.0";
111111
```
112112

113113
The first line imports the `Entrypoint` type from the [@denops/std] standard
@@ -215,7 +215,7 @@ For example, use
215215
Vim's function instead of `denops.call` like:
216216

217217
```typescript
218-
import * as fn from "jsr:@denops/[email protected]/function";
218+
import * as fn from "jsr:@denops/std@^7.0.0/function";
219219

220220
// Bad (result1 is `unknown`)
221221
const result1 = await denops.call("expand", "%");

src/tutorial/helloworld/adding-an-api.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ Open `denops/denops-helloworld/main.ts` and rewrite the content with the
77
following code:
88

99
```typescript,title=denops/denops-helloworld/main.ts
10-
import type { Entrypoint } from "jsr:@denops/[email protected]";
11-
import { assert, is } from "jsr:@core/unknownutil@3.18.1";
10+
import type { Entrypoint } from "jsr:@denops/std@^7.0.0";
11+
import { assert, is } from "jsr:@core/unknownutil@^4.3.0";
1212

1313
export const main: Entrypoint = (denops) => {
1414
denops.dispatcher = {

src/tutorial/helloworld/calling-vim-features.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ the `denops` instance passed to the plugin's `main` function. You can rewrite
55
`main.ts` as follows to register the `DenopsHello` as a Vim command:
66

77
```typescript,title=denops/denops-helloworld/main.ts
8-
import type { Entrypoint } from "jsr:@denops/[email protected]";
9-
import { assert, is } from "jsr:@core/unknownutil@3.18.1";
8+
import type { Entrypoint } from "jsr:@denops/std@^7.0.0";
9+
import { assert, is } from "jsr:@core/unknownutil@^4.3.0";
1010

1111
export const main: Entrypoint = (denops) => {
1212
denops.dispatcher = {

src/tutorial/helloworld/creating-a-minimal-denops-plugin.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ denops-helloworld
3232
Here is the content of the `denops/denops-helloworld/main.ts` file:
3333

3434
```typescript,title=denops/denops-helloworld/main.ts
35-
import type { Entrypoint } from "jsr:@denops/[email protected]";
35+
import type { Entrypoint } from "jsr:@denops/std@^7.0.0";
3636

3737
export const main: Entrypoint = (denops) => {
3838
console.log("Hello, Denops from TypeScript!");

src/tutorial/maze/adjusting-maze-size-to-fit-the-window.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ Let's modify the plugin to ensure the generated maze fits the current window
88
size.
99

1010
```typescript,title=denops/denops-helloworld/main.ts
11-
import type { Entrypoint } from "jsr:@denops/[email protected]";
12-
import * as fn from "jsr:@denops/[email protected]/function";
13-
import { Maze } from "npm:@thewizardbear/[email protected]";
11+
import type { Entrypoint } from "jsr:@denops/std@^7.0.0";
12+
import * as fn from "jsr:@denops/std@^7.0.0/function";
13+
import { Maze } from "npm:@thewizardbear/maze_generator@^0.4.0";
1414

1515
export const main: Entrypoint = (denops) => {
1616
denops.dispatcher = {

src/tutorial/maze/creating-applicative-plugin.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@ opener, generate a maze that fits the current window size, configure the buffer
3333
options to make it non-file readonly buffer, etc.
3434

3535
```typescript,title=denops/denops-maze/main.ts
36-
import type { Entrypoint } from "jsr:@denops/[email protected]";
37-
import { batch, collect } from "jsr:@denops/[email protected]/batch";
38-
import * as fn from "jsr:@denops/[email protected]/function";
39-
import * as op from "jsr:@denops/[email protected]/option";
40-
import { Maze } from "npm:@thewizardbear/[email protected]";
41-
import { assert, is } from "jsr:@core/unknownutil@3.18.1";
36+
import type { Entrypoint } from "jsr:@denops/std@^7.0.0";
37+
import { batch, collect } from "jsr:@denops/std@^7.0.0/batch";
38+
import * as fn from "jsr:@denops/std@^7.0.0/function";
39+
import * as op from "jsr:@denops/std@^7.0.0/option";
40+
import { Maze } from "npm:@thewizardbear/maze_generator@^0.4.0";
41+
import { assert, is } from "jsr:@core/unknownutil@^4.3.0";
4242

4343
export const main: Entrypoint = (denops) => {
4444
denops.dispatcher = {

src/tutorial/maze/outputting-content-to-buffer.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ the maze to a buffer so that users can yank the maze with daily Vim operations!
77
Let's modify the code to make the generated maze output to a buffer.
88

99
```typescript,title=denops/denops-maze/main.ts
10-
import type { Entrypoint } from "jsr:@denops/[email protected]";
11-
import { Maze } from "npm:@thewizardbear/[email protected]";
10+
import type { Entrypoint } from "jsr:@denops/std@^7.0.0";
11+
import { Maze } from "npm:@thewizardbear/maze_generator@^0.4.0";
1212

1313
export const main: Entrypoint = (denops) => {
1414
denops.dispatcher = {

src/tutorial/maze/properly-configured-the-buffer.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ buffer after closure. Open the `main.ts` file and modify the `maze` method as
77
follows:
88

99
```typescript,title=denops/denops-maze/main.ts
10-
import type { Entrypoint } from "jsr:@denops/[email protected]";
11-
import * as buffer from "jsr:@denops/[email protected]/buffer";
12-
import * as fn from "jsr:@denops/[email protected]/function";
13-
import * as op from "jsr:@denops/[email protected]/option";
14-
import { Maze } from "npm:@thewizardbear/[email protected]";
10+
import type { Entrypoint } from "jsr:@denops/std@^7.0.0";
11+
import * as buffer from "jsr:@denops/std@^7.0.0/buffer";
12+
import * as fn from "jsr:@denops/std@^7.0.0/function";
13+
import * as op from "jsr:@denops/std@^7.0.0/option";
14+
import { Maze } from "npm:@thewizardbear/maze_generator@^0.4.0";
1515

1616
export const main: Entrypoint = (denops) => {
1717
denops.dispatcher = {

src/tutorial/maze/properly-create-a-virtual-buffer.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ proper virtual buffer that concretizes the buffer content. Let's modify the
1010
`main.ts` file as follows:
1111

1212
```typescript,title=denops/denops-maze/main.ts
13-
import type { Entrypoint } from "jsr:@denops/[email protected]";
14-
import * as buffer from "jsr:@denops/[email protected]/buffer";
15-
import * as fn from "jsr:@denops/[email protected]/function";
16-
import { Maze } from "npm:@thewizardbear/[email protected]";
13+
import type { Entrypoint } from "jsr:@denops/std@^7.0.0";
14+
import * as buffer from "jsr:@denops/std@^7.0.0/buffer";
15+
import * as fn from "jsr:@denops/std@^7.0.0/function";
16+
import { Maze } from "npm:@thewizardbear/maze_generator@^0.4.0";
1717

1818
export const main: Entrypoint = (denops) => {
1919
denops.dispatcher = {

src/tutorial/maze/reduce-the-number-of-rpc-calls.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ enhance performance by reducing the number of RPC calls using the `batch` module
66
from `@denops/std`. Let's revise the `main.ts` file as follows:
77

88
```typescript,title=denops/denops-maze/main.ts
9-
import type { Entrypoint } from "jsr:@denops/[email protected]";
10-
import { batch, collect } from "jsr:@denops/[email protected]/batch";
11-
import * as buffer from "jsr:@denops/[email protected]/buffer";
12-
import * as fn from "jsr:@denops/[email protected]/function";
13-
import * as op from "jsr:@denops/[email protected]/option";
14-
import { Maze } from "npm:@thewizardbear/[email protected]";
9+
import type { Entrypoint } from "jsr:@denops/std@^7.0.0";
10+
import { batch, collect } from "jsr:@denops/std@^7.0.0/batch";
11+
import * as buffer from "jsr:@denops/std@^7.0.0/buffer";
12+
import * as fn from "jsr:@denops/std@^7.0.0/function";
13+
import * as op from "jsr:@denops/std@^7.0.0/option";
14+
import { Maze } from "npm:@thewizardbear/maze_generator@^0.4.0";
1515

1616
export const main: Entrypoint = (denops) => {
1717
denops.dispatcher = {

src/tutorial/maze/utilizing-third-party-library.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ directory tree will look like this:
2929
The content of the `denops/denops-maze/main.ts` file will be:
3030

3131
```typescript,title=denops/denops-maze/main.ts
32-
import type { Entrypoint } from "jsr:@denops/[email protected]";
33-
import { Maze } from "npm:@thewizardbear/[email protected]";
32+
import type { Entrypoint } from "jsr:@denops/std@^7.0.0";
33+
import { Maze } from "npm:@thewizardbear/maze_generator@^0.4.0";
3434

3535
export const main: Entrypoint = (denops) => {
3636
denops.dispatcher = {

0 commit comments

Comments
 (0)