Skip to content

Commit

Permalink
chore: update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
jsulpis committed Jan 22, 2025
1 parent ae7fdcc commit a030fcc
Show file tree
Hide file tree
Showing 10 changed files with 797 additions and 1,191 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
tests:
runs-on: ubuntu-latest
container:
image: mcr.microsoft.com/playwright:v1.48.1
image: mcr.microsoft.com/playwright:v1.49.1
env:
HOME: /root
steps:
Expand Down
3 changes: 1 addition & 2 deletions docs/examples/post-processing/single-pass/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ body {
}

canvas {
max-width: 100svw;
max-height: 100svh;
width: 100svw;
aspect-ratio: 600 / 400;
display: block;
}
8 changes: 4 additions & 4 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
"@tweakpane/core": "2.0.5",
"gray-matter": "4.0.3",
"markdown-it-container": "4.0.0",
"sass": "1.81.0",
"sass": "1.83.4",
"tweakpane": "4.0.5",
"typescript": "5.6.3",
"typescript": "5.7.3",
"usegl": "workspace:*",
"vitepress": "1.5.0",
"vitepress-plugin-group-icons": "1.3.3",
"vitepress": "1.6.3",
"vitepress-plugin-group-icons": "1.3.5",
"vitepress-plugin-sandpack": "1.1.4",
"vue": "3.5.13"
}
Expand Down
2 changes: 1 addition & 1 deletion lib/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM mcr.microsoft.com/playwright:v1.48.1 AS base
FROM mcr.microsoft.com/playwright:v1.49.1 AS base
RUN npm i -g pnpm

FROM base AS deps
Expand Down
File renamed without changes.
18 changes: 9 additions & 9 deletions lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@
},
"devDependencies": {
"@astrojs/check": "0.9.4",
"@playwright/test": "1.48.1",
"@types/node": "22.1.0",
"astro": "4.16.7",
"changelogen": "0.5.5",
"eslint": "9.8.0",
"eslint-config-unjs": "0.3.2",
"prettier": "3.3.3",
"typescript": "5.5.4",
"unbuild": "3.0.0-rc.7"
"@playwright/test": "1.49.1",
"@types/node": "22.10.7",
"astro": "5.1.8",
"changelogen": "0.5.7",
"eslint": "9.18.0",
"eslint-config-unjs": "0.4.2",
"prettier": "3.4.2",
"typescript": "5.7.3",
"unbuild": "3.3.1"
},
"changelog": {
"excludeAuthors": [
Expand Down
4 changes: 2 additions & 2 deletions lib/src/core/texture.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ export function isHTMLVideoTexture(
export function loadTexture<P extends Omit<ImageTextureParams, "src">>(src: string, params?: P) {
const img = document.createElement("img");

if (src.startsWith("http") && new URL(src).origin !== window.location.origin) {
if (src.startsWith("http") && new URL(src).origin !== globalThis.location.origin) {
img.crossOrigin = "anonymous";
}

Expand Down Expand Up @@ -217,7 +217,7 @@ export function loadVideoTexture<P extends LoadVideoOptions>(src: string, params
video.setAttribute("loop", "");
video.setAttribute("autoplay", "");

if (src.startsWith("http") && new URL(src).origin !== window.location.origin) {
if (src.startsWith("http") && new URL(src).origin !== globalThis.location.origin) {
video.crossOrigin = "anonymous";
}

Expand Down
1 change: 1 addition & 0 deletions lib/src/hooks/useBoundingRect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export interface BoundingRect {
* Dynamically get the bounding rectangle of an HTML element
*/
export function useBoundingRect(target: HTMLElement, options: UseBoundingRectOptions = {}) {
/* eslint-disable unicorn/prefer-global-this */
const {
windowResize = typeof window !== "undefined",
windowScroll = typeof window !== "undefined",
Expand Down
2 changes: 1 addition & 1 deletion lib/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export interface RenderPass<U extends Uniforms = Record<string, never>> extends
initialize: (gl: WebGL2RenderingContext) => void;
}

export interface EffectPass<U extends Uniforms = Record<string, never>> extends RenderPass<U> {}
export type EffectPass<U extends Uniforms = Record<string, never>> = RenderPass<U>;

export interface CompositeEffectPass<
P extends Record<string, EffectPass<any>> = Record<string, EffectPass<never>>,
Expand Down
Loading

0 comments on commit a030fcc

Please sign in to comment.