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

[ci] release (beta) #5911

Merged
merged 1 commit into from
Jan 23, 2023
Merged

[ci] release (beta) #5911

merged 1 commit into from
Jan 23, 2023

Conversation

astrobot-houston
Copy link
Contributor

@astrobot-houston astrobot-houston commented Jan 19, 2023

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

⚠️⚠️⚠️⚠️⚠️⚠️

main is currently in pre mode so this branch has prereleases rather than normal releases. If you want to exit prereleases, run changeset pre exit on main.

⚠️⚠️⚠️⚠️⚠️⚠️

Releases

astro@2.0.0-beta.4

Major Changes

  • #5941 304823811 Thanks @bholmesdev! - Content collections: Introduce a new slug frontmatter field for overriding the generated slug. This replaces the previous slug() collection config option from Astro 1.X and the 2.0 beta.

    When present in a Markdown or MDX file, this will override the generated slug for that entry.

    # src/content/blog/post-1.md
    ---
    title: Post 1
    + slug: post-1-custom-slug
    ---

    Astro will respect this slug in the generated slug type and when using the getEntryBySlug() utility:

    ---
    import { getEntryBySlug } from 'astro:content';
    
    // Retrieve `src/content/blog/post-1.md` by slug with type safety
    const post = await getEntryBySlug('blog', 'post-1-custom-slug');
    ---

    Migration

    If you relied on the slug() config option, you will need to move all custom slugs to slug frontmatter properties in each collection entry.

    Additionally, Astro no longer allows slug as a collection schema property. This ensures Astro can manage the slug property for type generation and performance. Remove this property from your schema and any relevant slug() configuration:

    const blog = defineCollection({
      schema: z.object({
    -   slug: z.string().optional(),
      }),
    - slug({ defaultSlug, data }) {
    -   return data.slug ?? defaultSlug;
    - },
    })

Patch Changes

create-astro@2.0.0-beta.1

Patch Changes

@astrojs/image@0.12.2-beta.1

Patch Changes

@astrojs/netlify@2.0.0-beta.4

Patch Changes

@astrojs/partytown@1.0.3-beta.1

Patch Changes

@astrojs/svelte@2.0.0-beta.3

Patch Changes

@astrojs/tailwind@3.0.0-beta.2

Patch Changes

@astrojs/webapi@2.0.0-beta.1

Patch Changes

astro-scripts@0.0.10-beta.1

Patch Changes

  • Updated dependencies [46ecd5de3]:
    • @astrojs/webapi@2.0.0-beta.1

@github-actions github-actions bot added pkg: astro Related to the core `astro` package (scope) pkg: example Related to an example package (scope) pkg: svelte Related to Svelte (scope) pkg: vue Related to Vue (scope) pkg: integration Related to any renderer integration (scope) labels Jan 19, 2023
@github-actions github-actions bot force-pushed the changeset-release/main branch 17 times, most recently from da7a994 to e6bef80 Compare January 23, 2023 20:07
@astrobot-houston astrobot-houston changed the title [ci] release (beta) [ci] release Jan 23, 2023
Copy link
Contributor

@matthewp matthewp left a comment

Choose a reason for hiding this comment

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

Blocked until release day.

@astrobot-houston astrobot-houston changed the title [ci] release [ci] release (beta) Jan 23, 2023
@matthewp matthewp dismissed their stale review January 23, 2023 21:11

releasing the beta

@matthewp matthewp merged commit a75177f into main Jan 23, 2023
@matthewp matthewp deleted the changeset-release/main branch January 23, 2023 21:11
matthewp pushed a commit that referenced this pull request Jan 26, 2023
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg: astro Related to the core `astro` package (scope) pkg: example Related to an example package (scope) pkg: integration Related to any renderer integration (scope) pkg: svelte Related to Svelte (scope) pkg: vue Related to Vue (scope)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants