Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Crowdin updates #45

Merged
merged 241 commits into from
Jan 28, 2022
Merged
Changes from 1 commit
Commits
Show all changes
241 commits
Select commit Hold shift + click to select a range
ec3e2c9
New translations introduction.mdx (Spanish)
benface Jan 28, 2022
26e6d71
New translations deprecating-a-subgraph.mdx (Arabic)
benface Jan 28, 2022
1dd4ae2
New translations create-subgraph-hosted.mdx (Chinese Simplified)
benface Jan 28, 2022
170a0a4
New translations define-subgraph-hosted.mdx (Spanish)
benface Jan 28, 2022
dea722e
New translations define-subgraph-hosted.mdx (Arabic)
benface Jan 28, 2022
8577227
New translations define-subgraph-hosted.mdx (Chinese Simplified)
benface Jan 28, 2022
0ef1671
New translations deprecating-a-subgraph.mdx (Spanish)
benface Jan 28, 2022
ebf87cc
New translations developer-faq.mdx (Spanish)
benface Jan 28, 2022
f707b62
New translations developer-faq.mdx (Arabic)
benface Jan 28, 2022
15535f8
New translations distributed-systems.mdx (Spanish)
benface Jan 28, 2022
93b21e9
New translations create-subgraph-hosted.mdx (Arabic)
benface Jan 28, 2022
a65040f
New translations introduction.mdx (Arabic)
benface Jan 28, 2022
cab9d0e
New translations assemblyscript-api.mdx (Spanish)
benface Jan 28, 2022
ccf531f
New translations introduction.mdx (Japanese)
benface Jan 28, 2022
5b124c8
New translations introduction.mdx (Korean)
benface Jan 28, 2022
25bdd2f
New translations introduction.mdx (Chinese Simplified)
benface Jan 28, 2022
989964d
New translations network.mdx (Spanish)
benface Jan 28, 2022
6b6da91
New translations network.mdx (Arabic)
benface Jan 28, 2022
ec651c7
New translations network.mdx (Japanese)
benface Jan 28, 2022
36c218c
New translations network.mdx (Korean)
benface Jan 28, 2022
282c9e2
New translations network.mdx (Chinese Simplified)
benface Jan 28, 2022
85688d0
New translations assemblyscript-api.mdx (Arabic)
benface Jan 28, 2022
d47442e
New translations create-subgraph-hosted.mdx (Spanish)
benface Jan 28, 2022
197165d
New translations assemblyscript-api.mdx (Japanese)
benface Jan 28, 2022
5d5db48
New translations assemblyscript-api.mdx (Korean)
benface Jan 28, 2022
21fea9b
New translations assemblyscript-api.mdx (Chinese Simplified)
benface Jan 28, 2022
d3ebcba
New translations assemblyscript-api.mdx (Vietnamese)
benface Jan 28, 2022
d09ce0d
New translations assemblyscript-migration-guide.mdx (Spanish)
benface Jan 28, 2022
78de9ff
New translations assemblyscript-migration-guide.mdx (Arabic)
benface Jan 28, 2022
63122a7
New translations assemblyscript-migration-guide.mdx (Japanese)
benface Jan 28, 2022
5e5ce94
New translations distributed-systems.mdx (Arabic)
benface Jan 28, 2022
52e7f75
New translations querying-from-your-app.mdx (Spanish)
benface Jan 28, 2022
fe94fb9
New translations querying-from-your-app.mdx (Arabic)
benface Jan 28, 2022
8134f9c
New translations querying-from-your-app.mdx (Japanese)
benface Jan 28, 2022
d3dfab9
New translations querying-from-your-app.mdx (Chinese Simplified)
benface Jan 28, 2022
24da222
New translations quick-start.mdx (Spanish)
benface Jan 28, 2022
31b8bab
New translations quick-start.mdx (Arabic)
benface Jan 28, 2022
a219b74
New translations quick-start.mdx (Japanese)
benface Jan 28, 2022
f1f39d5
New translations quick-start.mdx (Chinese Simplified)
benface Jan 28, 2022
3285b49
New translations deploy-subgraph-hosted.mdx (Spanish)
benface Jan 28, 2022
4603efc
New translations deploy-subgraph-hosted.mdx (Chinese Simplified)
benface Jan 28, 2022
03f80a1
New translations migrating-subgraph.mdx (Spanish)
benface Jan 28, 2022
160020f
New translations migrating-subgraph.mdx (Arabic)
benface Jan 28, 2022
6408863
New translations migrating-subgraph.mdx (Japanese)
benface Jan 28, 2022
1f8e6c0
New translations graphql-api.mdx (Spanish)
benface Jan 28, 2022
a0c0e82
New translations graphql-api.mdx (Arabic)
benface Jan 28, 2022
45e1889
New translations matchstick.mdx (Spanish)
benface Jan 28, 2022
6238d9d
New translations query-the-graph.mdx (Japanese)
benface Jan 28, 2022
35cd593
New translations publish-subgraph.mdx (Spanish)
benface Jan 28, 2022
ee4bcea
New translations publish-subgraph.mdx (Arabic)
benface Jan 28, 2022
6247598
New translations publish-subgraph.mdx (Japanese)
benface Jan 28, 2022
065243a
New translations query-the-graph.mdx (Spanish)
benface Jan 28, 2022
3f03bb7
New translations query-the-graph.mdx (Arabic)
benface Jan 28, 2022
d078359
New translations migrating-subgraph.mdx (Korean)
benface Jan 28, 2022
5878b14
New translations migrating-subgraph.mdx (Chinese Simplified)
benface Jan 28, 2022
e2dee83
New translations studio-faq.mdx (Spanish)
benface Jan 28, 2022
6a4c619
New translations studio-faq.mdx (Arabic)
benface Jan 28, 2022
ab408f4
New translations studio-faq.mdx (Chinese Simplified)
benface Jan 28, 2022
48d3e23
New translations subgraph-studio.mdx (Spanish)
benface Jan 28, 2022
96ab0f0
New translations multisig.mdx (Spanish)
benface Jan 28, 2022
31f9002
New translations subgraph-studio.mdx (Arabic)
benface Jan 28, 2022
002878a
New translations subgraph-studio.mdx (Japanese)
benface Jan 28, 2022
7e98665
New translations subgraph-studio.mdx (Korean)
benface Jan 28, 2022
05e195f
New translations near.mdx (Spanish)
benface Jan 28, 2022
761b1db
New translations near.mdx (Arabic)
benface Jan 28, 2022
e7f5ab5
New translations near.mdx (Japanese)
benface Jan 28, 2022
3ca823d
New translations near.mdx (Chinese Simplified)
benface Jan 28, 2022
9984764
New translations multisig.mdx (Arabic)
benface Jan 28, 2022
20ad069
New translations what-is-hosted-service.mdx (Chinese Simplified)
benface Jan 28, 2022
671100b
New translations query-hosted-service.mdx (Spanish)
benface Jan 28, 2022
cbd90c2
New translations query-hosted-service.mdx (Arabic)
benface Jan 28, 2022
19c0e4c
New translations query-hosted-service.mdx (Japanese)
benface Jan 28, 2022
e76a7ac
New translations query-hosted-service.mdx (Chinese Simplified)
benface Jan 28, 2022
3889653
New translations what-is-hosted-service.mdx (Spanish)
benface Jan 28, 2022
0bdcabd
New translations what-is-hosted-service.mdx (Arabic)
benface Jan 28, 2022
c10296e
New translations deploy-subgraph-studio.mdx (Chinese Simplified)
benface Jan 28, 2022
7821957
New translations billing.mdx (Spanish)
benface Jan 28, 2022
4a287ec
New translations billing.mdx (Arabic)
benface Jan 28, 2022
407c6f8
New translations billing.mdx (Japanese)
benface Jan 28, 2022
ec99bb8
New translations billing.mdx (Korean)
benface Jan 28, 2022
29f959b
New translations billing.mdx (Chinese Simplified)
benface Jan 28, 2022
d5735f7
New translations deploy-subgraph-studio.mdx (Spanish)
benface Jan 28, 2022
6bf670d
New translations deploy-subgraph-studio.mdx (Arabic)
benface Jan 28, 2022
7ccd5ac
New translations deploy-subgraph-studio.mdx (Japanese)
benface Jan 28, 2022
e27d451
New translations curating.mdx (Spanish)
benface Jan 28, 2022
4a81b7c
New translations global.json (Korean)
benface Jan 28, 2022
9ef6a50
New translations indexing.mdx (Korean)
benface Jan 28, 2022
a4e09b7
New translations indexing.mdx (Chinese Simplified)
benface Jan 28, 2022
2badd32
New translations indexing.mdx (Vietnamese)
benface Jan 28, 2022
05963d3
New translations global.json (Spanish)
benface Jan 28, 2022
108420b
New translations global.json (Arabic)
benface Jan 28, 2022
ceb2038
New translations global.json (Japanese)
benface Jan 28, 2022
a09d6b4
New translations global.json (Chinese Simplified)
benface Jan 28, 2022
c6c747b
New translations indexing.mdx (Arabic)
benface Jan 28, 2022
5c3fc98
New translations global.json (Vietnamese)
benface Jan 28, 2022
e0aea28
New translations index.json (Spanish)
benface Jan 28, 2022
dc722bd
New translations index.json (Arabic)
benface Jan 28, 2022
3fcd76f
New translations index.json (Japanese)
benface Jan 28, 2022
6536724
New translations index.json (Korean)
benface Jan 28, 2022
61ccf03
New translations index.json (Chinese Simplified)
benface Jan 28, 2022
26281bc
New translations indexing.mdx (Japanese)
benface Jan 28, 2022
cf5d9e0
New translations indexing.mdx (Spanish)
benface Jan 28, 2022
cd55414
New translations curating.mdx (Arabic)
benface Jan 28, 2022
b82e8a8
New translations delegating.mdx (Japanese)
benface Jan 28, 2022
7ce8353
New translations curating.mdx (Japanese)
benface Jan 28, 2022
67a7899
New translations curating.mdx (Korean)
benface Jan 28, 2022
dbc8e35
New translations curating.mdx (Chinese Simplified)
benface Jan 28, 2022
73bb4fa
New translations curating.mdx (Vietnamese)
benface Jan 28, 2022
b0fbbde
New translations delegating.mdx (Spanish)
benface Jan 28, 2022
7883b0a
New translations delegating.mdx (Arabic)
benface Jan 28, 2022
19bfcf5
New translations delegating.mdx (Korean)
benface Jan 28, 2022
d2b8a55
New translations explorer.mdx (Vietnamese)
benface Jan 28, 2022
c4f1bbc
New translations delegating.mdx (Chinese Simplified)
benface Jan 28, 2022
5655721
New translations delegating.mdx (Vietnamese)
benface Jan 28, 2022
4724abd
New translations explorer.mdx (Spanish)
benface Jan 28, 2022
b0406d1
New translations explorer.mdx (Arabic)
benface Jan 28, 2022
93728d9
New translations explorer.mdx (Japanese)
benface Jan 28, 2022
c729e9b
New translations explorer.mdx (Korean)
benface Jan 28, 2022
2c78d44
New translations explorer.mdx (Chinese Simplified)
benface Jan 28, 2022
ca70c53
New translations index.json (Vietnamese)
benface Jan 28, 2022
38f618b
New translations introduction.mdx (Spanish)
benface Jan 28, 2022
bdd4d1f
New translations deprecating-a-subgraph.mdx (Arabic)
benface Jan 28, 2022
70f9eac
New translations define-subgraph-hosted.mdx (Spanish)
benface Jan 28, 2022
6189f2a
New translations define-subgraph-hosted.mdx (Arabic)
benface Jan 28, 2022
28a1201
New translations define-subgraph-hosted.mdx (Chinese Simplified)
benface Jan 28, 2022
ccf4766
New translations deprecating-a-subgraph.mdx (Spanish)
benface Jan 28, 2022
e38f841
New translations developer-faq.mdx (Spanish)
benface Jan 28, 2022
911af3c
New translations developer-faq.mdx (Arabic)
benface Jan 28, 2022
f390bd5
New translations distributed-systems.mdx (Spanish)
benface Jan 28, 2022
ba4fe29
New translations create-subgraph-hosted.mdx (Arabic)
benface Jan 28, 2022
54a4edb
New translations introduction.mdx (Arabic)
benface Jan 28, 2022
4c01b9b
New translations assemblyscript-api.mdx (Spanish)
benface Jan 28, 2022
aa19d1f
New translations introduction.mdx (Japanese)
benface Jan 28, 2022
6c0bf13
New translations introduction.mdx (Korean)
benface Jan 28, 2022
0ea5389
New translations introduction.mdx (Chinese Simplified)
benface Jan 28, 2022
03d8e73
New translations network.mdx (Spanish)
benface Jan 28, 2022
7f63f75
New translations network.mdx (Arabic)
benface Jan 28, 2022
808a99d
New translations network.mdx (Japanese)
benface Jan 28, 2022
65fb905
New translations network.mdx (Korean)
benface Jan 28, 2022
fa3f99c
New translations network.mdx (Chinese Simplified)
benface Jan 28, 2022
4322fc0
New translations assemblyscript-api.mdx (Arabic)
benface Jan 28, 2022
87db43c
New translations create-subgraph-hosted.mdx (Spanish)
benface Jan 28, 2022
fcad7dc
New translations assemblyscript-api.mdx (Japanese)
benface Jan 28, 2022
5435dcd
New translations assemblyscript-api.mdx (Korean)
benface Jan 28, 2022
dece50a
New translations assemblyscript-api.mdx (Chinese Simplified)
benface Jan 28, 2022
bba234f
New translations assemblyscript-api.mdx (Vietnamese)
benface Jan 28, 2022
4af6e9a
New translations assemblyscript-migration-guide.mdx (Spanish)
benface Jan 28, 2022
58bec46
New translations assemblyscript-migration-guide.mdx (Arabic)
benface Jan 28, 2022
7047923
New translations assemblyscript-migration-guide.mdx (Japanese)
benface Jan 28, 2022
af8d1d9
New translations distributed-systems.mdx (Arabic)
benface Jan 28, 2022
b9f78b7
New translations querying-from-your-app.mdx (Spanish)
benface Jan 28, 2022
6f12ab4
New translations querying-from-your-app.mdx (Arabic)
benface Jan 28, 2022
e04a1b8
New translations querying-from-your-app.mdx (Japanese)
benface Jan 28, 2022
ef3d31a
New translations quick-start.mdx (Spanish)
benface Jan 28, 2022
7b999bf
New translations quick-start.mdx (Arabic)
benface Jan 28, 2022
935587b
New translations quick-start.mdx (Japanese)
benface Jan 28, 2022
d287b5b
New translations quick-start.mdx (Chinese Simplified)
benface Jan 28, 2022
78ffa16
New translations deploy-subgraph-hosted.mdx (Spanish)
benface Jan 28, 2022
14edfba
New translations deploy-subgraph-hosted.mdx (Chinese Simplified)
benface Jan 28, 2022
622c6ef
New translations migrating-subgraph.mdx (Spanish)
benface Jan 28, 2022
f6b6f80
New translations migrating-subgraph.mdx (Arabic)
benface Jan 28, 2022
9c5f97e
New translations migrating-subgraph.mdx (Japanese)
benface Jan 28, 2022
923e28e
New translations graphql-api.mdx (Spanish)
benface Jan 28, 2022
90b0c8f
New translations graphql-api.mdx (Arabic)
benface Jan 28, 2022
cd6c1a8
New translations matchstick.mdx (Spanish)
benface Jan 28, 2022
c3ee41f
New translations query-the-graph.mdx (Japanese)
benface Jan 28, 2022
c75b306
New translations publish-subgraph.mdx (Spanish)
benface Jan 28, 2022
2b2417a
New translations publish-subgraph.mdx (Arabic)
benface Jan 28, 2022
6c4da9a
New translations publish-subgraph.mdx (Japanese)
benface Jan 28, 2022
49928c1
New translations query-the-graph.mdx (Spanish)
benface Jan 28, 2022
2de0702
New translations query-the-graph.mdx (Arabic)
benface Jan 28, 2022
749b422
New translations migrating-subgraph.mdx (Korean)
benface Jan 28, 2022
53993e1
New translations migrating-subgraph.mdx (Chinese Simplified)
benface Jan 28, 2022
17ebcb1
New translations studio-faq.mdx (Spanish)
benface Jan 28, 2022
d5a7527
New translations studio-faq.mdx (Arabic)
benface Jan 28, 2022
76245fc
New translations studio-faq.mdx (Chinese Simplified)
benface Jan 28, 2022
87926c1
New translations subgraph-studio.mdx (Spanish)
benface Jan 28, 2022
90ebb9b
New translations multisig.mdx (Spanish)
benface Jan 28, 2022
8a7a4fc
New translations subgraph-studio.mdx (Arabic)
benface Jan 28, 2022
17c5d12
New translations subgraph-studio.mdx (Japanese)
benface Jan 28, 2022
e84d445
New translations subgraph-studio.mdx (Korean)
benface Jan 28, 2022
48a36e5
New translations subgraph-studio.mdx (Vietnamese)
benface Jan 28, 2022
fe66603
New translations near.mdx (Spanish)
benface Jan 28, 2022
7b3abc5
New translations near.mdx (Arabic)
benface Jan 28, 2022
58e2a3f
New translations near.mdx (Japanese)
benface Jan 28, 2022
d1988e9
New translations near.mdx (Chinese Simplified)
benface Jan 28, 2022
1fe4862
New translations multisig.mdx (Arabic)
benface Jan 28, 2022
d3702e0
New translations migrating-subgraph.mdx (Vietnamese)
benface Jan 28, 2022
2e0a5c9
New translations what-is-hosted-service.mdx (Chinese Simplified)
benface Jan 28, 2022
3394056
New translations query-hosted-service.mdx (Spanish)
benface Jan 28, 2022
ec9bcad
New translations query-hosted-service.mdx (Arabic)
benface Jan 28, 2022
95465b0
New translations query-hosted-service.mdx (Japanese)
benface Jan 28, 2022
b852350
New translations query-hosted-service.mdx (Chinese Simplified)
benface Jan 28, 2022
8e6f47a
New translations what-is-hosted-service.mdx (Spanish)
benface Jan 28, 2022
f2995f9
New translations what-is-hosted-service.mdx (Arabic)
benface Jan 28, 2022
dc0eed9
New translations deploy-subgraph-studio.mdx (Chinese Simplified)
benface Jan 28, 2022
7eea84f
New translations billing.mdx (Spanish)
benface Jan 28, 2022
1e29b04
New translations billing.mdx (Arabic)
benface Jan 28, 2022
0abe198
New translations billing.mdx (Japanese)
benface Jan 28, 2022
2afe541
New translations billing.mdx (Korean)
benface Jan 28, 2022
6f0ad89
New translations billing.mdx (Chinese Simplified)
benface Jan 28, 2022
90b7bfa
New translations billing.mdx (Vietnamese)
benface Jan 28, 2022
11e454f
New translations deploy-subgraph-studio.mdx (Spanish)
benface Jan 28, 2022
f73da74
New translations deploy-subgraph-studio.mdx (Arabic)
benface Jan 28, 2022
1d0aaeb
New translations deploy-subgraph-studio.mdx (Japanese)
benface Jan 28, 2022
294c08c
New translations near.mdx (Vietnamese)
benface Jan 28, 2022
37cbb86
New translations curating.mdx (Spanish)
benface Jan 28, 2022
58d7791
New translations global.json (Korean)
benface Jan 28, 2022
c9b1f73
New translations indexing.mdx (Korean)
benface Jan 28, 2022
9e8843d
New translations indexing.mdx (Chinese Simplified)
benface Jan 28, 2022
12c108d
New translations indexing.mdx (Vietnamese)
benface Jan 28, 2022
fe9bb9f
New translations global.json (Spanish)
benface Jan 28, 2022
bf2ca09
New translations global.json (Arabic)
benface Jan 28, 2022
dc177e6
New translations global.json (Japanese)
benface Jan 28, 2022
9ccc401
New translations global.json (Chinese Simplified)
benface Jan 28, 2022
a3f2dde
New translations indexing.mdx (Arabic)
benface Jan 28, 2022
707c99d
New translations index.json (Spanish)
benface Jan 28, 2022
4c16b28
New translations index.json (Arabic)
benface Jan 28, 2022
736d627
New translations index.json (Japanese)
benface Jan 28, 2022
08ced87
New translations index.json (Korean)
benface Jan 28, 2022
7a53be5
New translations index.json (Chinese Simplified)
benface Jan 28, 2022
d0ba571
New translations indexing.mdx (Japanese)
benface Jan 28, 2022
a5752dc
New translations indexing.mdx (Spanish)
benface Jan 28, 2022
e6324cb
New translations curating.mdx (Arabic)
benface Jan 28, 2022
60c5fe5
New translations delegating.mdx (Japanese)
benface Jan 28, 2022
c1de4af
New translations curating.mdx (Japanese)
benface Jan 28, 2022
8d0e837
New translations curating.mdx (Korean)
benface Jan 28, 2022
ed46692
New translations curating.mdx (Chinese Simplified)
benface Jan 28, 2022
b012561
New translations curating.mdx (Vietnamese)
benface Jan 28, 2022
504d991
New translations delegating.mdx (Spanish)
benface Jan 28, 2022
c3418e1
New translations delegating.mdx (Arabic)
benface Jan 28, 2022
e4f9109
New translations delegating.mdx (Korean)
benface Jan 28, 2022
f7013ad
New translations explorer.mdx (Vietnamese)
benface Jan 28, 2022
1261dd0
New translations delegating.mdx (Chinese Simplified)
benface Jan 28, 2022
04470f5
New translations delegating.mdx (Vietnamese)
benface Jan 28, 2022
fecb1bc
New translations explorer.mdx (Spanish)
benface Jan 28, 2022
bc375eb
New translations explorer.mdx (Arabic)
benface Jan 28, 2022
e2afda9
New translations explorer.mdx (Japanese)
benface Jan 28, 2022
2627f40
New translations explorer.mdx (Korean)
benface Jan 28, 2022
1813022
New translations explorer.mdx (Chinese Simplified)
benface Jan 28, 2022
845c61b
Formatting fixes
benface Jan 28, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
New translations assemblyscript-migration-guide.mdx (Japanese)
  • Loading branch information
