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

feat(node): Update to Node.js 14.15.0(LTS) #1275

Merged
merged 2 commits into from
Nov 23, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: 12
node-version: 14
- run: npm install
- run: npm run build
- name: Deploy
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: [12.x,]
os: [macOS-10.14, windows-latest, ubuntu-18.04]
node-version: [14.x,]
os: [macOS-latest, windows-latest, ubuntu-18.04]
name: "Build on Node.js: ${{ matrix.node-version }} OS: ${{ matrix.os }}"
steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -45,9 +45,9 @@ jobs:
name: E2E
steps:
- uses: actions/checkout@v2
- name: Node.js 12
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: 12
node-version: 14
- run: npm install
- run: npm run e2e
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Twitterのハッシュタグは [#jsprimer](https://twitter.com/intent/tweet?has

npm install

Node.js 12.13.0以上が必要です。
Node.js 14.15.0以上が必要です。
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

`npx`コマンドが利用できることを確認してください。

## Usage
Expand Down
4 changes: 2 additions & 2 deletions book.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
],
"variables": {
"esversion": "2020",
"nodeversion": "12.13.0",
"npmversion": "6.12.0",
"nodeversion": "14.15.0",
"npmversion": "6.14.8",
"triplebackticks": "```",
"console": "<a class=\"gitbook-plugin-js-console\" aria-hidden=\"true\"></a>"
},
Expand Down
4 changes: 2 additions & 2 deletions source/use-case/nodecli/argument-parse/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ description: "コマンドライン引数を受け取り、アプリケーショ
コマンドライン引数を扱う前に、まずは`process`オブジェクトについて触れておきます。
`process`オブジェクトはNode.js実行環境のグローバル変数のひとつです。
`process`オブジェクトが提供するのは、現在のNode.jsの実行プロセスについて、情報の取得と操作をするAPIです。
詳細は[公式ドキュメント](https://nodejs.org/dist/latest-v12.x/docs/api/process.html#process_process)を参照してください。
詳細は[公式ドキュメント](https://nodejs.org/dist/latest-v14.x/docs/api/process.html#process_process)を参照してください。

コマンドライン引数へのアクセスを提供するのは、`process`オブジェクトの`argv`プロパティで、文字列の配列になっています。
次のように`main.js`を変更し、`process.argv`をコンソールに出力しましょう。
Expand Down Expand Up @@ -176,7 +176,7 @@ $ node main.js ./sample.md
[npmのGitHubリポジトリ]: https://github.com/npm/npm
[CommonJSモジュール]: https://nodejs.org/docs/latest/api/modules.html
[Node.js]: https://nodejs.org/ja/
[require関数]: https://nodejs.org/dist/latest-v12.x/docs/api/modules.html#modules_loading_from_node_modules_folders
[require関数]: https://nodejs.org/dist/latest-v14.x/docs/api/modules.html#modules_loading_from_node_modules_folders
[アプリケーション開発の準備]: ../../setup-local-env/README.md
[ECMAScriptモジュール]: ../../../basic/module/README.md
[^1]: --saveオプションをつけてインストールしたのと同じ意味。npm 5.0.0からは--saveがデフォルトオプションとなりました。
6 changes: 3 additions & 3 deletions source/use-case/nodecli/helloworld/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ ECMAScriptで定義されているグローバルオブジェクトはブラウ

[document]: https://developer.mozilla.org/ja/docs/Web/API/Document
[XMLHttpRequest]: https://developer.mozilla.org/ja/docs/Web/API/XMLHttpRequest
[global]: https://nodejs.org/docs/latest-v12.x/api/globals.html
[process]: https://nodejs.org/docs/latest-v12.x/api/process.html#process_process
[Buffer]: https://nodejs.org/docs/latest-v12.x/api/buffer.html
[global]: https://nodejs.org/docs/latest-v14.x/api/globals.html
[process]: https://nodejs.org/docs/latest-v14.x/api/process.html#process_process
[Buffer]: https://nodejs.org/docs/latest-v14.x/api/buffer.html

[アプリケーション開発の準備]: ../../setup-local-env/README.md