New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@threlte/core

Package Overview
Dependencies
Maintainers
1
Versions
114
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@threlte/core - npm Package Compare versions

Comparing version 8.0.0-next.3 to 8.0.0-next.4

2

dist/index.d.ts

@@ -16,4 +16,2 @@ /// <reference types="svelte" />

export type { Key, Stage, Task, Scheduler, Schedule, TaskCallback } from './frame-scheduling';
export { useFrame, type ThrelteUseFrameOptions } from './hooks/legacy/useFrame';
export { useRender } from './hooks/legacy/useRender';
export { useLoader, type UseLoaderOptions, type UseLoaderLoadInput, type UseLoaderLoadResult } from './hooks/useLoader';

@@ -20,0 +18,0 @@ export { useParent } from './hooks/useParent';

@@ -18,6 +18,2 @@ import { writable } from 'svelte/store';

export { useThrelteUserContext } from './hooks/useThrelteUserContext';
// legacy hooks
// TODO: remove in Threlte 7
export { useFrame } from './hooks/legacy/useFrame';
export { useRender } from './hooks/legacy/useRender';
// useLoader

@@ -24,0 +20,0 @@ export { useLoader } from './hooks/useLoader';

@@ -7,3 +7,2 @@ import { setContext, tick } from 'svelte';

import { currentWritable } from './storeUtils';
import { injectLegacyFrameCompatibilityContext } from '../hooks/legacy/utils';
/**

@@ -78,4 +77,2 @@ * This function creates the necessary context objects for a Threlte application.

};
// TODO: Remove in Threlte 7
const { useRenderOrders } = injectLegacyFrameCompatibilityContext();
const scheduler = new Scheduler();

@@ -91,7 +88,2 @@ const mainStage = scheduler.createStage(Symbol('threlte-main-stage'));

const autoRenderTask = renderStage.createTask(Symbol('threlte-auto-render-task'), (_) => {
// we're in here when autoRender is true In Threlte 7 we still have to
// check for the existence of `useRender` instances
if (useRenderOrders.length > 0)
return;
// if there are no useRender instances, we can render the scene
ctx.renderer.render(ctx.scene, ctx.camera.current);

@@ -98,0 +90,0 @@ });

2

package.json
{
"name": "@threlte/core",
"version": "8.0.0-next.3",
"version": "8.0.0-next.4",
"author": "Grischa Erbe <hello@legrisch.com> (https://legrisch.com)",

@@ -5,0 +5,0 @@ "license": "MIT",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc