Home
Guides and examples

Umbrella Package Migration

Move from scoped Strata packages to the strata-game-library umbrella package

strata-game-library is Strata's only public npm package. Starting with 0.3.0, the former @strata-game-library/* packages are private implementation packages and are no longer supported as direct npm dependencies.

New Default Install

pnpm add strata-game-library @react-three/fiber @react-three/drei three

Import Mapping

Old importNew umbrella import
@strata-game-library/corestrata-game-library/core or strata-game-library for high-level game helpers
@strata-game-library/gamestrata-game-library/game
@strata-game-library/composestrata-game-library/compose
@strata-game-library/worldstrata-game-library/world
@strata-game-library/utilsstrata-game-library/utils
@strata-game-library/shadersstrata-game-library/shaders
@strata-game-library/presetsstrata-game-library/presets
@strata-game-library/r3fstrata-game-library/r3f
@strata-game-library/componentsstrata-game-library/components
@strata-game-library/hooksstrata-game-library/hooks
@strata-game-library/audio-synthstrata-game-library/audio-synth
@strata-game-library/model-synthstrata-game-library/model-synth
@strata-game-library/capacitorstrata-game-library/capacitor
@strata-game-library/react-nativestrata-game-library/react-native
@strata-game-library/reactylonstrata-game-library/reactylon
@strata-game-library/astrostrata-game-library/astro

Example Migration

Before:

import { createRPGGame } from '@strata-game-library/game';
import { ProceduralSky, StrataGame, Water } from '@strata-game-library/r3f';

After:

import { createRPGGame } from 'strata-game-library';
import { ProceduralSky, StrataGame, Water } from 'strata-game-library/r3f';

The umbrella root is intentionally small. Renderer, mobile, audio, model generation, and Astro integrations stay behind explicit subpaths so optional peer dependencies are only relevant when you import those surfaces.

Mobile Package Rename

The old mobile package names are legacy names:

Legacy nameReplacement
@strata-game-library/capacitor-pluginstrata-game-library/capacitor
@strata-game-library/react-native-pluginstrata-game-library/react-native

The legacy package names are not published by this release.

Peer Dependencies

Install the peer dependencies for the subpaths you use:

pnpm add strata-game-library three
pnpm add @react-three/fiber @react-three/drei

Add optional peers as needed:

pnpm add tone                         # audio-synth
pnpm add @babylonjs/core reactylon    # reactylon
pnpm add react-native                 # react-native
pnpm add astro                        # astro integration

Release Model

GitHub Releases publish only strata-game-library through npm trusted publishing. Verify the released version with npm view strata-game-library after the release completes.