dependabot[bot] 5f88cf1cb7 chore: bump canvas from 3.0.0-rc2 to 3.1.0 in /site (#16371)
[//]: # (dependabot-start)
⚠️  **Dependabot is rebasing this PR** ⚠️ 

Rebasing might not happen immediately, so don't worry if this takes some
time.

Note: if you make any changes to this PR yourself, they will take
precedence over the rebase.

---

[//]: # (dependabot-end)

Bumps [canvas](https://github.com/Automattic/node-canvas) from 3.0.0-rc2
to 3.1.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/Automattic/node-canvas/releases">canvas's
releases</a>.</em></p>
<blockquote>
<h2>v3.1.0</h2>
<h1>3.1.0</h1>
<ul>
<li>Replaced <code>simple-get </code> with <code> Node.js builtin</code>
<code>fetch</code> (<a
href="https://redirect.github.com/Automattic/node-canvas/issues/2309">#2309</a>)</li>
<li><code>ctx.font</code> has a new C++ parser and is 2x-400x faster.
Please file an issue if you experience different results, as caching has
been removed.</li>
<li>The restriction of registering fonts before a canvas is created has
been removed. You can now register a font as late as right before the
<code>fillText</code> call (<a
href="https://redirect.github.com/Automattic/node-canvas/issues/1921">#1921</a>)</li>
</ul>
<h3>Added</h3>
<ul>
<li>Support for accessibility and links in PDFs</li>
<li><code>ctx.direction</code> is implemented: <code>'rtl'</code> or
<code>'ltr'</code> set the base direction of text</li>
<li><code>ctx.textAlign</code> <code>'start'</code> and
<code>'end'</code> are now <code>'right'</code> and <code>'left'</code>
when <code>ctx.direction === 'rtl'</code></li>
</ul>
<h3>Fixed</h3>
<ul>
<li>Fix a crash in <code>getImageData</code> when the rectangle is
entirely outside the canvas. (<a
href="https://redirect.github.com/Automattic/node-canvas/issues/2024">#2024</a>)</li>
<li>Fix <code>getImageData</code> cropping the resulting
<code>ImageData</code> when the given rectangle is partly outside the
canvas. (<a
href="https://redirect.github.com/Automattic/node-canvas/issues/1849">#1849</a>)</li>
</ul>
<h2>v3.0.1</h2>
<h1>3.0.1</h1>
<h3>Fixed</h3>
<ul>
<li>Fixed accidental depenency on ambient DOM types</li>
</ul>
<h2>v3.0.0</h2>
<h1>3.0.0</h1>
<p>This release notably changes to using N-API. 🎉</p>
<h3>Breaking</h3>
<ul>
<li>Dropped support for Node.js 16.x and below.</li>
</ul>
<h3>Changed</h3>
<ul>
<li>Migrated to N-API (by way of node-addon-api) and removed libuv and
v8 dependencies</li>
<li>Change from node-pre-gyp to prebuild-install</li>
<li>Defer the initialization of the <code>op</code> variable to the
<code>default</code> switch case to avoid a compiler warning. (<a
href="https://redirect.github.com/Automattic/node-canvas/issues/2229">#2229</a>)</li>
<li>Use a <code>default</code> switch case with a null statement if some
enum values aren't suppsed to be handled, this avoids a compiler
warning. (<a
href="https://redirect.github.com/Automattic/node-canvas/issues/2229">#2229</a>)</li>
<li>Migrate from librsvg's deprecated
<code>rsvg_handle_get_dimensions()</code> and
<code>rsvg_handle_render_cairo()</code> functions to the new
<code>rsvg_handle_get_intrinsic_size_in_pixels()</code> and
<code>rsvg_handle_render_document()</code> respectively. (<a
href="https://redirect.github.com/Automattic/node-canvas/issues/2229">#2229</a>)</li>
<li>Avoid calling virtual methods in constructors/destructors to avoid
bypassing virtual dispatch. (<a
href="https://redirect.github.com/Automattic/node-canvas/issues/2229">#2229</a>)</li>
<li>Remove unused private field <code>backend</code> in the
<code>Backend</code> class. (<a
href="https://redirect.github.com/Automattic/node-canvas/issues/2229">#2229</a>)</li>
<li>Add Node.js v20 to CI. (<a
href="https://redirect.github.com/Automattic/node-canvas/issues/2237">#2237</a>)</li>
<li>Replaced <code>dtslint</code> with <code>tsd</code> (<a
href="https://redirect.github.com/Automattic/node-canvas/issues/2313">#2313</a>)</li>
<li>Changed PNG consts to static properties of Canvas class</li>
<li>Reverted improved font matching on Linux (<a
href="https://redirect.github.com/Automattic/node-canvas/issues/1572">#1572</a>)
because it doesn't work if fonts are installed. If you experience
degraded font selection, please file an issue and use v3.0.0-rc3 in the
meantime.</li>
</ul>
<h3>Added</h3>
<ul>
<li>Added string tags to support class detection</li>
<li>Throw Cairo errors in canvas.toBuffer()</li>
</ul>
<h3>Fixed</h3>
<ul>
<li>Fix a case of use-after-free. (<a
href="https://redirect.github.com/Automattic/node-canvas/issues/2229">#2229</a>)</li>
<li>Fix usage of garbage value by filling the allocated memory entirely
with zeros if it's not modified. (<a
href="https://redirect.github.com/Automattic/node-canvas/issues/2229">#2229</a>)</li>
<li>Fix a potential memory leak. (<a
href="https://redirect.github.com/Automattic/node-canvas/issues/2229">#2229</a>)</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/Automattic/node-canvas/blob/master/CHANGELOG.md">canvas's
changelog</a>.</em></p>
<blockquote>
<h1>3.1.0</h1>
<ul>
<li>Replaced <code>simple-get </code> with <code> Node.js builtin</code>
<code>fetch</code> (<a
href="https://redirect.github.com/Automattic/node-canvas/issues/2309">#2309</a>)</li>
<li><code>ctx.font</code> has a new C++ parser and is 2x-400x faster.
Please file an issue if you experience different results, as caching has
been removed.</li>
<li>The restriction of registering fonts before a canvas is created has
been removed. You can now register a font as late as right before the
<code>fillText</code> call (<a
href="https://redirect.github.com/Automattic/node-canvas/issues/1921">#1921</a>)</li>
</ul>
<h3>Added</h3>
<ul>
<li>Support for accessibility and links in PDFs</li>
<li><code>ctx.direction</code> is implemented: <code>'rtl'</code> or
<code>'ltr'</code> set the base direction of text</li>
<li><code>ctx.textAlign</code> <code>'start'</code> and
<code>'end'</code> are now <code>'right'</code> and <code>'left'</code>
when <code>ctx.direction === 'rtl'</code></li>
</ul>
<h3>Fixed</h3>
<ul>
<li>Fix a crash in <code>getImageData</code> when the rectangle is
entirely outside the canvas. (<a
href="https://redirect.github.com/Automattic/node-canvas/issues/2024">#2024</a>)</li>
<li>Fix <code>getImageData</code> cropping the resulting
<code>ImageData</code> when the given rectangle is partly outside the
canvas. (<a
href="https://redirect.github.com/Automattic/node-canvas/issues/1849">#1849</a>)</li>
</ul>
<h1>3.0.1</h1>
<h3>Fixed</h3>
<ul>
<li>Fixed accidental depenency on ambient DOM types</li>
</ul>
<h1>3.0.0</h1>
<p>This release notably changes to using N-API. 🎉</p>
<h3>Breaking</h3>
<ul>
<li>Dropped support for Node.js 16.x and below.</li>
</ul>
<h3>Changed</h3>
<ul>
<li>Migrated to N-API (by way of node-addon-api) and removed libuv and
v8 dependencies</li>
<li>Change from node-pre-gyp to prebuild-install</li>
<li>Defer the initialization of the <code>op</code> variable to the
<code>default</code> switch case to avoid a compiler warning. (<a
href="https://redirect.github.com/Automattic/node-canvas/issues/2229">#2229</a>)</li>
<li>Use a <code>default</code> switch case with a null statement if some
enum values aren't suppsed to be handled, this avoids a compiler
warning. (<a
href="https://redirect.github.com/Automattic/node-canvas/issues/2229">#2229</a>)</li>
<li>Migrate from librsvg's deprecated
<code>rsvg_handle_get_dimensions()</code> and
<code>rsvg_handle_render_cairo()</code> functions to the new
<code>rsvg_handle_get_intrinsic_size_in_pixels()</code> and
<code>rsvg_handle_render_document()</code> respectively. (<a
href="https://redirect.github.com/Automattic/node-canvas/issues/2229">#2229</a>)</li>
<li>Avoid calling virtual methods in constructors/destructors to avoid
bypassing virtual dispatch. (<a
href="https://redirect.github.com/Automattic/node-canvas/issues/2229">#2229</a>)</li>
<li>Remove unused private field <code>backend</code> in the
<code>Backend</code> class. (<a
href="https://redirect.github.com/Automattic/node-canvas/issues/2229">#2229</a>)</li>
<li>Add Node.js v20 to CI. (<a
href="https://redirect.github.com/Automattic/node-canvas/issues/2237">#2237</a>)</li>
<li>Replaced <code>dtslint</code> with <code>tsd</code> (<a
href="https://redirect.github.com/Automattic/node-canvas/issues/2313">#2313</a>)</li>
<li>Changed PNG consts to static properties of Canvas class</li>
<li>Reverted improved font matching on Linux (<a
href="https://redirect.github.com/Automattic/node-canvas/issues/1572">#1572</a>)
because it doesn't work if fonts are installed. If you experience
degraded font selection, please file an issue and use v3.0.0-rc3 in the
meantime.</li>
</ul>
<h3>Added</h3>
<ul>
<li>Added string tags to support class detection</li>
<li>Throw Cairo errors in canvas.toBuffer()</li>
</ul>
<h3>Fixed</h3>
<ul>
<li>Fix a case of use-after-free. (<a
href="https://redirect.github.com/Automattic/node-canvas/issues/2229">#2229</a>)</li>
<li>Fix usage of garbage value by filling the allocated memory entirely
with zeros if it's not modified. (<a
href="https://redirect.github.com/Automattic/node-canvas/issues/2229">#2229</a>)</li>
<li>Fix a potential memory leak. (<a
href="https://redirect.github.com/Automattic/node-canvas/issues/2229">#2229</a>)</li>
<li>Fix the wrong type of setTransform</li>
<li>Fix the improper parsing of rgb functions issue. (<a
href="https://redirect.github.com/Automattic/node-canvas/issues/2300">#2300</a>)</li>
<li>Fix issue related to improper parsing of leading and trailing
whitespaces in CSS color. (<a
href="https://redirect.github.com/Automattic/node-canvas/issues/2301">#2301</a>)</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/Automattic/node-canvas/commit/61e474e299b04babd4b5348bc15ba71bee42099e"><code>61e474e</code></a>
3.1.0</li>
<li><a
href="https://github.com/Automattic/node-canvas/commit/88e965709234c5b3ebcedfad7405c56da658df88"><code>88e9657</code></a>
allow registerFont after a canvas has been created (<a
href="https://redirect.github.com/Automattic/node-canvas/issues/2483">#2483</a>)</li>
<li><a
href="https://github.com/Automattic/node-canvas/commit/52330b89b70ac1cdaf6fb3c8331d675b65aaa0cf"><code>52330b8</code></a>
support ctx.direction and textAlign start/end</li>
<li><a
href="https://github.com/Automattic/node-canvas/commit/0b2edc1ba91303087dcd3584e97dfa90581b375d"><code>0b2edc1</code></a>
remove reference to old JS parseFont</li>
<li><a
href="https://github.com/Automattic/node-canvas/commit/a0c80314687ed278803d3143d9a7f88c8575837f"><code>a0c8031</code></a>
getImageData fixes when rectangle is outside of canvas</li>
<li><a
href="https://github.com/Automattic/node-canvas/commit/da33bbed88946188385af6dc10368410ffede365"><code>da33bbe</code></a>
Add link tags for pdfs</li>
<li><a
href="https://github.com/Automattic/node-canvas/commit/728e76cc80da2748961ef973e9bb646f83f2c69e"><code>728e76c</code></a>
add C++ parser for the font shorthand</li>
<li><a
href="https://github.com/Automattic/node-canvas/commit/7ed0a96b91735d3c6f1df0ceb827a9646b998c9a"><code>7ed0a96</code></a>
add font setter benchmarks</li>
<li><a
href="https://github.com/Automattic/node-canvas/commit/1d956b7246dd516cff9810db19a2915bc5598420"><code>1d956b7</code></a>
use fetch api</li>
<li><a
href="https://github.com/Automattic/node-canvas/commit/80e94ea7644b8f0c879b6e4ba899e50e6289e09a"><code>80e94ea</code></a>
v3.0.1</li>
<li>Additional commits viewable in <a
href="https://github.com/Automattic/node-canvas/compare/v3.0.0-rc2...v3.1.0">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=canvas&package-manager=npm_and_yarn&previous-version=3.0.0-rc2&new-version=3.1.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-01 12:59:42 +00:00
2022-04-04 11:55:06 -05:00

Coder Logo Light Coder Logo Dark

Self-Hosted Cloud Development Environments

Coder Banner Light Coder Banner Dark

Quickstart | Docs | Why Coder | Premium

discord release godoc Go Report Card OpenSSF Best Practices OpenSSF Scorecard license

Coder enables organizations to set up development environments in their public or private cloud infrastructure. Cloud development environments are defined with Terraform, connected through a secure high-speed Wireguard® tunnel, and automatically shut down when not used to save on costs. Coder gives engineering teams the flexibility to use the cloud for workloads most beneficial to them.

  • Define cloud development environments in Terraform
    • EC2 VMs, Kubernetes Pods, Docker Containers, etc.
  • Automatically shutdown idle resources to save on costs
  • Onboard developers in seconds instead of days

Coder Hero Image

Quickstart

The most convenient way to try Coder is to install it on your local machine and experiment with provisioning cloud development environments using Docker (works on Linux, macOS, and Windows).

# First, install Coder
curl -L https://coder.com/install.sh | sh

# Start the Coder server (caches data in ~/.cache/coder)
coder server

# Navigate to http://localhost:3000 to create your initial user,
# create a Docker template and provision a workspace

Install

The easiest way to install Coder is to use our install script for Linux and macOS. For Windows, use the latest ..._installer.exe file from GitHub Releases.

curl -L https://coder.com/install.sh | sh

You can run the install script with --dry-run to see the commands that will be used to install without executing them. Run the install script with --help for additional flags.

See install for additional methods.

Once installed, you can start a production deployment with a single command:

# Automatically sets up an external access URL on *.try.coder.app
coder server

# Requires a PostgreSQL instance (version 13 or higher) and external access URL
coder server --postgres-url <url> --access-url <url>

Use coder --help to get a list of flags and environment variables. Use our install guides for a complete walkthrough.

Documentation

Browse our docs here or visit a specific section below:

  • Templates: Templates are written in Terraform and describe the infrastructure for workspaces
  • Workspaces: Workspaces contain the IDEs, dependencies, and configuration information needed for software development
  • IDEs: Connect your existing editor to a workspace
  • Administration: Learn how to operate Coder
  • Premium: Learn about our paid features built for large teams

Support

Feel free to open an issue if you have questions, run into bugs, or have a feature request.

Join our Discord to provide feedback on in-progress features and chat with the community using Coder!

Integrations

We are always working on new integrations. Please feel free to open an issue and ask for an integration. Contributions are welcome in any official or community repositories.

Official

Community

Contributing

We are always happy to see new contributors to Coder. If you are new to the Coder codebase, we have a guide on how to get started. We'd love to see your contributions!

Hiring

Apply here if you're interested in joining our team.

S
Description
Provision remote development environments via Terraform
Readme AGPL-3.0
928 MiB
Languages
Go 74.9%
TypeScript 23.1%
Shell 0.8%
HCL 0.3%
PLpgSQL 0.3%
Other 0.4%