Skip to content
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
4 changes: 2 additions & 2 deletions .github/workflows/auto-cleanup-bot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:

- name: Create PR with only fixable issues
if: success()
uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8
uses: peter-evans/create-pull-request@84ae59a2cdc2258d6fa0732dd66352dddae2a412 # v7.0.9
with:
commit-message: "chore: auto-fix Markdownlint, Prettier, and front-matter issues"
branch: markdownlint-auto-cleanup
Expand All @@ -62,7 +62,7 @@ jobs:

- name: Create PR with notice on unfixed issues
if: failure()
uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8
uses: peter-evans/create-pull-request@84ae59a2cdc2258d6fa0732dd66352dddae2a412 # v7.0.9
with:
commit-message: "chore: auto-fix Markdownlint, Prettier, and front-matter issues"
branch: markdownlint-auto-cleanup
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/interfacedata-updater.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
run: node scripts/update-interface-data.js ../webref/

- name: Create pull request
uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8
uses: peter-evans/create-pull-request@84ae59a2cdc2258d6fa0732dd66352dddae2a412 # v7.0.9
with:
path: mdn-content
token: ${{ secrets.AUTOMERGE_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-check-lint_content.yml
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ jobs:

- name: Setup reviewdog
if: steps.lint.outputs.FILES_MODIFIED == 'true' || steps.lint.outputs.MD_LINT_FAILED == 'true'
uses: reviewdog/action-setup@d8edfce3dd5e1ec6978745e801f9c50b5ef80252 # v1.4.0
uses: reviewdog/action-setup@d8a7baabd7f3e8544ee4dbde3ee41d0011c3a93f # v1.5.0
with:
reviewdog_version: latest

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/glossary/percent-encoding/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ page-type: glossary-definition
sidebar: glossarysidebar
---

**Percent-encoding** is a mechanism to encode 8-bit characters that have specific meaning in the context of {{Glossary("URL", "URLs")}}. It is sometimes called URL encoding. The encoding consists of substitution: A '%' followed by the hexadecimal representation of the ASCII value of the replace character.
**Percent-encoding** is a mechanism to encode 8-bit characters that have specific meaning in the context of {{Glossary("URL", "URLs")}}. It is sometimes called URL encoding. The encoding consists of a substitution: A '%' followed by the hexadecimal representation of the ASCII value of the replaced character.

Special characters needing encoding are: `':'`, `'/'`, `'?'`, `'#'`, `'['`, `']'`, `'@'`, `'!'`, `'$'`, `'&'`, `"'"`, `'('`, `')'`, `'*'`, `'+'`, `','`, `';'`, `'='`, as well as `'%'` itself. Other characters don't need to be encoded, though they could.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Create a `main.js` file. This file will contain the code for a simple HTTP serve

```js
Deno.serve({
port: 80,
port: 8080,
async handler(request) {
if (request.headers.get("upgrade") !== "websocket") {
// If the request is a normal HTTP request,
Expand Down Expand Up @@ -56,7 +56,7 @@ Deno.serve({
[`Deno.serve()`](https://docs.deno.com/api/deno/~/Deno.serve) uses `Deno.listen()` and `Deno.serveHttp()` under the hood, and is a higher-level interface to easily set up a HTTP server. Without it, the code would look something like this.

```js
for await (const conn of Deno.listen({ port: 80 })) {
for await (const conn of Deno.listen({ port: 8080 })) {
for await (const { request, respondWith } of Deno.serveHttp(conn)) {
respondWith(handler(request));
}
Expand Down Expand Up @@ -115,12 +115,12 @@ websocket.onerror = (e) => {
With the two files, run the app using Deno.

```sh
deno run --allow-net=0.0.0.0:80 --allow-read=./index.html main.js
deno run --allow-net=0.0.0.0:8080 --allow-read=./index.html main.js
```

Deno requires us to give explicit permissions for what we can access on the host machine.

- `--allow-net=0.0.0.0:80` allows the app to attach to localhost on port 80
- `--allow-net=0.0.0.0:8080` allows the app to attach to localhost on port 8080
- `--allow-read=./index.html` allows access to the HTML file for the client

## See also
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"dependencies": {
"@apideck/better-ajv-errors": "^0.3.6",
"@caporal/core": "^2.0.7",
"@mdn/fred": "1.9.0",
"@mdn/fred": "1.9.1",
"@octokit/rest": "^22.0.1",
"ajv": "^8.17.1",
"ajv-formats": "^3.0.1",
Expand All @@ -72,7 +72,7 @@
"imagemin-svgo": "^11.0.1",
"is-svg": "^6.1.0",
"lefthook": "^2.0.4",
"markdownlint-cli2": "0.19.0",
"markdownlint-cli2": "0.19.1",
"markdownlint-rule-search-replace": "1.2.0",
"node-html-parser": "^7.0.1",
"parse-diff": "^0.11.1",
Expand Down
26 changes: 13 additions & 13 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -749,10 +749,10 @@
resolved "https://registry.yarnpkg.com/@marijn/find-cluster-break/-/find-cluster-break-1.0.2.tgz#775374306116d51c0c500b8c4face0f9a04752d8"
integrity sha512-l0h88YhZFyKdXIFNfSWpyjStDjGHwZ/U7iobcK1cQQD8sejsONdQtTVU+1wVN1PBw40PiiHB1vA5S7VTfQiP9g==

"@mdn/fred@1.9.0":
version "1.9.0"
resolved "https://registry.yarnpkg.com/@mdn/fred/-/fred-1.9.0.tgz#0619f7f9c57f43f17056050021abb7647e3fa0e4"
integrity sha512-nlOyHLuOARPKSVvZAwHmg/UCIekomGKZf+Qel8bOv7RJSPdpH9Rqr4WAFLOyLYQpz1Set129+CWwuJ1iRyiDxg==
"@mdn/fred@1.9.1":
version "1.9.1"
resolved "https://registry.yarnpkg.com/@mdn/fred/-/fred-1.9.1.tgz#3277317907ad286e530b3e8c9b0fcd0c59010c13"
integrity sha512-WiTlteVvTm83oMcCbay3XABXkqyrmKi+/uIVxVOK1TJ9bhjchVJQKQLXfdxLL4apX+kSdCX75HsjvwZyOca5Rw==
dependencies:
"@codemirror/lang-css" "^6.3.1"
"@codemirror/lang-html" "^6.4.11"
Expand All @@ -764,7 +764,7 @@
"@lit-labs/ssr" "^3.3.1"
"@lit-labs/ssr-client" "^1.1.7"
"@lit/task" "^1.0.3"
"@mdn/rari" "0.2.1"
"@mdn/rari" "0.2.2"
"@mdn/watify" "^1.1.5"
"@mozilla/glean" "^5.0.7"
codemirror "^6.0.1"
Expand All @@ -783,10 +783,10 @@
prismjs "^1.29.0"
source-map-support "^0.5.21"

"@mdn/rari@0.2.1":
version "0.2.1"
resolved "https://registry.yarnpkg.com/@mdn/rari/-/rari-0.2.1.tgz#6171e62cb17c6f7dd9601e02417b50d4811d6b93"
integrity sha512-IAcz6Y5rNWBViP+H7dcdj9XNi7z3jb2X1kG/8Pl3rrk+s3/Hp+jqrT3srZQFuO3QRP0oy9Jjl92PL9k+YdiECw==
"@mdn/rari@0.2.2":
version "0.2.2"
resolved "https://registry.yarnpkg.com/@mdn/rari/-/rari-0.2.2.tgz#f4a0019b255223e6e223c9886b681b5953eb5a5d"
integrity sha512-rXOcDRnU4RGAO5W3axhGdLGhxJcyUZjWIBUWK+ucP/cL2VTBysMHk5ieApgWdzNIkj744DYX+eUfH2uatGY7Gg==
dependencies:
extract-zip "^2.0.1"
https-proxy-agent "^7.0.2"
Expand Down Expand Up @@ -4020,10 +4020,10 @@ markdownlint-cli2-formatter-default@0.0.6:
resolved "https://registry.yarnpkg.com/markdownlint-cli2-formatter-default/-/markdownlint-cli2-formatter-default-0.0.6.tgz#aa6db33b2fafc0801f4bbddeedafc19a2499a62c"
integrity sha512-VVDGKsq9sgzu378swJ0fcHfSicUnMxnL8gnLm/Q4J/xsNJ4e5bA6lvAz7PCzIl0/No0lHyaWdqVD2jotxOSFMQ==

markdownlint-cli2@0.19.0:
version "0.19.0"
resolved "https://registry.yarnpkg.com/markdownlint-cli2/-/markdownlint-cli2-0.19.0.tgz#2c7fcb748cd0ebd0aa15de245e83c25c1913b712"
integrity sha512-0+g7Fi/Y3qfvwfhJr77CpC/dEEoc4k7SvumlnL1tb68O+7fjKtIUG7aKzNUQIMXTVi8x63jcfXg4swz/ZYKyCw==
markdownlint-cli2@0.19.1:
version "0.19.1"
resolved "https://registry.yarnpkg.com/markdownlint-cli2/-/markdownlint-cli2-0.19.1.tgz#81e5d1ac553ea119c36731e7309a3d9228cec2be"
integrity sha512-p3JTemJJbkiMjXEMiFwgm0v6ym5g8K+b2oDny+6xdl300tUKySxvilJQLSea48C6OaYNmO30kH9KxpiAg5bWJw==
dependencies:
globby "15.0.0"
js-yaml "4.1.1"
Expand Down