Skip to content

Commit

Permalink
Merge pull request #213 from otoyo/0.10.0
Browse files Browse the repository at this point in the history
Update version 0.10.0
  • Loading branch information
otoyo authored Jan 9, 2025
2 parents cb4c64d + 6045ea4 commit ae87abf
Show file tree
Hide file tree
Showing 8 changed files with 12,320 additions and 7,956 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# build output
dist/
.output/
.astro/
.nx/

# dependencies
node_modules/
Expand Down
2 changes: 2 additions & 0 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { defineConfig } from 'astro/config';
import icon from 'astro-icon';
import { CUSTOM_DOMAIN, BASE_PATH } from './src/server-constants';
import CoverImageDownloader from './src/integrations/cover-image-downloader';
import CustomIconDownloader from './src/integrations/custom-icon-downloader';
Expand Down Expand Up @@ -36,6 +37,7 @@ export default defineConfig({
site: getSite(),
base: BASE_PATH,
integrations: [
icon(),
CoverImageDownloader(),
CustomIconDownloader(),
FeaturedImageDownloader(),
Expand Down
20,199 changes: 12,278 additions & 7,921 deletions package-lock.json

Large diffs are not rendered by default.

63 changes: 32 additions & 31 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "astro-notion-blog",
"type": "module",
"version": "0.6.3",
"version": "0.10.0",
"private": true,
"scripts": {
"dev": "astro dev",
Expand All @@ -17,43 +17,44 @@
"_fetch-notion-blocks": "node scripts/retrieve-block-children.cjs"
},
"dependencies": {
"@astrojs/react": "^3.0.3",
"@astrojs/rss": "^3.0.0",
"@notionhq/client": "^2.2.5",
"@supercharge/promise-pool": "^2.4.0",
"astro": "^3.3.1",
"astro-icon": "^0.8.1",
"@astrojs/react": "^4.1.2",
"@astrojs/rss": "^4.0.11",
"@iconify-json/octicon": "^1.2.2",
"@notionhq/client": "^2.2.15",
"@supercharge/promise-pool": "^3.2.0",
"astro": "^5.1.3",
"astro-icon": "^1.1.5",
"async-retry": "^1.3.3",
"axios": "^1.4.0",
"exif-be-gone": "^1.3.2",
"katex": "^0.16.7",
"mermaid": "^10.1.0",
"metascraper": "^5.34.4",
"metascraper-description": "^5.34.4",
"metascraper-image": "^5.34.4",
"metascraper-title": "^5.34.4",
"axios": "^1.7.9",
"exif-be-gone": "^1.5.1",
"katex": "^0.16.19",
"mermaid": "^11.4.1",
"metascraper": "^5.45.28",
"metascraper-description": "^5.45.28",
"metascraper-image": "^5.45.28",
"metascraper-title": "^5.45.28",
"prismjs": "^1.29.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"sharp": "^0.32.4"
"react": "^19.0.0",
"react-dom": "^19.0.0",
"sharp": "^0.33.5"
},
"devDependencies": {
"@nrwl/nx-cloud": "^15.0.2",
"@types/async-retry": "^1.4.5",
"@nrwl/nx-cloud": "^19.1.0",
"@types/async-retry": "^1.4.9",
"@types/js-base64": "^3.3.1",
"@types/katex": "^0.16.7",
"@types/metascraper": "^5.14.1",
"@types/metascraper-description": "^5.14.1",
"@types/metascraper-image": "^5.14.0",
"@types/metascraper-title": "^5.14.0",
"@types/prismjs": "^1.26.3",
"@typescript-eslint/eslint-plugin": "^6.8.0",
"@typescript-eslint/parser": "^6.8.0",
"@typescript-eslint/typescript-estree": "^6.8.0",
"@types/metascraper": "^5.14.3",
"@types/metascraper-description": "^5.14.5",
"@types/metascraper-image": "^5.14.5",
"@types/metascraper-title": "^5.14.5",
"@types/prismjs": "^1.26.5",
"@typescript-eslint/eslint-plugin": "^8.19.1",
"@typescript-eslint/parser": "^8.19.1",
"@typescript-eslint/typescript-estree": "^8.19.1",
"cli-progress": "^3.12.0",
"eslint": "^8.51.0",
"eslint-plugin-astro": "^0.27.0",
"nx": "15.5.3"
"eslint": "^9.17.0",
"eslint-plugin-astro": "^1.3.1",
"nx": "20.3.1"
},
"nx": {
"targets": {
Expand Down
2 changes: 1 addition & 1 deletion src/components/SearchButton.astro
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
import { Icon } from 'astro-icon'
import { Icon } from 'astro-icon/components';
---

<button class="search-button open-search-modal" type="button"><Icon name="octicon:search-24" /><span>Search</span></button>
Expand Down
1 change: 0 additions & 1 deletion src/env.d.ts

This file was deleted.

3 changes: 2 additions & 1 deletion src/lib/notion/client.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import fs, { createWriteStream } from 'node:fs'
import { pipeline } from 'node:stream/promises'
import axios, { AxiosResponse } from 'axios'
import axios from 'axios'
import sharp from 'sharp'
import retry from 'async-retry'
import ExifTransformer from 'exif-be-gone'
Expand All @@ -10,6 +10,7 @@ import {
NUMBER_OF_POSTS_PER_PAGE,
REQUEST_TIMEOUT_MS,
} from '../../server-constants'
import type { AxiosResponse } from 'axios'
import type * as responses from './responses'
import type * as requestParams from './request-params'
import type {
Expand Down
4 changes: 3 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
{
"extends": "astro/tsconfigs/strict"
"extends": "astro/tsconfigs/strict",
"include": [".astro/types.d.ts", "**/*"],
"exclude": ["dist"]
}

0 comments on commit ae87abf

Please sign in to comment.