Skip to content

astro-portabletext@0.9.0

Compare
Choose a tag to compare
@github-actions github-actions released this 18 May 02:16
· 164 commits to main since this release
dc57f88

Minor Changes

  • d56e161: BREAKING CHANGE

    • Props type requires a TypedObject to be passed in and no longer defaults to ArbitraryTypedObject
  • 1eb192e: BREAKING

    astro-portabletext/utils

    • usePortableText(node)
      • Removed: getWarningMessage function
        • Meant for internal use
      • Removed: notifyMissingComponentHandler function
        • This is handled for you and has no purpose
      • Removed: deprecated next function
        • Use getDefaultComponent
      • Removed: deprecated onMissingComponent function
  • f95c9da: BREAKING CHANGE astro-portabletext/components

    • Removed BlockProps type

      - import type { BlockProps } from "astro-portabletext/components";
      + import type { Block, Props as $ } from "astro-portabletext/types";
      // type BlockProps = $<Block>;
    • Removed ListProps type

      - import type { ListProps } from "astro-portabletext/components";
      + import type { List, Props as $ } from "astro-portabletext/types";
      // type ListProps = $<List>;
    • Removed ListItemProps type

      - import type { ListItemProps } from "astro-portabletext/components";
      + import type { ListItem, Props as $ } from "astro-portabletext/types";
      // type ListItemProps = $<ListItem>;
    • Removed MarkProps type

      - import type { MarkProps } from "astro-portabletext/components";
      + import type { Mark, Props as $ } from "astro-portabletext/types";
      // type MarkProps = $<Mark<{...}>>;

Patch Changes

  • d56e161: Fixes exports field

  • d56e161: Removed compiling step for package release:

    • Pre-compiling isn't necessary as Astro handles Typescript for us