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

build(deps): bump the astro group with 3 updates #243

Closed

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jun 9, 2024

Bumps the astro group with 3 updates: astro, @astrojs/mdx and @astrojs/sitemap.

Updates astro from 4.8.6 to 4.10.1

Release notes

Sourced from astro's releases.

[email protected]

Patch Changes

[email protected]

Minor Changes

  • #10974 2668ef9 Thanks @​florian-lefebvre! - Adds experimental support for the astro:env API.

    The astro:env API lets you configure a type-safe schema for your environment variables, and indicate whether they should be available on the server or the client. Import and use your defined variables from the appropriate /client or /server module:

    ---
    import { PUBLIC_APP_ID } from 'astro:env/client';
    import { PUBLIC_API_URL, getSecret } from 'astro:env/server';
    const API_TOKEN = getSecret('API_TOKEN');
    const data = await fetch(${PUBLIC_API_URL}/users, {
    method: 'POST',
    headers: {
    'Content-Type': 'application/json',
    Authorization: Bearer ${API_TOKEN},
    },
    body: JSON.stringify({ appId: PUBLIC_APP_ID }),
    });

    To define the data type and properties of your environment variables, declare a schema in your Astro config in experimental.env.schema. The envField helper allows you define your variable as a string, number, or boolean and pass properties in an object:

    // astro.config.mjs
    import { defineConfig, envField } from 'astro/config';
    export default defineConfig({
    experimental: {
    env: {
    schema: {
    PUBLIC_API_URL: envField.string({ context: 'client', access: 'public', optional: true }),
    PUBLIC_PORT: envField.number({ context: 'server', access: 'public', default: 4321 }),
    API_SECRET: envField.string({ context: 'server', access: 'secret' }),
    },
    },

... (truncated)

Changelog

Sourced from astro's changelog.

4.10.1

Patch Changes

4.10.0

Minor Changes

  • #10974 2668ef9 Thanks @​florian-lefebvre! - Adds experimental support for the astro:env API.

    The astro:env API lets you configure a type-safe schema for your environment variables, and indicate whether they should be available on the server or the client. Import and use your defined variables from the appropriate /client or /server module:

    ---
    import { PUBLIC_APP_ID } from 'astro:env/client';
    import { PUBLIC_API_URL, getSecret } from 'astro:env/server';
    const API_TOKEN = getSecret('API_TOKEN');
    const data = await fetch(${PUBLIC_API_URL}/users, {
    method: 'POST',
    headers: {
    'Content-Type': 'application/json',
    Authorization: Bearer ${API_TOKEN},
    },
    body: JSON.stringify({ appId: PUBLIC_APP_ID }),
    });

    To define the data type and properties of your environment variables, declare a schema in your Astro config in experimental.env.schema. The envField helper allows you define your variable as a string, number, or boolean and pass properties in an object:

    // astro.config.mjs
    import { defineConfig, envField } from 'astro/config';
    export default defineConfig({
    experimental: {
    env: {
    schema: {
    PUBLIC_API_URL: envField.string({ context: 'client', access: 'public', optional: true }),
    PUBLIC_PORT: envField.number({ context: 'server', access: 'public', default: 4321 }),
    API_SECRET: envField.string({ context: 'server', access: 'secret' }),

... (truncated)

Commits

Updates @astrojs/mdx from 3.0.0 to 3.1.0

Release notes

Sourced from @​astrojs/mdx's releases.

@​astrojs/mdx@​3.1.0

Minor Changes

  • #11144 803dd80 Thanks @​ematipico! - The integration now exposes a function called getContainerRenderer, that can be used inside the Container APIs to load the relative renderer.

    import { experimental_AstroContainer as AstroContainer } from 'astro/container';
    import ReactWrapper from '../src/components/ReactWrapper.astro';
    import { loadRenderers } from 'astro:container';
    import { getContainerRenderer } from '@astrojs/react';
    test('ReactWrapper with react renderer', async () => {
    const renderers = await loadRenderers([getContainerRenderer()]);
    const container = await AstroContainer.create({
    renderers,
    });
    const result = await container.renderToString(ReactWrapper);
    expect(result).toContain('Counter');
    expect(result).toContain('Count: <!-- -->5');
    });

@​astrojs/mdx@​3.0.1

Patch Changes

  • #10813 3cc3e2c Thanks @​Xetera! - Omitting compiler-internal symbol from user components to fix breaking error messages
Changelog

Sourced from @​astrojs/mdx's changelog.

3.1.0

Minor Changes

  • #11144 803dd80 Thanks @​ematipico! - The integration now exposes a function called getContainerRenderer, that can be used inside the Container APIs to load the relative renderer.

    import { experimental_AstroContainer as AstroContainer } from 'astro/container';
    import ReactWrapper from '../src/components/ReactWrapper.astro';
    import { loadRenderers } from 'astro:container';
    import { getContainerRenderer } from '@astrojs/react';
    test('ReactWrapper with react renderer', async () => {
    const renderers = await loadRenderers([getContainerRenderer()]);
    const container = await AstroContainer.create({
    renderers,
    });
    const result = await container.renderToString(ReactWrapper);
    expect(result).toContain('Counter');
    expect(result).toContain('Count: <!-- -->5');
    });

3.0.1

Patch Changes

  • #10813 3cc3e2c Thanks @​Xetera! - Omitting compiler-internal symbol from user components to fix breaking error messages
Commits

Updates @astrojs/sitemap from 3.1.4 to 3.1.5

Release notes

Sourced from @​astrojs/sitemap's releases.

@​astrojs/sitemap@​3.1.5

Patch Changes

Changelog

Sourced from @​astrojs/sitemap's changelog.

3.1.5

Patch Changes

Commits

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 commands and options

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 <dependency name> major version will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)
  • @dependabot ignore <dependency name> minor version will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)
  • @dependabot ignore <dependency name> will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)
  • @dependabot unignore <dependency name> will remove all of the ignore conditions of the specified dependency
  • @dependabot unignore <dependency name> <ignore condition> will remove the ignore condition of the specified dependency and ignore conditions

Bumps the astro group with 3 updates: [astro](https://github.com/withastro/astro/tree/HEAD/packages/astro), [@astrojs/mdx](https://github.com/withastro/astro/tree/HEAD/packages/integrations/mdx) and [@astrojs/sitemap](https://github.com/withastro/astro/tree/HEAD/packages/integrations/sitemap).


Updates `astro` from 4.8.6 to 4.10.1
- [Release notes](https://github.com/withastro/astro/releases)
- [Changelog](https://github.com/withastro/astro/blob/main/packages/astro/CHANGELOG.md)
- [Commits](https://github.com/withastro/astro/commits/[email protected]/packages/astro)

Updates `@astrojs/mdx` from 3.0.0 to 3.1.0
- [Release notes](https://github.com/withastro/astro/releases)
- [Changelog](https://github.com/withastro/astro/blob/main/packages/integrations/mdx/CHANGELOG.md)
- [Commits](https://github.com/withastro/astro/commits/@astrojs/[email protected]/packages/integrations/mdx)

Updates `@astrojs/sitemap` from 3.1.4 to 3.1.5
- [Release notes](https://github.com/withastro/astro/releases)
- [Changelog](https://github.com/withastro/astro/blob/main/packages/integrations/sitemap/CHANGELOG.md)
- [Commits](https://github.com/withastro/astro/commits/@astrojs/[email protected]/packages/integrations/sitemap)

---
updated-dependencies:
- dependency-name: astro
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: astro
- dependency-name: "@astrojs/mdx"
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: astro
- dependency-name: "@astrojs/sitemap"
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: astro
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Jun 9, 2024
@dependabot dependabot bot requested a review from yeskunall June 9, 2024 12:03
@yeskunall yeskunall closed this Jun 9, 2024
Copy link
Contributor Author

dependabot bot commented on behalf of github Jun 9, 2024

This pull request was built based on a group rule. Closing it will not ignore any of these versions in future pull requests.

To ignore these dependencies, configure ignore rules in dependabot.yml

@dependabot dependabot bot deleted the dependabot/npm_and_yarn/main/astro-ba8be994a6 branch June 9, 2024 12:54
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file size/XS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant