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

Refactoring exports, removing dependencies, and adding new utility functions. #11

Merged
merged 17 commits into from
Jan 9, 2025

Conversation

Adammatthiesen
Copy link
Member

@Adammatthiesen Adammatthiesen commented Jan 7, 2025

This pull request includes several key changes to the @studiocms/markdown-remark package, focusing on refactoring exports, removing dependencies, and adding new utility functions. The most important changes are summarized below:

Refactoring and Export Changes:

  • The default export of @studiocms/markdown-remark now only includes the integration and integration options types. A new direct export @studiocms/markdown-remark/integration has been added for the included Astro integration. [1] [2]
  • Updated packages/markdown-remark/src/index.ts to import and export types and functions from integration/index.js instead of processor/index.js.

Dependency Updates:

  • Removed the entities and astro-integration-kit dependencies from package.json, and added vite and pathe as new dependencies. [1] [2] [3] [4]

Build and Script Adjustments:

  • Modified the build:ci script in package.json to include TypeScript compilation with tsc -p tsconfig.json.

Utility Functions:

  • Added a new utility function decodeCodePoint in decode-codepoint.ts to decode Unicode code points, along with a polyfill for String.fromCodePoint and functions to replace and decode code points.

Copy link

changeset-bot bot commented Jan 7, 2025

🦋 Changeset detected

Latest commit: d836f68

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@studiocms/markdown-remark Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

pkg-pr-new bot commented Jan 7, 2025

Open in Stackblitz

npm i https://pkg.pr.new/@studiocms/markdown-remark@11

commit: d836f68

@Adammatthiesen Adammatthiesen changed the title Replace decoder Refactoring exports, removing dependencies, and adding new utility functions. Jan 7, 2025
@Adammatthiesen Adammatthiesen marked this pull request as ready for review January 7, 2025 21:46
@Adammatthiesen Adammatthiesen requested a review from a team as a code owner January 7, 2025 21:46
@Adammatthiesen Adammatthiesen merged commit b9d4b7b into main Jan 9, 2025
6 checks passed
@Adammatthiesen Adammatthiesen deleted the replace-decoder branch January 9, 2025 01:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants