title |
---|
News |
Here you can find project-wide changes. For more detailed changes:
-
Move to
vite
(#8) -
Move from
eslint
tooxc
(#26)With eslint:
Benchmark 1: yarn lint Time (mean ± σ): 7.734 s ± 0.119 s [User: 10.668 s, System: 1.393 s] Range (min … max): 7.559 s … 7.902 s 10 runs
With oxc:
Benchmark 1: yarn lint Time (mean ± σ): 5.284 s ± 0.106 s [User: 6.894 s, System: 1.065 s] Range (min … max): 5.155 s … 5.476 s 10 runs
-
Run prettier across full codebase (#9)
- Add docs/ to formatting
- CSS and JS import ordering
-
Minimum Node.js version to v18+ (#12)
-
Docs: Refinement and polishing (#18, #19)
-
Sidebar: Convert file from js -> ts
-
Add link back to homepage
-
Add homepage logo
-
Add autogenerated indexes for
- wc
- providers
- configuration attributes
- lib
- wc
-
-
Docusaurus v2 -> v3 (#10)
- docusaurus 2 -> 3 (release notes)
- mdx v2 -> v3 (release notes)
- react 17 -> 18 (release notes)
- react-prism-renderer 1 -> 2 (changelog)
- Rewrite configuration docusaurus.config.js -> docusaurus.config.ts, use ESM imports and
satisfies
- tsconfig: @tsconfig/docusarus -> @docusaurus/tsconfig
- Remove unused stub blog posts
Lit element to lit
New CSS variables:
--social-embed-iframe-width
--social-embed-iframe-height
-
yarn 1.19.0 -> 1.22.19 (#2)
See also https://github.com/yarnpkg/yarn/blob/v1.22.19/CHANGELOG.md#master
-
Update dev dependencies: karma, eslint, rollup
-
Move to monorepo structure
-
Switch from karma to web-test-runner to get around import issues
-
Decouple library regexes to
packages/lib/
-
Decouple docs to
packages/site/
-
Add typedoc documentation: https://social-embed.git-pull.com/api/
-
Move documentation to docusaurus
Also redo docs from scratch in Docusaurus 2.0.0-beta.0 -> 2.2.0 (#1)
This project was formerly one repository, named @tony/oembed-component
- Update dependency packages (rollup, docs, testing)
- DailyMotion: Fix iframe dimensions
- Fix DailyMotion visibility issue, add tests for player
- Export
youTubeUrlRegex
- Change casing on functions from
URL
->Url
- Make protocol optional
- Add tests for Dailymotion
convertURLToEmbedURL
-> convertUrlToEmbedUrl
import { convertUrlToEmbedUrl } from "@tony/oembed-component";
convertUrlToEmbedUrl("https://vimeo.com/134668506"); // https://player.vimeo.com/video/134668506
convertUrlToEmbedUrl("https://youtu.be/FTQbiNvZqaY"); // https://www.youtube.com/embed/FTQbiNvZqaY
New all-in-one function to URL to <iframe>
friendly URL
import { convertURLToEmbedURL } from "@tony/oembed-component";
convertURLToEmbedURL("https://vimeo.com/134668506"); // https://player.vimeo.com/video/134668506
convertURLToEmbedURL("https://youtu.be/FTQbiNvZqaY"); // https://www.youtube.com/embed/FTQbiNvZqaY
- Typing fix for
getSpotifyEmbedUrlFromIdAndType()
- YouTube: Support https://youtu.be URLs
Extract spotify regex patterns, ID extraction and embed URL maker
Try to fix a build issue
declare global {
// eslint-disable-next-line
module JSX {
interface IntrinsicElements {
"o-embed": Partial<OEmbedElement>;
}
}
}
Stab at React support in TypeScript out of the box
declare global {
// eslint-disable-next-line
declare module JSX {
interface IntrinsicElements {
"o-embed": Partial<OEmbedElement>;
}
}
}
See also: https://www.typescriptlang.org/docs/handbook/jsx.html#intrinsic-elements
Support passing string values to width
/height
, e.g. width="100%"
Before this width="100%"
would render as Nan
.