Skip to content

Commit 9a676d3

Browse files
committed
Merge branch 'release/1.0.0-alpha.10'
2 parents c817c4a + 8d32470 commit 9a676d3

File tree

5 files changed

+17
-9
lines changed

5 files changed

+17
-9
lines changed

.github/workflows/template.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333

3434
# Install pnpm package manager.
3535
- name: Install pnpm package manager
36-
uses: pnpm/action-setup@v2.4.0
36+
uses: pnpm/action-setup@v3.0.0
3737
with:
3838
version: ^8
3939
run_install: false

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
All notable changes to this project will be documented in this file.
44

5+
## [1.0.0-alpha.10] - 2024-02-09
6+
7+
### Features
8+
9+
- Add new farcaster image aspect ratio property
10+
511
## [1.0.0-alpha.9] - 2024-02-08
612

713
### Documentation

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "farcaster-frames-template",
3-
"version": "1.0.0-alpha.9",
3+
"version": "1.0.0-alpha.10",
44
"keywords": [
55
"farcaster",
66
"frames",
@@ -16,7 +16,7 @@
1616
},
1717
"dependencies": {
1818
"@hono/node-server": "1.7.0",
19-
"hono": "3.12.11"
19+
"hono": "3.12.12"
2020
},
2121
"devDependencies": {
2222
"@types/eslint": "8.56.2",

pnpm-lock.yaml

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/index.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import type { FrameSignaturePacket } from './types'
66
const app = new Hono()
77

88
app.get('/', (c) => {
9-
const frameImage = `https://placehold.co/600x400?text=Hello+World`
9+
const frameImage = `https://placehold.co/1080x608?text=Hello+World`
1010
const framePostUrl = c.req.url
1111

1212
return c.html(html`
@@ -15,6 +15,7 @@ app.get('/', (c) => {
1515
<meta property="og:image" content="${frameImage}" />
1616
<meta property="fc:frame" content="vNext" />
1717
<meta property="fc:frame:image" content="${frameImage}" />
18+
<meta property="fc:frame:image:aspect_ratio" content="1.91:1" />
1819
<meta property="fc:frame:post_url" content="${framePostUrl}" />
1920
<meta property="fc:frame:button:1" content="Green" />
2021
<meta property="fc:frame:button:2" content="Purple" />
@@ -39,14 +40,15 @@ app.post('/', async (c) => {
3940
const imageText = encodeURIComponent(inputText || 'Hello World')
4041
const imageColor = backgroundColors[buttonIndex - 1] || 'white'
4142

42-
const frameImage = `https://placehold.co/600x400/${imageColor}/white?text=${imageText}`
43+
const frameImage = `https://placehold.co/1080x608/${imageColor}/white?text=${imageText}`
4344
const framePostUrl = c.req.url
4445

4546
return c.html(html`
4647
<html lang="en">
4748
<head>
4849
<meta property="fc:frame" content="vNext" />
4950
<meta property="fc:frame:image" content="${frameImage}" />
51+
<meta property="fc:frame:image:aspect_ratio" content="1.91:1" />
5052
<meta property="fc:frame:post_url" content="${framePostUrl}" />
5153
<meta property="fc:frame:input:text" content="Enter a message" />
5254
<meta property="fc:frame:button:1" content="Green" />

0 commit comments

Comments
 (0)