benface committed Jan 28, 2022
commit 63122a797958306a303c278502bc8eae9849109e
130 changes: 65 additions & 65 deletions pages/ja/developer/assemblyscript-migration-guide.mdx
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
---
title: AssemblyScript マイグレーションガイド
title: AssemblyScript Migration Guide
---

これまでサブグラフは、[AssemblyScriptの最初のバージョン](https://github.com/AssemblyScript/assemblyscript/tree/v0.6) v0.6)を使用していました。 ついに[最新のバージョン](https://github.com/AssemblyScript/assemblyscript/tree/v0.19.10)(v0.19.10) のサポートを追加しました! 🎉
Up until now, subgraphs have been using one of the [first versions of AssemblyScript](https://github.com/AssemblyScript/assemblyscript/tree/v0.6) (v0.6). Finally we've added support for the [newest one available](https://github.com/AssemblyScript/assemblyscript/tree/v0.19.10) (v0.19.10)! 🎉

これにより、サブグラフの開発者は、AS言語と標準ライブラリの新しい機能を使用できるようになります。
That will enable subgraph developers to use newer features of the AS language and standard library.

このガイドは、バージョン`0.22.0`以下の`graph-cli`/`graph-ts` をお使いの方に適用されます。 もしあなたがすでにそれ以上のバージョンにいるなら、あなたはすでに AssemblyScript のバージョン`0.19.10` を使っています。
This guide is applicable for anyone using `graph-cli`/`graph-ts` below version `0.22.0`. If you're already at a higher than (or equal) version to that, you've already been using version `0.19.10` of AssemblyScript 🙂

> 注:`0.24.0`以降、`graph-node`はサブグラフマニフェストで指定された`apiVersion`に応じて、両方のバージョンをサポートしています。
> Note: As of `0.24.0`, `graph-node` can support both versions, depending on the `apiVersion` specified in the subgraph manifest.

## 特徴
## Features

### 新機能
### New functionality

- `TypedArray`s can now be built from `ArrayBuffer`s by using the [new `wrap` static method](https://www.assemblyscript.org/stdlib/typedarray.html#static-members) ([v0.8.1](https://github.com/AssemblyScript/assemblyscript/releases/tag/v0.8.1))
- New standard library functions: `String#toUpperCase`, `String#toLowerCase`, `String#localeCompare`and `TypedArray#set` ([v0.9.0](https://github.com/AssemblyScript/assemblyscript/releases/tag/v0.9.0))
Expand All @@ -30,21 +30,21 @@ title: AssemblyScript マイグレーションガイド
- Add `toUTCString` for `Date` ([v0.18.30](https://github.com/AssemblyScript/assemblyscript/releases/tag/v0.18.30))
- Add `nonnull/NonNullable` builtin type ([v0.19.2](https://github.com/AssemblyScript/assemblyscript/releases/tag/v0.19.2))

### 最適化
### Optimizations

- `Math` functions such as `exp`, `exp2`, `log`, `log2` and `pow` have been replaced by faster variants ([v0.9.0](https://github.com/AssemblyScript/assemblyscript/releases/tag/v0.9.0))
- Slightly optimize `Math.mod` ([v0.17.1](https://github.com/AssemblyScript/assemblyscript/releases/tag/v0.17.1))
- Cache more field accesses in std Map and Set ([v0.17.8](https://github.com/AssemblyScript/assemblyscript/releases/tag/v0.17.8))
- Optimize for powers of two in `ipow32/64` ([v0.18.2](https://github.com/AssemblyScript/assemblyscript/releases/tag/v0.18.2))

### その他
### Other

- The type of an array literal can now be inferred from its contents ([v0.9.0](https://github.com/AssemblyScript/assemblyscript/releases/tag/v0.9.0))
- Updated stdlib to Unicode 13.0.0 ([v0.10.0](https://github.com/AssemblyScript/assemblyscript/releases/tag/v0.10.0))

## アップグレードの方法
## How to upgrade?

1. `subgraph.yaml`のマッピングの`apiVersion`を`0.0.6`に変更してください。
1. Change your mappings `apiVersion` in `subgraph.yaml` to `0.0.6`:

```yaml
...
Expand All @@ -56,7 +56,7 @@ dataSources:
...
```

2. 使用している`graph-cli`を`最新版`に更新するには、次のように実行します。
2. Update the `graph-cli` you're using to the `latest` version by running:

```bash
# if you have it globally installed
Expand All @@ -66,20 +66,20 @@ npm install --global @graphprotocol/graph-cli@latest
npm install --save-dev @graphprotocol/graph-cli@latest
```

3. `graph-ts`についても同様ですが、グローバルにインストールするのではなく、メインの依存関係に保存します。
3. Do the same for `graph-ts`, but instead of installing globally, save it in your main dependencies:

```bash
npm install --save @graphprotocol/graph-ts@latest
```

4. ガイドの残りの部分に従って、言語の変更を修正します。
5. `codegen`を実行し、再度`deploy`します。
4. Follow the rest of the guide to fix the language breaking changes.
5. Run `codegen` and `deploy` again.

## 変更点
## Breaking changes

### Nullability

古いバージョンのAssemblyScriptでは、以下のようなコードを作ることができました:
On the older version of AssemblyScript, you could create code like this:

```typescript
function load(): Value | null { ... }
Expand All @@ -88,7 +88,7 @@ let maybeValue = load();
maybeValue.aMethod();
```

しかし、新しいバージョンでは、値がnullableであるため、次のようにチェックする必要があります:
However on the newer version, because the value is nullable, it requires you to check, like this:

```typescript
let maybeValue = load()
Expand All @@ -98,27 +98,27 @@ if (maybeValue) {
}
```

あるいは、次のように強制します:
Or force it like this:

```typescript
let maybeValue = load()! // breaks in runtime if value is null

maybeValue.aMethod()
```

どちらを選択すべきか迷った場合は、常に安全なバージョンを使用することをお勧めします。 値が存在しない場合は、サブグラフハンドラの中でreturnを伴う初期のif文を実行するとよいでしょう。
If you are unsure which to choose, we recommend always using the safe version. If the value doesn't exist you might want to just do an early if statement with a return in you subgraph handler.

### 変数シャドウイング
### Variable Shadowing

以前は、[変数のシャドウイング](https://en.wikipedia.org/wiki/Variable_shadowing)を行うことができ、次のようなコードが動作していました。
Before you could do [variable shadowing](https://en.wikipedia.org/wiki/Variable_shadowing) and code like this would work:

```typescript
let a = 10
let b = 20
let a = a + b
```

しかし、現在はこれができなくなり、コンパイラは次のようなエラーを返します。
However now this isn't possible anymore, and the compiler returns this error:

```typescript
ERROR TS2451: Cannot redeclare block-scoped variable 'a'
Expand All @@ -127,17 +127,17 @@ ERROR TS2451: Cannot redeclare block-scoped variable 'a'
~~~~~~~~~~~~~
in assembly/index.ts(4,3)
```
変数シャドウイングを行っていた場合は、重複する変数の名前を変更する必要があります。
### Null比較
サブグラフのアップグレードを行うと、時々以下のようなエラーが発生することがあります。
You'll need to rename your duplicate variables if you had variable shadowing.
### Null Comparisons
By doing the upgrade on your subgraph, sometimes you might get errors like these:

```typescript
ERROR TS2322: Type '~lib/@graphprotocol/graph-ts/common/numbers/BigInt | null' is not assignable to type '~lib/@graphprotocol/graph-ts/common/numbers/BigInt'.
if (decimals == null) {
~~~~
in src/mappings/file.ts(41,21)
```
解決するには、 `if` 文を以下のように変更するだけです。
To solve you can simply change the `if` statement to something like this:

```typescript
if (!decimals) {
Expand All @@ -147,23 +147,23 @@ ERROR TS2322: Type '~lib/@graphprotocol/graph-ts/common/numbers/BigInt | null' i
if (decimals === null) {
```

これは、==ではなく!=の場合も同様です。
The same applies if you're doing != instead of ==.

### キャスト
### Casting

以前の一般的なキャストの方法は、次のように`as`キーワードを使うだけでした。
The common way to do casting before was to just use the `as` keyword, like this:

```typescript
let byteArray = new ByteArray(10)
let uint8Array = byteArray as Uint8Array // equivalent to: <Uint8Array>byteArray
```

しかし、これは2つのシナリオでしか機能しません。
However this only works in two scenarios:

- プリミティブなキャスト(between types such as `u8`, `i32`, `bool`; eg: `let b: isize = 10; b as usize`);
- クラス継承のアップキャスティング(サブクラス→スーパークラス)
- Primitive casting (between types such as `u8`, `i32`, `bool`; eg: `let b: isize = 10; b as usize`);
- Upcasting on class inheritance (subclass → superclass)

Examples:

```typescript
// primitive casting
Expand All @@ -179,10 +179,10 @@ class Bytes extends Uint8Array {}
let bytes = new Bytes(2) < Uint8Array > bytes // same as: bytes as Uint8Array
```

キャストしたくても、`as`/`<T>var`を使うと**安全ではない**というシナリオが2つあります。
There are two scenarios where you may want to cast, but using `as`/`<T>var` **isn't safe**:

- クラス継承のダウンキャスト(スーパークラス → サブクラス)
- スーパークラスを共有する2つの型の間
- Downcasting on class inheritance (superclass → subclass)
- Between two types that share a superclass

```typescript
// downcasting on class inheritance
Expand All @@ -199,7 +199,7 @@ class ByteArray extends Uint8Array {}
let bytes = new Bytes(2) < ByteArray > bytes // breaks in runtime :(
```

このような場合には、`changetype<T>`関数を使用します。
For those cases, you can use the `changetype<T>` function:

```typescript
// downcasting on class inheritance
Expand All @@ -218,7 +218,7 @@ let bytes = new Bytes(2)
changetype<ByteArray>(bytes) // works :)
```

単にnull性を除去したいだけなら、`as` オペレーター(or `<T>variable`)を使い続けることができますが、値がnullではないことを確認しておかないと壊れてしまいます。
If you just want to remove nullability, you can keep using the `as` operator (or `<T>variable`), but make sure you know that value can't be null, otherwise it will break.

```typescript
// remove nullability
Expand All @@ -231,18 +231,18 @@ if (previousBalance != null) {
let newBalance = new AccountBalance(balanceId)
```

Nullabilityについては、[nullability check feature](https://www.assemblyscript.org/basics.html#nullability-checks)を利用することをお勧めします。
For the nullability case we recommend taking a look at the [nullability check feature](https://www.assemblyscript.org/basics.html#nullability-checks), it will make your code cleaner 🙂

また、キャストを容易にするために、いくつかの型にスタティックメソッドを追加しました。
Also we've added a few more static methods in some types to ease casting, they are:

- Bytes.fromByteArray
- Bytes.fromUint8Array
- BigInt.fromByteArray
- ByteArray.fromBigInt

### プロパティアクセスによるNullabilityチェック
### Nullability check with property access

[nullability check feature](https://www.assemblyscript.org/basics.html#nullability-checks)を使用するには、次のように`if`文や三項演算子(`?` and `:`) を使用します。
To use the [nullability check feature](https://www.assemblyscript.org/basics.html#nullability-checks) you can use either `if` statements or the ternary operator (`?` and `:`) like this:

```typescript
let something: string | null = 'data'
Expand All @@ -260,7 +260,7 @@ if (something) {
}
```

しかし、これは、以下のように、プロパティのアクセスではなく、変数に対して`if`/ternaryを行っている場合にのみ機能します。
However that only works when you're doing the `if` / ternary on a variable, not on a property access, like this:

```typescript
class Container {
Expand All @@ -273,15 +273,15 @@ container.data = 'data'
let somethingOrElse: string = container.data ? container.data : 'else' // doesn't compile
```

すると、このようなエラーが出力されます。
Which outputs this error:

```typescript
ERROR TS2322: Type '~lib/string/String | null' is not assignable to type '~lib/string/String'.

let somethingOrElse: string = container.data ? container.data : "else";
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
この問題を解決するには、そのプロパティアクセスのための変数を作成して、コンパイラがnullability checkのマジックを行うようにします。
To fix this issue, you can create a variable for that property access so that the compiler can do the nullability check magic:

```typescript
class Container {
Expand All @@ -296,9 +296,9 @@ let data = container.data
let somethingOrElse: string = data ? data : 'else' // compiles just fine :)
```

### プロパティアクセスによるオペレーターオーバーロード
### Operator overloading with property access

アセンブリスクリプトのコンパイラは、値の片方がnullableであることを警告するコンパイル時のエラーを出さずに、ただ黙ってコンパイルするので、実行時にコードが壊れる可能性があります。
If you try to sum (for example) a nullable type (from a property access) with a non nullable one, the AssemblyScript compiler instead of giving a compile time error warning that one of the values is nullable, it just compiles silently, giving chance for the code to break at runtime.

```typescript
class BigInt extends Uint8Array {
Expand All @@ -322,7 +322,7 @@ let wrapper = new Wrapper(y)
wrapper.n = wrapper.n + x // doesn't give compile time errors as it should
```

この件に関して、アセンブリ・スクリプト・コンパイラーに問題を提起しましたが、 今のところ、もしサブグラフ・マッピングでこの種の操作を行う場合には、 その前にNULLチェックを行うように変更してください。
We've opened a issue on the AssemblyScript compiler for this, but for now if you do these kind of operations in your subgraph mappings, you should change them to do a null check before it.

```typescript
let wrapper = new Wrapper(y)
Expand All @@ -334,25 +334,25 @@ if (!wrapper.n) {
wrapper.n = wrapper.n + x // now `n` is guaranteed to be a BigInt
```

### 値の初期化
### Value initialization

もし、このようなコードがあった場合:
If you have any code like this:

```typescript
var value: Type // null
value.x = 10
value.y = 'content'
```

これは、値が初期化されていないために起こります。したがって、次のようにサブグラフが値を初期化していることを確認してください。
It will compile but break at runtime, that happens because the value hasn't been initialized, so make sure your subgraph has initialized their values, like this:

```typescript
var value = new Type() // initialized
value.x = 10
value.y = 'content'
```

また、以下のようにGraphQLのエンティティにNullableなプロパティがある場合も同様です。
Also if you have nullable properties in a GraphQL entity, like this:

```graphql
type Total @entity {
Expand All @@ -361,7 +361,7 @@ type Total @entity {
}
```

そして、以下のようなコードになります:
And you have code similar to this:

```typescript
let total = Total.load('latest')
Expand All @@ -373,7 +373,7 @@ if (total === null) {
total.amount = total.amount + BigInt.fromI32(1)
```

`total.amount`の値を確実に初期化する必要があります。なぜなら、最後の行のsumのようにアクセスしようとすると、クラッシュしてしまうからです。 そのため、最初に初期化する必要があります。
You'll need to make sure to initialize the `total.amount` value, because if you try to access like in the last line for the sum, it will crash. So you either initialize it first:

```typescript
let total = Total.load('latest')
Expand All @@ -386,7 +386,7 @@ if (total === null) {
total.tokens = total.tokens + BigInt.fromI32(1)
```

あるいは、このプロパティに nullable 型を使用しないように GraphQL スキーマを変更することもできます。そうすれば、`コード生成`の段階でゼロとして初期化されます。
Or you can just change your GraphQL schema to not use a nullable type for this property, then we'll initialize it as zero on the `codegen` step 😉

```graphql
type Total @entity {
Expand All @@ -405,9 +405,9 @@ if (total === null) {
total.amount = total.amount + BigInt.fromI32(1)
```

### クラスのプロパティの初期化
### Class property initialization

以下のように、他のクラス(自分で宣言したものや標準ライブラリで宣言したもの)のプロパティを持つクラスをエクスポートした場合、そのクラスのプロパティを初期化します:
If you export any classes with properties that are other classes (declared by you or by the standard library) like this:

```typescript
class Thing {}
Expand All @@ -417,7 +417,7 @@ export class Something {
}
```

コンパイラがエラーになるのは、クラスであるプロパティにイニシャライザを追加するか、`!` オペレーターを追加する必要があるからです。
The compiler will error because you either need to add an initializer for the properties that are classes, or add the `!` operator:

```typescript
export class Something {
Expand All @@ -441,11 +441,11 @@ export class Something {
}
```

### GraphQLスキーマ
### GraphQL schema

これはAssemblyScriptの直接的な変更ではありませんが、`schema.graphql`ファイルを更新する必要があるかもしれません。
This is not a direct AssemblyScript change, but you may have to update your `schema.graphql` file.

タイプの中にNon-Nullable Listのフィールドを定義することができなくなりました。 次のようなスキーマを持っているとします。
Now you no longer can define fields in your types that are Non-Nullable Lists. If you have a schema like this:

```graphql
type Something @entity {
Expand All @@ -458,7 +458,7 @@ type MyEntity @entity {
}
```

Listタイプのメンバーには、以下のように`!` を付ける必要があります。
You'll have to add an `!` to the member of the List type, like this:

```graphql
type Something @entity {
Expand All @@ -471,9 +471,9 @@ type MyEntity @entity {
}
```

これはAssemblyScriptのバージョンによるnullabilityの違いから変更されたもので、`src/generated/schema.ts`ファイル(デフォルトのパス、あなたはこれを変更したかもしれません)に関連しています。
This changed because of nullability differences between AssemblyScript versions, and it's related to the `src/generated/schema.ts` file (default path, you might have changed this).

### その他
### Other

- Aligned `Map#set` and `Set#add` with the spec, returning `this` ([v0.9.2](https://github.com/AssemblyScript/assemblyscript/releases/tag/v0.9.2))
- Arrays no longer inherit from ArrayBufferView, but are now distinct ([v0.10.0](https://github.com/AssemblyScript/assemblyscript/releases/tag/v0.10.0))
Expand Down