Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
OSS作者はじめの一歩
Search
Nozomu Ikuta
December 07, 2022
Technology
1
140
OSS作者はじめの一歩
2022年12月7日 Saitama.js vol.4 にて発表したLT資料です。
Presented in Saitama.js vol.4, 7th Dec. 2022.
Nozomu Ikuta
December 07, 2022
Tweet
Share
More Decks by Nozomu Ikuta
See All by Nozomu Ikuta
Demystifying Vite Internals
nozomuikuta
3
1.7k
Nuxt DevTools 101
nozomuikuta
3
1.7k
Deep Dive to UnJS and Nuxt 3
nozomuikuta
3
2.3k
2022 年は Docus に注目しよう
nozomuikuta
1
85
Go初学者、最初の1週間の学び
nozomuikuta
1
72
Other Decks in Technology
See All in Technology
PHP ユーザのための OpenTelemetry 入門 / phpcon2024-opentelemetry
shin1x1
1
220
開発生産性向上! 育成を「改善」と捉えるエンジニア育成戦略
shoota
2
370
AWS re:Invent 2024で発表された コードを書く開発者向け機能について
maruto
0
190
多領域インシデントマネジメントへの挑戦:ハードウェアとソフトウェアの融合が生む課題/Challenge to multidisciplinary incident management: Issues created by the fusion of hardware and software
bitkey
PRO
2
110
サーバレスアプリ開発者向けアップデートをキャッチアップしてきた #AWSreInvent #regrowth_fuk
drumnistnakano
0
190
【re:Invent 2024 アプデ】 Prompt Routing の紹介
champ
0
140
LINEスキマニにおけるフロントエンド開発
lycorptech_jp
PRO
0
330
Postman と API セキュリティ / Postman and API Security
yokawasa
0
200
複雑性の高いオブジェクト編集に向き合う: プラガブルなReactフォーム設計
righttouch
PRO
0
110
Oracle Cloud Infrastructure:2024年12月度サービス・アップデート
oracle4engineer
PRO
0
180
Snowflake女子会#3 Snowpipeの良さを5分で語るよ
lana2548
0
230
UI State設計とテスト方針
rmakiyama
2
590
Featured
See All Featured
Designing for Performance
lara
604
68k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
2
290
Why You Should Never Use an ORM
jnunemaker
PRO
54
9.1k
We Have a Design System, Now What?
morganepeng
51
7.3k
KATA
mclloyd
29
14k
Fontdeck: Realign not Redesign
paulrobertlloyd
82
5.3k
Raft: Consensus for Rubyists
vanstee
137
6.7k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
159
15k
[RailsConf 2023] Rails as a piece of cake
palkan
53
5k
Building Applications with DynamoDB
mza
91
6.1k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
29
2k
Automating Front-end Workflow
addyosmani
1366
200k
Transcript
Nozomu Ikuta 7th Dec. 2022 OSS࡞ऀ͡ΊͷҰา What I Learned by
being an OSS Author
ΞδΣϯμ 📝 Agenda ࣗݾհ h3-corsύοέʔδͷհ unjsʹ͍ͭͯ h3-cors͕Ͱ͖Δ·Ͱ h3-corsΛެ։ͨ݁͠Ռ ·ͱΊ
ࣗݾհ 🙋 About Me • Twitter / GitHub : ˏNozomuIkuta
• ιϑτΣΞΤϯδχΞ at Global Brain • Vue.jsຊϢʔβʔάϧʔϓίΞελοϑ • unjsϝϯόʔ
৺ͷ “OSSެ։ͯ͠Έ͍ͨɺ͚ͲԿΛ͢Ε🥲”
This lightning talk is for you. ͬͯΈͨ
h3-corsύοέʔδͷհ
h3-corsͱ 🚦 What h3-cors is • unjs/h3༻ͷCORSϛυϧΣΞ • Express.js CORSͷସ
৺ͷ “unjs? h3?🤔”
unjsʹ͍ͭͯ
unjsͱ 👀 What unjs is • ʮUni fi ed JavaScript
Toolsʯͷུ • ڥඇґଘͷύοέʔδ܈ • Nuxt 3Λ࣮ݱ͍ͯ͠ΔίΞ • ʮnitroʯͷཧओମ
h3ͱ 👀 What h3 is • ʮHTTPʯͷψϝϩχϜ • Nuxt 3ͷαʔόʔαΠυʢnitroͷ෦ʣͰϛυϧΣΞΛ୲͏
• Nuxt 2Ͱconnect / Expressͩͬͨͷ͕ஔ͖Θͬͨ
ͳͥh3-corsΛ͔ͭͬͨ͘ 💡Why I created h3-cors • h3ͰExpressͷϛυϧΣΞʹҰ෦ޓੑ͕ͳ͔ͬͨ • ʮh3ͰCORSΛ࣮ݱ͢Δʹʯͱ͍͏IssueΛݟ͚ͭͨ •
ίΞϝϯόʔ͕ͦ͠͏ͳͷͰɺ͕ࣗͬͯΈΔ͜ͱʹͨ͠ • OSSߩݙ͚ͩͰͳ͘ɺOSSެ։ΛͬͯΈ͔ͨͬͨʢҰ൪ͷཧ༝ʣ
h3-cors͕Ͱ͖Δ·Ͱ
2022ɺळɻ “CORSɺงғؾͰͬͯ·ͨ͠”
2022ɺळɻ “ϥΠϒϥϦͷηοτΞοϓ͕Θ͔Βͳ͍”
2022ɺळɻ “ެ։ͯ͠ΘΕͳ͍ͷͰʁ”
ʮCORSɺงғؾͰͬͯ·ͨ͠ʯ 🧭 Road to h3-cors • MDNͰҰ͔Βษڧ • expressjs/corsͷιʔείʔυϦʔσΟϯά
ϥΠϒϥϦͷηοτΞοϓ͕Θ͔Βͳ͍ 🧭 Road to h3-cors • ESM / CommonJSͷରԠ •
package.jsonͷॻ͖ํ • READMEͷॻ͖ํ • unjs/templateͰҰൃղܾͰ͖ͨ
ެ։ͯ͠ΘΕͳ͍ͷͰʁ 🧭 Road to h3-cors • OSSެ։ͷମݧஊهࣄΛಡΉ • ςετͪΌΜͱॻ͘ɺΉ͠ΖςετͰ͖ΔΑ͏ʹ࣮͢Δ •
READMEͪΌΜͱॻ͘ • ։ൃऀମݧɺh3طଘͷྨࣅύοέʔδʹΑͤΔ • એ͢Δɺ͠ͳ͍ͱຒΕΔ
h3-corsΛެ։ͨ݁͠Ռ
h3-corsΛެ։ͨ݁͠Ռ 🔍 Results • ͡ΊͯͷGitHubελʔ • Issueخ͍͠ • PRͬͱخ͍͠ •
Φʔφʔγοϓͷ͋Δ։ൃָ ͍͠ • CORSͷ࣮·͕ͪͬͯ·ͨ͠ • NPMμϯϩʔυͷࣈ৳ͼ ͳ͍ • IssueτϦΞʔδͱ࣮ʹ࣌ؒ ͕ͱΒΕΔ • PRϨϏϡʔʹ͕࣌ؒͱΒΕΔ
·ͱΊ Takeaways • ʮείʔϓͷด͍ͯ͡Δʯύοέʔδ͕͓͢͢Ί • ॳظηοτΞοϓunjs/template͕͓͢͢Ί • ࣈͷ৳ͼʮ࣭ͦͷͷʯΑΓ͖͔͚͕ͬ͋Δ͔ͳ͍͔ • ஶ໊ͳOSSͷϝϯςφʔͨͪͷେม͞ͷยྡྷΛຯΘ͑Δ
• ϝϯςφϯεେม͚ͩͲɺΦʔφʔγοϓΛͯΔͷָ͍͠
Thank you