Skip to content

Commit

Permalink
fix: You can't build with 1.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
GabsEdits committed May 5, 2024
1 parent e371306 commit 2c441df
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
## 1.4.1 (unreleased)

> This release is important to fix the build process of the project, so update as soon as possible.
### Fix(es)

- Not building because of `MastodonComments` component

## 1.4.0 (2024-05-04)

### Cleanup(s)
Expand Down
7 changes: 6 additions & 1 deletion components/MastodonComments.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,16 @@

<script setup type="module">
import { useData } from "vitepress";
import { onMounted } from "vue";
import Comments from "@oom/mastodon-comments/src/comments.js";
const { frontmatter } = useData();
customElements.define("oom-comments", Comments);
onMounted(() => {
if (typeof document !== "undefined") {
customElements.define("oom-comments", Comments);
}
});
</script>

<style lang="scss">
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aplos",
"version": "1.4.0",
"version": "1.4.1-0",
"type": "module",
"description": "A sleek, contemporary, and purposefully designed VitePress theme",
"main": "index.ts",
Expand Down

0 comments on commit 2c441df

Please sign in to comment.