@oasys/oecs 0.5.4 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1223 -266
- package/README.md +217 -112
- package/dist/core/ecs/access_check.d.cts +29 -29
- package/dist/core/ecs/access_check.d.ts +29 -29
- package/dist/core/ecs/access_check.d.ts.map +1 -1
- package/dist/core/ecs/archetype.d.cts +217 -209
- package/dist/core/ecs/archetype.d.ts +217 -209
- package/dist/core/ecs/archetype.d.ts.map +1 -1
- package/dist/core/ecs/archetype_closure.d.cts +23 -0
- package/dist/core/ecs/archetype_closure.d.ts +23 -0
- package/dist/core/ecs/archetype_closure.d.ts.map +1 -0
- package/dist/core/ecs/archetype_graph.d.cts +33 -33
- package/dist/core/ecs/archetype_graph.d.ts +33 -33
- package/dist/core/ecs/archetype_graph.d.ts.map +1 -1
- package/dist/core/ecs/archetype_types.d.cts +55 -0
- package/dist/core/ecs/archetype_types.d.ts +55 -0
- package/dist/core/ecs/archetype_types.d.ts.map +1 -0
- package/dist/core/ecs/change_feed.d.cts +53 -0
- package/dist/core/ecs/change_feed.d.ts +53 -0
- package/dist/core/ecs/change_feed.d.ts.map +1 -0
- package/dist/core/ecs/changed_query.d.cts +36 -0
- package/dist/core/ecs/changed_query.d.ts +36 -0
- package/dist/core/ecs/changed_query.d.ts.map +1 -0
- package/dist/core/ecs/chunk_columns.d.cts +49 -0
- package/dist/core/ecs/chunk_columns.d.ts +49 -0
- package/dist/core/ecs/chunk_columns.d.ts.map +1 -0
- package/dist/core/ecs/command_log.d.cts +26 -26
- package/dist/core/ecs/command_log.d.ts +26 -26
- package/dist/core/ecs/command_log.d.ts.map +1 -1
- package/dist/core/ecs/component.d.cts +43 -42
- package/dist/core/ecs/component.d.ts +43 -42
- package/dist/core/ecs/component.d.ts.map +1 -1
- package/dist/core/ecs/component_registry.d.cts +53 -0
- package/dist/core/ecs/component_registry.d.ts +53 -0
- package/dist/core/ecs/component_registry.d.ts.map +1 -0
- package/dist/core/ecs/compute_backend.d.cts +18 -7
- package/dist/core/ecs/compute_backend.d.ts +18 -7
- package/dist/core/ecs/compute_backend.d.ts.map +1 -1
- package/dist/core/ecs/deferred_commands.d.cts +15 -14
- package/dist/core/ecs/deferred_commands.d.ts +15 -14
- package/dist/core/ecs/deferred_commands.d.ts.map +1 -1
- package/dist/core/ecs/dispatch_trace.d.cts +32 -31
- package/dist/core/ecs/dispatch_trace.d.ts +32 -31
- package/dist/core/ecs/dispatch_trace.d.ts.map +1 -1
- package/dist/core/ecs/ecs.d.cts +289 -270
- package/dist/core/ecs/ecs.d.ts +289 -270
- package/dist/core/ecs/ecs.d.ts.map +1 -1
- package/dist/core/ecs/ecs_memory.d.cts +134 -136
- package/dist/core/ecs/ecs_memory.d.ts +134 -136
- package/dist/core/ecs/ecs_memory.d.ts.map +1 -1
- package/dist/core/ecs/ecs_options.d.cts +89 -0
- package/dist/core/ecs/ecs_options.d.ts +89 -0
- package/dist/core/ecs/ecs_options.d.ts.map +1 -0
- package/dist/core/ecs/entity.d.cts +4 -4
- package/dist/core/ecs/entity.d.ts +4 -4
- package/dist/core/ecs/entity_allocator.d.cts +20 -18
- package/dist/core/ecs/entity_allocator.d.ts +20 -18
- package/dist/core/ecs/entity_allocator.d.ts.map +1 -1
- package/dist/core/ecs/event.d.cts +36 -22
- package/dist/core/ecs/event.d.ts +36 -22
- package/dist/core/ecs/event.d.ts.map +1 -1
- package/dist/core/ecs/facades.d.cts +12 -126
- package/dist/core/ecs/facades.d.ts +12 -126
- package/dist/core/ecs/facades.d.ts.map +1 -1
- package/dist/core/ecs/frame_stepper.d.cts +12 -12
- package/dist/core/ecs/frame_stepper.d.ts +12 -12
- package/dist/core/ecs/frame_stepper.d.ts.map +1 -1
- package/dist/core/ecs/frame_trace.d.cts +32 -32
- package/dist/core/ecs/frame_trace.d.ts +32 -32
- package/dist/core/ecs/frame_trace.d.ts.map +1 -1
- package/dist/core/ecs/host_commands.d.cts +103 -85
- package/dist/core/ecs/host_commands.d.ts +103 -85
- package/dist/core/ecs/host_commands.d.ts.map +1 -1
- package/dist/core/ecs/index.d.cts +21 -11
- package/dist/core/ecs/index.d.ts +21 -11
- package/dist/core/ecs/index.d.ts.map +1 -1
- package/dist/core/ecs/observer.d.cts +39 -120
- package/dist/core/ecs/observer.d.ts +39 -120
- package/dist/core/ecs/observer.d.ts.map +1 -1
- package/dist/core/ecs/phase.d.cts +79 -0
- package/dist/core/ecs/phase.d.ts +79 -0
- package/dist/core/ecs/phase.d.ts.map +1 -0
- package/dist/core/ecs/plugin.d.cts +125 -0
- package/dist/core/ecs/plugin.d.ts +125 -0
- package/dist/core/ecs/plugin.d.ts.map +1 -0
- package/dist/core/ecs/plugin_slots.d.cts +26 -0
- package/dist/core/ecs/plugin_slots.d.ts +26 -0
- package/dist/core/ecs/plugin_slots.d.ts.map +1 -0
- package/dist/core/ecs/query.d.cts +208 -578
- package/dist/core/ecs/query.d.ts +208 -578
- package/dist/core/ecs/query.d.ts.map +1 -1
- package/dist/core/ecs/query_cache.d.cts +130 -0
- package/dist/core/ecs/query_cache.d.ts +130 -0
- package/dist/core/ecs/query_cache.d.ts.map +1 -0
- package/dist/core/ecs/query_registry.d.cts +47 -0
- package/dist/core/ecs/query_registry.d.ts +47 -0
- package/dist/core/ecs/query_registry.d.ts.map +1 -0
- package/dist/core/ecs/query_terms.d.cts +126 -0
- package/dist/core/ecs/query_terms.d.ts +126 -0
- package/dist/core/ecs/query_terms.d.ts.map +1 -0
- package/dist/core/ecs/ref.d.cts +100 -39
- package/dist/core/ecs/ref.d.ts +100 -39
- package/dist/core/ecs/ref.d.ts.map +1 -1
- package/dist/core/ecs/relation.d.cts +101 -182
- package/dist/core/ecs/relation.d.ts +101 -182
- package/dist/core/ecs/relation.d.ts.map +1 -1
- package/dist/core/ecs/resource.d.cts +13 -13
- package/dist/core/ecs/resource.d.ts +13 -13
- package/dist/core/ecs/resource_registry.d.cts +5 -5
- package/dist/core/ecs/resource_registry.d.ts +5 -5
- package/dist/core/ecs/resource_registry.d.ts.map +1 -1
- package/dist/core/ecs/row_kinds.d.cts +24 -0
- package/dist/core/ecs/row_kinds.d.ts +24 -0
- package/dist/core/ecs/row_kinds.d.ts.map +1 -0
- package/dist/core/ecs/run_condition.d.cts +23 -23
- package/dist/core/ecs/run_condition.d.ts +23 -23
- package/dist/core/ecs/run_condition.d.ts.map +1 -1
- package/dist/core/ecs/schedule.d.cts +91 -120
- package/dist/core/ecs/schedule.d.ts +91 -120
- package/dist/core/ecs/schedule.d.ts.map +1 -1
- package/dist/core/ecs/schedule_plan.d.cts +33 -0
- package/dist/core/ecs/schedule_plan.d.ts +33 -0
- package/dist/core/ecs/schedule_plan.d.ts.map +1 -0
- package/dist/core/ecs/snapshot.d.cts +77 -0
- package/dist/core/ecs/snapshot.d.ts +77 -0
- package/dist/core/ecs/snapshot.d.ts.map +1 -0
- package/dist/core/ecs/snapshot_mount.d.cts +42 -0
- package/dist/core/ecs/snapshot_mount.d.ts +42 -0
- package/dist/core/ecs/snapshot_mount.d.ts.map +1 -0
- package/dist/core/ecs/sparse_store.d.cts +108 -51
- package/dist/core/ecs/sparse_store.d.ts +108 -51
- package/dist/core/ecs/sparse_store.d.ts.map +1 -1
- package/dist/core/ecs/store.d.cts +527 -473
- package/dist/core/ecs/store.d.ts +527 -473
- package/dist/core/ecs/store.d.ts.map +1 -1
- package/dist/core/ecs/store_layout_listener.d.cts +6 -6
- package/dist/core/ecs/store_layout_listener.d.ts +6 -6
- package/dist/core/ecs/store_types.d.cts +122 -0
- package/dist/core/ecs/store_types.d.ts +122 -0
- package/dist/core/ecs/store_types.d.ts.map +1 -0
- package/dist/core/ecs/system.d.cts +146 -61
- package/dist/core/ecs/system.d.ts +146 -61
- package/dist/core/ecs/system.d.ts.map +1 -1
- package/dist/core/ecs/system_context.d.cts +296 -0
- package/dist/core/ecs/system_context.d.ts +296 -0
- package/dist/core/ecs/system_context.d.ts.map +1 -0
- package/dist/core/ecs/system_set.d.cts +48 -0
- package/dist/core/ecs/system_set.d.ts +48 -0
- package/dist/core/ecs/system_set.d.ts.map +1 -0
- package/dist/core/ecs/utils/arrays.d.cts +15 -1
- package/dist/core/ecs/utils/arrays.d.ts +15 -1
- package/dist/core/ecs/utils/arrays.d.ts.map +1 -1
- package/dist/core/ecs/utils/error.d.cts +82 -6
- package/dist/core/ecs/utils/error.d.ts +82 -6
- package/dist/core/ecs/utils/error.d.ts.map +1 -1
- package/dist/core/ecs/utils/plugin_error.d.cts +10 -0
- package/dist/core/ecs/utils/plugin_error.d.ts +10 -0
- package/dist/core/ecs/utils/plugin_error.d.ts.map +1 -0
- package/dist/core/restore_errors.d.cts +30 -0
- package/dist/core/restore_errors.d.ts +30 -0
- package/dist/core/restore_errors.d.ts.map +1 -0
- package/dist/core/store/action_ring.d.cts +44 -44
- package/dist/core/store/action_ring.d.ts +44 -44
- package/dist/core/store/action_ring.d.ts.map +1 -1
- package/dist/core/store/allocator.d.cts +149 -95
- package/dist/core/store/allocator.d.ts +149 -95
- package/dist/core/store/allocator.d.ts.map +1 -1
- package/dist/core/store/buffer_backed_column.d.cts +17 -17
- package/dist/core/store/buffer_backed_column.d.ts +17 -17
- package/dist/core/store/buffer_backed_column.d.ts.map +1 -1
- package/dist/core/store/column_store.d.cts +124 -86
- package/dist/core/store/column_store.d.ts +124 -86
- package/dist/core/store/column_store.d.ts.map +1 -1
- package/dist/core/store/command_dispatch.d.cts +14 -15
- package/dist/core/store/command_dispatch.d.ts +14 -15
- package/dist/core/store/command_dispatch.d.ts.map +1 -1
- package/dist/core/store/command_ring.d.cts +36 -39
- package/dist/core/store/command_ring.d.ts +36 -39
- package/dist/core/store/command_ring.d.ts.map +1 -1
- package/dist/core/store/descriptor.d.cts +34 -17
- package/dist/core/store/descriptor.d.ts +34 -17
- package/dist/core/store/descriptor.d.ts.map +1 -1
- package/dist/core/store/entity_index.d.cts +34 -35
- package/dist/core/store/entity_index.d.ts +34 -35
- package/dist/core/store/entity_index.d.ts.map +1 -1
- package/dist/core/store/event_ring.d.cts +36 -38
- package/dist/core/store/event_ring.d.ts +36 -38
- package/dist/core/store/event_ring.d.ts.map +1 -1
- package/dist/core/store/extend.d.cts +13 -7
- package/dist/core/store/extend.d.ts +13 -7
- package/dist/core/store/extend.d.ts.map +1 -1
- package/dist/core/store/grow.d.cts +2 -2
- package/dist/core/store/grow.d.ts +2 -2
- package/dist/core/store/grow.d.ts.map +1 -1
- package/dist/core/store/header.d.cts +31 -27
- package/dist/core/store/header.d.ts +31 -27
- package/dist/core/store/header.d.ts.map +1 -1
- package/dist/core/store/index.d.cts +10 -10
- package/dist/core/store/index.d.ts +10 -10
- package/dist/core/store/index.d.ts.map +1 -1
- package/dist/core/store/layout_ops.d.cts +71 -62
- package/dist/core/store/layout_ops.d.ts +71 -62
- package/dist/core/store/layout_ops.d.ts.map +1 -1
- package/dist/core/store/region_table.d.cts +28 -21
- package/dist/core/store/region_table.d.ts +28 -21
- package/dist/core/store/region_table.d.ts.map +1 -1
- package/dist/core/store/snapshot.d.cts +31 -16
- package/dist/core/store/snapshot.d.ts +31 -16
- package/dist/core/store/snapshot.d.ts.map +1 -1
- package/dist/core/store/state_hash.d.cts +12 -12
- package/dist/core/store/state_hash.d.ts +12 -12
- package/dist/core/store/state_hash.d.ts.map +1 -1
- package/dist/core/store/store_regions.d.cts +10 -10
- package/dist/core/store/store_regions.d.ts +10 -10
- package/dist/core/store/store_regions.d.ts.map +1 -1
- package/dist/core/store/vendored_abi/abi.d.cts +27 -2
- package/dist/core/store/vendored_abi/abi.d.ts +27 -2
- package/dist/core/store/vendored_abi/abi.d.ts.map +1 -1
- package/dist/host_commands-B2KMx8O2.cjs +1 -0
- package/dist/host_commands-ClVPvhSa.cjs +2 -0
- package/dist/host_commands-CwxVQS1z.js +1524 -0
- package/dist/host_commands-nJvTy88E.js +1667 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +15 -10
- package/dist/index.d.ts +15 -10
- package/dist/index.d.ts.map +1 -1
- package/dist/index.development.cjs +1 -1
- package/dist/index.development.js +5804 -5203
- package/dist/index.js +5323 -4764
- package/dist/internal.cjs +2 -2
- package/dist/internal.d.cts +5 -2
- package/dist/internal.d.ts +5 -2
- package/dist/internal.d.ts.map +1 -1
- package/dist/internal.development.cjs +1 -1
- package/dist/internal.development.js +70 -20
- package/dist/internal.js +138 -83
- package/dist/plugins/abi-D3V-QUSf.cjs +1 -0
- package/dist/plugins/abi-NP8pNxpd.js +42 -0
- package/dist/plugins/arrays-Dr_1hCjL.js +28 -0
- package/dist/plugins/arrays-Dt-Joc4i.cjs +1 -0
- package/dist/plugins/assertions-gtDVfbnQ.js +6 -0
- package/dist/plugins/assertions-z5GQd_bB.cjs +1 -0
- package/dist/{extensions → plugins}/editor/editor.d.cts +54 -54
- package/dist/{extensions → plugins}/editor/editor.d.ts +54 -54
- package/dist/plugins/editor/editor.d.ts.map +1 -0
- package/dist/{extensions → plugins}/editor/field_handle.d.cts +12 -12
- package/dist/{extensions → plugins}/editor/field_handle.d.ts +12 -12
- package/dist/plugins/editor/field_handle.d.ts.map +1 -0
- package/dist/plugins/editor/index.d.cts +22 -0
- package/dist/plugins/editor/index.d.ts +22 -0
- package/dist/plugins/editor/index.d.ts.map +1 -0
- package/dist/plugins/editor.cjs +1 -0
- package/dist/plugins/editor.d.cts +1 -0
- package/dist/plugins/editor.d.ts +1 -0
- package/dist/plugins/editor.development.cjs +1 -0
- package/dist/{extensions/editor/index.development.js → plugins/editor.development.js} +81 -64
- package/dist/{extensions/editor/index.js → plugins/editor.js} +81 -64
- package/dist/plugins/events/event_channel.d.cts +13 -0
- package/dist/plugins/events/event_channel.d.ts +13 -0
- package/dist/plugins/events/event_channel.d.ts.map +1 -0
- package/dist/plugins/events/event_registry.d.cts +22 -0
- package/dist/plugins/events/event_registry.d.ts +22 -0
- package/dist/plugins/events/event_registry.d.ts.map +1 -0
- package/dist/plugins/events/facade.d.cts +26 -0
- package/dist/plugins/events/facade.d.ts +26 -0
- package/dist/plugins/events/facade.d.ts.map +1 -0
- package/dist/plugins/events/index.d.cts +10 -0
- package/dist/plugins/events/index.d.ts +10 -0
- package/dist/plugins/events/index.d.ts.map +1 -0
- package/dist/plugins/events.cjs +1 -0
- package/dist/plugins/events.d.cts +1 -0
- package/dist/plugins/events.d.ts +1 -0
- package/dist/plugins/events.development.cjs +1 -0
- package/dist/plugins/events.development.js +174 -0
- package/dist/plugins/events.js +159 -0
- package/dist/plugins/observers/index.d.cts +23 -0
- package/dist/plugins/observers/index.d.ts +23 -0
- package/dist/plugins/observers/index.d.ts.map +1 -0
- package/dist/plugins/observers/observer_registry.d.cts +101 -0
- package/dist/plugins/observers/observer_registry.d.ts +101 -0
- package/dist/plugins/observers/observer_registry.d.ts.map +1 -0
- package/dist/plugins/observers.cjs +1 -0
- package/dist/plugins/observers.d.cts +1 -0
- package/dist/plugins/observers.d.ts +1 -0
- package/dist/plugins/observers.development.cjs +1 -0
- package/dist/plugins/observers.development.js +431 -0
- package/dist/plugins/observers.js +403 -0
- package/dist/plugins/relation_store-BsoegrZh.js +313 -0
- package/dist/plugins/relation_store-DQKSnxsm.cjs +1 -0
- package/dist/plugins/relation_store-RBhpcE28.cjs +1 -0
- package/dist/plugins/relation_store-RqW5Snx6.js +328 -0
- package/dist/plugins/relations/builtin_relations.d.cts +48 -0
- package/dist/plugins/relations/builtin_relations.d.ts +48 -0
- package/dist/plugins/relations/builtin_relations.d.ts.map +1 -0
- package/dist/plugins/relations/facade.d.cts +73 -0
- package/dist/plugins/relations/facade.d.ts +73 -0
- package/dist/plugins/relations/facade.d.ts.map +1 -0
- package/dist/plugins/relations/index.d.cts +11 -0
- package/dist/plugins/relations/index.d.ts +11 -0
- package/dist/plugins/relations/index.d.ts.map +1 -0
- package/dist/{core/ecs → plugins/relations}/relation_service.d.cts +85 -97
- package/dist/{core/ecs → plugins/relations}/relation_service.d.ts +85 -97
- package/dist/plugins/relations/relation_service.d.ts.map +1 -0
- package/dist/plugins/relations/relation_store.d.cts +177 -0
- package/dist/plugins/relations/relation_store.d.ts +177 -0
- package/dist/plugins/relations/relation_store.d.ts.map +1 -0
- package/dist/plugins/relations.cjs +1 -0
- package/dist/plugins/relations.d.cts +1 -0
- package/dist/plugins/relations.d.ts +1 -0
- package/dist/plugins/relations.development.cjs +1 -0
- package/dist/plugins/relations.development.js +603 -0
- package/dist/plugins/relations.js +553 -0
- package/dist/plugins/snapshots/index.d.cts +33 -0
- package/dist/plugins/snapshots/index.d.ts +33 -0
- package/dist/plugins/snapshots/index.d.ts.map +1 -0
- package/dist/plugins/snapshots/resume.d.cts +57 -0
- package/dist/plugins/snapshots/resume.d.ts +57 -0
- package/dist/plugins/snapshots/resume.d.ts.map +1 -0
- package/dist/plugins/snapshots/snapshot_service.d.cts +59 -0
- package/dist/plugins/snapshots/snapshot_service.d.ts +59 -0
- package/dist/plugins/snapshots/snapshot_service.d.ts.map +1 -0
- package/dist/plugins/snapshots.cjs +1 -0
- package/dist/plugins/snapshots.d.cts +1 -0
- package/dist/plugins/snapshots.d.ts +1 -0
- package/dist/plugins/snapshots.development.cjs +1 -0
- package/dist/plugins/snapshots.development.js +737 -0
- package/dist/plugins/snapshots.js +737 -0
- package/dist/plugins/solid/index.d.cts +8 -0
- package/dist/plugins/solid/index.d.ts +8 -0
- package/dist/plugins/solid/index.d.ts.map +1 -0
- package/dist/plugins/solid/solid.d.cts +97 -0
- package/dist/plugins/solid/solid.d.ts +97 -0
- package/dist/plugins/solid/solid.d.ts.map +1 -0
- package/dist/plugins/solid.cjs +1 -0
- package/dist/plugins/solid.d.cts +1 -0
- package/dist/plugins/solid.d.ts +1 -0
- package/dist/plugins/solid.development.cjs +1 -0
- package/dist/plugins/solid.development.js +319 -0
- package/dist/plugins/solid.js +319 -0
- package/dist/plugins/workers/index.d.cts +75 -0
- package/dist/plugins/workers/index.d.ts +75 -0
- package/dist/plugins/workers/index.d.ts.map +1 -0
- package/dist/plugins/workers/node_threads.d.cts +25 -0
- package/dist/plugins/workers/node_threads.d.ts +25 -0
- package/dist/plugins/workers/node_threads.d.ts.map +1 -0
- package/dist/plugins/workers/plan.d.cts +61 -0
- package/dist/plugins/workers/plan.d.ts +61 -0
- package/dist/plugins/workers/plan.d.ts.map +1 -0
- package/dist/plugins/workers/pool.d.cts +144 -0
- package/dist/plugins/workers/pool.d.ts +144 -0
- package/dist/plugins/workers/pool.d.ts.map +1 -0
- package/dist/plugins/workers/protocol.d.cts +112 -0
- package/dist/plugins/workers/protocol.d.ts +112 -0
- package/dist/plugins/workers/protocol.d.ts.map +1 -0
- package/dist/plugins/workers/worker_bind.d.cts +64 -0
- package/dist/plugins/workers/worker_bind.d.ts +64 -0
- package/dist/plugins/workers/worker_bind.d.ts.map +1 -0
- package/dist/plugins/workers/worker_loop.d.cts +14 -0
- package/dist/plugins/workers/worker_loop.d.ts +14 -0
- package/dist/plugins/workers/worker_loop.d.ts.map +1 -0
- package/dist/plugins/workers.cjs +1 -0
- package/dist/plugins/workers.d.cts +1 -0
- package/dist/plugins/workers.d.ts +1 -0
- package/dist/plugins/workers.development.cjs +1 -0
- package/dist/plugins/workers.development.js +596 -0
- package/dist/plugins/workers.js +474 -0
- package/dist/primitives.cjs +1 -1
- package/dist/primitives.d.cts +4 -4
- package/dist/primitives.d.ts +4 -4
- package/dist/primitives.development.cjs +1 -1
- package/dist/primitives.development.js +66 -22
- package/dist/primitives.js +66 -22
- package/dist/shared-BKl12xF1.js +132 -0
- package/dist/shared-Dk-pACZT.cjs +1 -0
- package/dist/shared.cjs +1 -1
- package/dist/shared.d.cts +7 -7
- package/dist/shared.d.ts +7 -7
- package/dist/shared.d.ts.map +1 -1
- package/dist/shared.development.cjs +1 -1
- package/dist/shared.development.js +4 -3
- package/dist/shared.js +4 -3
- package/dist/topological_sort-Cc_yXqPT.js +346 -0
- package/dist/topological_sort-vp1imU6D.cjs +1 -0
- package/dist/type_primitives/assertions.d.cts +12 -16
- package/dist/type_primitives/assertions.d.ts +12 -16
- package/dist/type_primitives/assertions.d.ts.map +1 -1
- package/dist/type_primitives/binary_heap/binary_heap.d.cts +2 -6
- package/dist/type_primitives/binary_heap/binary_heap.d.ts +2 -6
- package/dist/type_primitives/binary_heap/binary_heap.d.ts.map +1 -1
- package/dist/type_primitives/bitset/bitset.d.cts +7 -11
- package/dist/type_primitives/bitset/bitset.d.ts +7 -11
- package/dist/type_primitives/bitset/bitset.d.ts.map +1 -1
- package/dist/type_primitives/brand.d.cts +2 -7
- package/dist/type_primitives/brand.d.ts +2 -7
- package/dist/type_primitives/brand.d.ts.map +1 -1
- package/dist/type_primitives/error.d.cts +1 -2
- package/dist/type_primitives/error.d.ts +1 -2
- package/dist/type_primitives/error.d.ts.map +1 -1
- package/dist/type_primitives/index.d.cts +1 -1
- package/dist/type_primitives/index.d.ts +1 -1
- package/dist/type_primitives/sparse_map/sparse_map.d.cts +3 -7
- package/dist/type_primitives/sparse_map/sparse_map.d.ts +3 -7
- package/dist/type_primitives/sparse_map/sparse_map.d.ts.map +1 -1
- package/dist/type_primitives/sparse_set/sparse_set.d.cts +2 -6
- package/dist/type_primitives/sparse_set/sparse_set.d.ts +2 -6
- package/dist/type_primitives/sparse_set/sparse_set.d.ts.map +1 -1
- package/dist/type_primitives/topological_sort/topological_sort.d.cts +1 -5
- package/dist/type_primitives/topological_sort/topological_sort.d.ts +1 -5
- package/dist/type_primitives/topological_sort/topological_sort.d.ts.map +1 -1
- package/dist/type_primitives/typed_arrays/typed_arrays.d.cts +16 -15
- package/dist/type_primitives/typed_arrays/typed_arrays.d.ts +16 -15
- package/dist/type_primitives/typed_arrays/typed_arrays.d.ts.map +1 -1
- package/dist/utils/error.d.ts.map +1 -1
- package/dist/version.d.cts +3 -3
- package/dist/version.d.ts +3 -3
- package/dist/worker.cjs +1 -0
- package/dist/worker.d.cts +17 -0
- package/dist/worker.d.ts +17 -0
- package/dist/worker.d.ts.map +1 -0
- package/dist/worker.development.cjs +1 -0
- package/dist/worker.development.js +253 -0
- package/dist/worker.js +253 -0
- package/package.json +363 -191
- package/dist/core/ecs/builtin_relations.d.cts +0 -43
- package/dist/core/ecs/builtin_relations.d.ts +0 -43
- package/dist/core/ecs/builtin_relations.d.ts.map +0 -1
- package/dist/core/ecs/event_registry.d.cts +0 -22
- package/dist/core/ecs/event_registry.d.ts +0 -22
- package/dist/core/ecs/event_registry.d.ts.map +0 -1
- package/dist/core/ecs/relation_service.d.ts.map +0 -1
- package/dist/core/ecs/resume.d.cts +0 -85
- package/dist/core/ecs/resume.d.ts +0 -85
- package/dist/core/ecs/resume.d.ts.map +0 -1
- package/dist/core/ecs/snapshot_service.d.cts +0 -94
- package/dist/core/ecs/snapshot_service.d.ts +0 -94
- package/dist/core/ecs/snapshot_service.d.ts.map +0 -1
- package/dist/extensions/editor/editor.d.ts.map +0 -1
- package/dist/extensions/editor/field_handle.d.ts.map +0 -1
- package/dist/extensions/editor/index.cjs +0 -1
- package/dist/extensions/editor/index.d.cts +0 -21
- package/dist/extensions/editor/index.d.ts +0 -21
- package/dist/extensions/editor/index.d.ts.map +0 -1
- package/dist/extensions/editor/index.development.cjs +0 -1
- package/dist/extensions/reactive/ecs_sync.d.cts +0 -214
- package/dist/extensions/reactive/ecs_sync.d.ts +0 -214
- package/dist/extensions/reactive/ecs_sync.d.ts.map +0 -1
- package/dist/extensions/reactive/index.cjs +0 -1
- package/dist/extensions/reactive/index.d.cts +0 -23
- package/dist/extensions/reactive/index.d.ts +0 -23
- package/dist/extensions/reactive/index.d.ts.map +0 -1
- package/dist/extensions/reactive/index.development.cjs +0 -1
- package/dist/extensions/reactive/index.development.js +0 -215
- package/dist/extensions/reactive/index.js +0 -215
- package/dist/extensions/solid/index.cjs +0 -1
- package/dist/extensions/solid/index.d.cts +0 -6
- package/dist/extensions/solid/index.d.ts +0 -6
- package/dist/extensions/solid/index.d.ts.map +0 -1
- package/dist/extensions/solid/index.development.cjs +0 -1
- package/dist/extensions/solid/index.development.js +0 -40
- package/dist/extensions/solid/index.js +0 -36
- package/dist/extensions/solid/kernel_solid.d.cts +0 -45
- package/dist/extensions/solid/kernel_solid.d.ts +0 -45
- package/dist/extensions/solid/kernel_solid.d.ts.map +0 -1
- package/dist/host_commands-BlR3oZ3x.js +0 -2406
- package/dist/host_commands-C2cpU3yC.cjs +0 -1
- package/dist/internal-BoxWl4dG.js +0 -2565
- package/dist/internal-CGBEwfeB.cjs +0 -2
- package/dist/interop-CT-REx0W.cjs +0 -1
- package/dist/interop-CcY6ASQc.js +0 -18
- package/dist/interop-DqxleBo7.js +0 -18
- package/dist/interop-T1HZ-Dpa.cjs +0 -1
- package/dist/kernel-Cz2Kxlwl.js +0 -240
- package/dist/kernel-DgyrLFjW.js +0 -227
- package/dist/kernel-sw7ScKWu.cjs +0 -1
- package/dist/kernel-yWV3XnAb.cjs +0 -1
- package/dist/reactive/array.d.cts +0 -24
- package/dist/reactive/array.d.ts +0 -24
- package/dist/reactive/array.d.ts.map +0 -1
- package/dist/reactive/index.cjs +0 -1
- package/dist/reactive/index.d.cts +0 -11
- package/dist/reactive/index.d.ts +0 -11
- package/dist/reactive/index.d.ts.map +0 -1
- package/dist/reactive/index.development.cjs +0 -1
- package/dist/reactive/index.development.js +0 -18
- package/dist/reactive/index.js +0 -18
- package/dist/reactive/interop.d.cts +0 -19
- package/dist/reactive/interop.d.ts +0 -19
- package/dist/reactive/interop.d.ts.map +0 -1
- package/dist/reactive/kernel.d.cts +0 -73
- package/dist/reactive/kernel.d.ts +0 -73
- package/dist/reactive/kernel.d.ts.map +0 -1
- package/dist/reactive/map.d.cts +0 -16
- package/dist/reactive/map.d.ts +0 -16
- package/dist/reactive/map.d.ts.map +0 -1
- package/dist/reactive/shallow.d.cts +0 -11
- package/dist/reactive/shallow.d.ts +0 -11
- package/dist/reactive/shallow.d.ts.map +0 -1
- package/dist/reactive/struct.d.cts +0 -10
- package/dist/reactive/struct.d.ts +0 -10
- package/dist/reactive/struct.d.ts.map +0 -1
- package/dist/shallow-Bs39EPh1.js +0 -150
- package/dist/shallow-C5YmTbtb.cjs +0 -1
- package/dist/shallow-CiFC70Dz.js +0 -159
- package/dist/shallow-DQ8aG51_.cjs +0 -1
- package/dist/shared-B4v0L1cw.js +0 -109
- package/dist/shared-DU78k0pU.cjs +0 -1
- package/dist/topological_sort-BDvEyb9W.cjs +0 -1
- package/dist/topological_sort-DK6EjpWa.js +0 -135
- package/dist/typed_arrays-D3NmwtCG.cjs +0 -1
- package/dist/typed_arrays-DIVwVy5_.js +0 -258
package/dist/primitives.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { B as
|
|
2
|
-
import { B as y, S as A, t as S } from "./topological_sort-DK6EjpWa.js";
|
|
1
|
+
import { i as l, B as _, a as d, b as o, d as p, e as u, c as g, G as y, g as K, h as b, f as c, t as f } from "./topological_sort-Cc_yXqPT.js";
|
|
3
2
|
class a {
|
|
4
3
|
_dense = [];
|
|
5
4
|
_sparse = [];
|
|
@@ -9,16 +8,16 @@ class a {
|
|
|
9
8
|
get values() {
|
|
10
9
|
return this._dense;
|
|
11
10
|
}
|
|
12
|
-
has(
|
|
13
|
-
return this._dense[this._sparse[
|
|
11
|
+
has(s) {
|
|
12
|
+
return this._dense[this._sparse[s]] === s;
|
|
14
13
|
}
|
|
15
|
-
add(
|
|
16
|
-
this.has(
|
|
14
|
+
add(s) {
|
|
15
|
+
this.has(s) || (this._sparse[s] = this._dense.length, this._dense.push(s));
|
|
17
16
|
}
|
|
18
|
-
delete(
|
|
19
|
-
if (!this.has(
|
|
20
|
-
const
|
|
21
|
-
return this._dense[
|
|
17
|
+
delete(s) {
|
|
18
|
+
if (!this.has(s)) return !1;
|
|
19
|
+
const e = this._sparse[s], t = this._dense[this._dense.length - 1];
|
|
20
|
+
return this._dense[e] = t, this._sparse[t] = e, this._dense.pop(), !0;
|
|
22
21
|
}
|
|
23
22
|
clear() {
|
|
24
23
|
this._dense.length = 0, this._sparse.length = 0;
|
|
@@ -27,19 +26,64 @@ class a {
|
|
|
27
26
|
return this._dense[Symbol.iterator]();
|
|
28
27
|
}
|
|
29
28
|
}
|
|
29
|
+
class n {
|
|
30
|
+
_denseKeys = [];
|
|
31
|
+
_denseVals = [];
|
|
32
|
+
_sparse = [];
|
|
33
|
+
get size() {
|
|
34
|
+
return this._denseKeys.length;
|
|
35
|
+
}
|
|
36
|
+
get keys() {
|
|
37
|
+
return this._denseKeys;
|
|
38
|
+
}
|
|
39
|
+
has(s) {
|
|
40
|
+
return this._denseKeys[this._sparse[s]] === s;
|
|
41
|
+
}
|
|
42
|
+
get(s) {
|
|
43
|
+
return this.has(s) ? this._denseVals[this._sparse[s]] : void 0;
|
|
44
|
+
}
|
|
45
|
+
set(s, e) {
|
|
46
|
+
if (this.has(s)) {
|
|
47
|
+
this._denseVals[this._sparse[s]] = e;
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
50
|
+
this._sparse[s] = this._denseKeys.length, this._denseKeys.push(s), this._denseVals.push(e);
|
|
51
|
+
}
|
|
52
|
+
delete(s) {
|
|
53
|
+
if (!this.has(s)) return !1;
|
|
54
|
+
const e = this._sparse[s], t = this._denseKeys[this._denseKeys.length - 1];
|
|
55
|
+
return this._denseKeys[e] = t, this._denseVals[e] = this._denseVals[this._denseVals.length - 1], this._sparse[t] = e, this._denseKeys.pop(), this._denseVals.pop(), !0;
|
|
56
|
+
}
|
|
57
|
+
clear() {
|
|
58
|
+
this._denseKeys.length = 0, this._denseVals.length = 0, this._sparse.length = 0;
|
|
59
|
+
}
|
|
60
|
+
forEach(s) {
|
|
61
|
+
for (let e = 0; e < this._denseKeys.length; e++)
|
|
62
|
+
s(this._denseKeys[e], this._denseVals[e]);
|
|
63
|
+
}
|
|
64
|
+
[Symbol.iterator]() {
|
|
65
|
+
let s = 0;
|
|
66
|
+
const e = this._denseKeys, t = this._denseVals;
|
|
67
|
+
return {
|
|
68
|
+
next() {
|
|
69
|
+
return s < e.length ? { value: [e[s], t[s++]], done: !1 } : { value: void 0, done: !0 };
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
}
|
|
30
74
|
export {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
75
|
+
l as BinaryHeap,
|
|
76
|
+
_ as BitSet,
|
|
77
|
+
d as GrowableFloat32Array,
|
|
78
|
+
o as GrowableFloat64Array,
|
|
35
79
|
p as GrowableInt16Array,
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
80
|
+
u as GrowableInt32Array,
|
|
81
|
+
g as GrowableInt8Array,
|
|
82
|
+
y as GrowableTypedArray,
|
|
83
|
+
K as GrowableUint16Array,
|
|
84
|
+
b as GrowableUint32Array,
|
|
85
|
+
c as GrowableUint8Array,
|
|
86
|
+
n as SparseMap,
|
|
43
87
|
a as SparseSet,
|
|
44
|
-
|
|
88
|
+
f as topologicalSort
|
|
45
89
|
};
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
class c extends Error {
|
|
2
|
+
constructor(t, e, o, a) {
|
|
3
|
+
super(t, a), this.requestedBytes = e, this.capBytes = o, this.name = "StoreCapExceededError";
|
|
4
|
+
}
|
|
5
|
+
}
|
|
6
|
+
class u extends Error {
|
|
7
|
+
constructor() {
|
|
8
|
+
super(
|
|
9
|
+
'SharedArrayBuffer is not available in this runtime. The chosen world backing is SAB-based and cannot start without it. In browsers this requires cross-origin isolation: serve the page with `Cross-Origin-Opener-Policy: same-origin` and `Cross-Origin-Embedder-Policy: require-corp` (or `credentialless`). Alternatively choose the pure-TS heap profile (`memory: { backing: "heap" }`), which is backed by a plain ArrayBuffer and needs no SAB and no COOP+COEP. In Bun or Node SAB is available unconditionally. If you see this there, the runtime is older than expected, or the global was shadowed.'
|
|
10
|
+
), this.name = "SabUnavailableError";
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
const d = (r) => {
|
|
14
|
+
if (typeof SharedArrayBuffer > "u") throw new u();
|
|
15
|
+
return new SharedArrayBuffer(r);
|
|
16
|
+
}, h = 64 * 1024;
|
|
17
|
+
function f(r, t, e, o = !1) {
|
|
18
|
+
if (e <= 0 || !Number.isInteger(e))
|
|
19
|
+
throw new Error(`${r}: maxBytes must be a positive integer (got ${e})`);
|
|
20
|
+
let a = null;
|
|
21
|
+
const i = (n) => {
|
|
22
|
+
if (n > e)
|
|
23
|
+
throw new c(
|
|
24
|
+
`${r}: requested ${n} bytes exceeds the by-design maxBytes cap of ${e}. This is a hard ceiling with no grow-beyond-cap fallback. Reaching it signals runaway entity or column growth upstream, so diagnose that rather than raising the cap blindly.`,
|
|
25
|
+
n,
|
|
26
|
+
e
|
|
27
|
+
);
|
|
28
|
+
return a === null ? (a = t.create(n, e), a) : (n > a.byteLength && t.growTo(a, n), a);
|
|
29
|
+
};
|
|
30
|
+
return Object.defineProperty(i, "isInPlace", { value: !0, enumerable: !0 }), Object.defineProperty(i, "reservedAtCap", { value: o, enumerable: !0 }), i;
|
|
31
|
+
}
|
|
32
|
+
function w(r = 256 * 1024 * 1024) {
|
|
33
|
+
if (typeof SharedArrayBuffer > "u") throw new u();
|
|
34
|
+
return f(
|
|
35
|
+
"growableSabAllocator",
|
|
36
|
+
{
|
|
37
|
+
create: (t, e) => {
|
|
38
|
+
const o = SharedArrayBuffer;
|
|
39
|
+
return new o(t, { maxByteLength: e });
|
|
40
|
+
},
|
|
41
|
+
// boundary: SharedArrayBuffer.grow is in the spec but not in all
|
|
42
|
+
// lib types. Widen here so the rest of the layer doesn't need to.
|
|
43
|
+
growTo: (t, e) => t.grow(e)
|
|
44
|
+
},
|
|
45
|
+
r
|
|
46
|
+
);
|
|
47
|
+
}
|
|
48
|
+
function b(r = 256 * 1024 * 1024) {
|
|
49
|
+
return f(
|
|
50
|
+
"heapArrayBufferAllocator",
|
|
51
|
+
{
|
|
52
|
+
// Reserve the whole cap as one fixed buffer. `byteLength` (the current
|
|
53
|
+
// need) is ignored: the buffer never resizes, so it must be born at the
|
|
54
|
+
// ceiling. Lazy page-faulting keeps RSS proportional to real use.
|
|
55
|
+
create: (t, e) => new ArrayBuffer(e),
|
|
56
|
+
// Unreachable: the buffer is created at `maxByteLength`, so
|
|
57
|
+
// `createSingleBufferAllocator`'s `bytes > buffer.byteLength` guard never fires
|
|
58
|
+
// (a byte count past the cap throws first). A fixed `ArrayBuffer` has no
|
|
59
|
+
// `.resize()`. Assert loudly rather than attempt one, in case the guard
|
|
60
|
+
// logic ever changes.
|
|
61
|
+
growTo: () => {
|
|
62
|
+
throw new Error(
|
|
63
|
+
"heapArrayBufferAllocator: the heap buffer is fixed at maxBytes and must never grow. Relocate columns within the buffer instead of resizing it."
|
|
64
|
+
);
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
r,
|
|
68
|
+
!0
|
|
69
|
+
);
|
|
70
|
+
}
|
|
71
|
+
function g(r = 256 * 1024 * 1024) {
|
|
72
|
+
if (typeof SharedArrayBuffer > "u") throw new u();
|
|
73
|
+
return f(
|
|
74
|
+
"fixedSabAllocator",
|
|
75
|
+
{
|
|
76
|
+
// Reserve the whole cap as one fixed buffer, as the heap allocator
|
|
77
|
+
// does. `byteLength` (the current need) is ignored: the buffer never
|
|
78
|
+
// grows, so it must be born at the ceiling.
|
|
79
|
+
create: (t, e) => new SharedArrayBuffer(e),
|
|
80
|
+
// Unreachable for the same reason as the heap allocator's: the buffer
|
|
81
|
+
// is created at the cap, and a request past the cap throws first.
|
|
82
|
+
growTo: () => {
|
|
83
|
+
throw new Error(
|
|
84
|
+
"fixedSabAllocator: the buffer is fixed at maxBytes and must never grow. Relocate columns within the buffer instead of resizing it."
|
|
85
|
+
);
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
r,
|
|
89
|
+
!0
|
|
90
|
+
);
|
|
91
|
+
}
|
|
92
|
+
function A(r) {
|
|
93
|
+
if (!(r.buffer instanceof SharedArrayBuffer))
|
|
94
|
+
throw new Error(
|
|
95
|
+
"wasmMemoryAllocator: WebAssembly.Memory must be constructed with `shared: true` so its buffer is a SharedArrayBuffer"
|
|
96
|
+
);
|
|
97
|
+
const t = () => r.buffer, e = (o) => {
|
|
98
|
+
const a = r.buffer.byteLength;
|
|
99
|
+
if (o <= a)
|
|
100
|
+
return t();
|
|
101
|
+
const i = Math.ceil((o - a) / h), n = (s) => (
|
|
102
|
+
// The JS API doesn't expose the Memory's `maximum`, so the cap is
|
|
103
|
+
// reported as unknowable (`null`), the caller declared it at
|
|
104
|
+
// `new WebAssembly.Memory({ maximum })` time.
|
|
105
|
+
new c(
|
|
106
|
+
`wasmMemoryAllocator: memory.grow(${i}) failed (current=${a} bytes, requested=${o} bytes, maximum may be reached)`,
|
|
107
|
+
o,
|
|
108
|
+
null,
|
|
109
|
+
{ cause: s }
|
|
110
|
+
)
|
|
111
|
+
);
|
|
112
|
+
let l;
|
|
113
|
+
try {
|
|
114
|
+
l = r.grow(i);
|
|
115
|
+
} catch (s) {
|
|
116
|
+
throw n(s);
|
|
117
|
+
}
|
|
118
|
+
if (l === -1)
|
|
119
|
+
throw n();
|
|
120
|
+
return t();
|
|
121
|
+
};
|
|
122
|
+
return Object.defineProperty(e, "isInPlace", { value: !0, enumerable: !0 }), e;
|
|
123
|
+
}
|
|
124
|
+
export {
|
|
125
|
+
d as D,
|
|
126
|
+
c as S,
|
|
127
|
+
u as a,
|
|
128
|
+
g as f,
|
|
129
|
+
w as g,
|
|
130
|
+
b as h,
|
|
131
|
+
A as w
|
|
132
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";class u extends Error{constructor(t,e,o,a){super(t,a),this.requestedBytes=e,this.capBytes=o,this.name="StoreCapExceededError"}}class l extends Error{constructor(){super('SharedArrayBuffer is not available in this runtime. The chosen world backing is SAB-based and cannot start without it. In browsers this requires cross-origin isolation: serve the page with `Cross-Origin-Opener-Policy: same-origin` and `Cross-Origin-Embedder-Policy: require-corp` (or `credentialless`). Alternatively choose the pure-TS heap profile (`memory: { backing: "heap" }`), which is backed by a plain ArrayBuffer and needs no SAB and no COOP+COEP. In Bun or Node SAB is available unconditionally. If you see this there, the runtime is older than expected, or the global was shadowed.'),this.name="SabUnavailableError"}}const h=r=>{if(typeof SharedArrayBuffer>"u")throw new l;return new SharedArrayBuffer(r)},d=64*1024;function f(r,t,e,o=!1){if(e<=0||!Number.isInteger(e))throw new Error(`${r}: maxBytes must be a positive integer (got ${e})`);let a=null;const i=n=>{if(n>e)throw new u(`${r}: requested ${n} bytes exceeds the by-design maxBytes cap of ${e}. This is a hard ceiling with no grow-beyond-cap fallback. Reaching it signals runaway entity or column growth upstream, so diagnose that rather than raising the cap blindly.`,n,e);return a===null?(a=t.create(n,e),a):(n>a.byteLength&&t.growTo(a,n),a)};return Object.defineProperty(i,"isInPlace",{value:!0,enumerable:!0}),Object.defineProperty(i,"reservedAtCap",{value:o,enumerable:!0}),i}function w(r=256*1024*1024){if(typeof SharedArrayBuffer>"u")throw new l;return f("growableSabAllocator",{create:(t,e)=>{const o=SharedArrayBuffer;return new o(t,{maxByteLength:e})},growTo:(t,e)=>t.grow(e)},r)}function b(r=256*1024*1024){return f("heapArrayBufferAllocator",{create:(t,e)=>new ArrayBuffer(e),growTo:()=>{throw new Error("heapArrayBufferAllocator: the heap buffer is fixed at maxBytes and must never grow. Relocate columns within the buffer instead of resizing it.")}},r,!0)}function A(r=256*1024*1024){if(typeof SharedArrayBuffer>"u")throw new l;return f("fixedSabAllocator",{create:(t,e)=>new SharedArrayBuffer(e),growTo:()=>{throw new Error("fixedSabAllocator: the buffer is fixed at maxBytes and must never grow. Relocate columns within the buffer instead of resizing it.")}},r,!0)}function g(r){if(!(r.buffer instanceof SharedArrayBuffer))throw new Error("wasmMemoryAllocator: WebAssembly.Memory must be constructed with `shared: true` so its buffer is a SharedArrayBuffer");const t=()=>r.buffer,e=o=>{const a=r.buffer.byteLength;if(o<=a)return t();const i=Math.ceil((o-a)/d),n=s=>new u(`wasmMemoryAllocator: memory.grow(${i}) failed (current=${a} bytes, requested=${o} bytes, maximum may be reached)`,o,null,{cause:s});let c;try{c=r.grow(i)}catch(s){throw n(s)}if(c===-1)throw n();return t()};return Object.defineProperty(e,"isInPlace",{value:!0,enumerable:!0}),e}exports.DEFAULT_SAB_ALLOCATOR=h;exports.SabUnavailableError=l;exports.StoreCapExceededError=u;exports.fixedSabAllocator=A;exports.growableSabAllocator=w;exports.heapArrayBufferAllocator=b;exports.wasmMemoryAllocator=g;
|
package/dist/shared.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./shared-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./shared-Dk-pACZT.cjs");exports.DEFAULT_SAB_ALLOCATOR=a.DEFAULT_SAB_ALLOCATOR;exports.SabUnavailableError=a.SabUnavailableError;exports.fixedSabAllocator=a.fixedSabAllocator;exports.growableSabAllocator=a.growableSabAllocator;exports.wasmMemoryAllocator=a.wasmMemoryAllocator;
|
package/dist/shared.d.cts
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* `@oasys/oecs/shared
|
|
2
|
+
* `@oasys/oecs/shared`, the opt-in SharedArrayBuffer and WASM profile.
|
|
3
3
|
*
|
|
4
4
|
* The default `@oasys/oecs` profile runs the column store over a plain
|
|
5
5
|
* fixed `ArrayBuffer` (no cross-origin isolation). This entry surfaces the
|
|
6
6
|
* `SharedArrayBuffer`-backed allocators for worlds that opt into worker offload
|
|
7
|
-
* or a WASM compute backend
|
|
8
|
-
* or pass one of these allocators through `memory: { allocator }`.
|
|
7
|
+
* or a WASM compute backend, construct with `new ECS({ memory: { backing: "shared" } })`,
|
|
8
|
+
* or pass one of these allocators through `memory: { backing: { allocator } }`.
|
|
9
9
|
*
|
|
10
|
-
* **Requires cross-origin isolation (COOP
|
|
10
|
+
* **Requires cross-origin isolation (COOP and COEP) in browsers**, that's the
|
|
11
11
|
* whole reason it's a separate, opt-in profile.
|
|
12
12
|
*
|
|
13
|
-
* The WASM compute backend itself is
|
|
13
|
+
* The WASM compute backend itself is not bundled here: oecs ships the
|
|
14
14
|
* `ComputeBackend` *seam* (`@oasys/oecs` → `attachBackend`) plus the
|
|
15
15
|
* cross-thread ring transport (`HostCommandDispatcher`). The worker entrypoint
|
|
16
16
|
* and the compiled WASM module are the consumer's to provide.
|
|
17
17
|
*
|
|
18
18
|
* @module
|
|
19
19
|
*/
|
|
20
|
-
export { growableSabAllocator, wasmMemoryAllocator, DEFAULT_SAB_ALLOCATOR, SabUnavailableError } from './core/store/index.cjs';
|
|
21
|
-
export type {
|
|
20
|
+
export { growableSabAllocator, fixedSabAllocator, wasmMemoryAllocator, DEFAULT_SAB_ALLOCATOR, SabUnavailableError } from './core/store/index.cjs';
|
|
21
|
+
export type { BufferAllocator, InPlaceBufferAllocator } from './core/store/index.cjs';
|
|
22
22
|
//# sourceMappingURL=shared.d.ts.map
|
package/dist/shared.d.ts
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* `@oasys/oecs/shared
|
|
2
|
+
* `@oasys/oecs/shared`, the opt-in SharedArrayBuffer and WASM profile.
|
|
3
3
|
*
|
|
4
4
|
* The default `@oasys/oecs` profile runs the column store over a plain
|
|
5
5
|
* fixed `ArrayBuffer` (no cross-origin isolation). This entry surfaces the
|
|
6
6
|
* `SharedArrayBuffer`-backed allocators for worlds that opt into worker offload
|
|
7
|
-
* or a WASM compute backend
|
|
8
|
-
* or pass one of these allocators through `memory: { allocator }`.
|
|
7
|
+
* or a WASM compute backend, construct with `new ECS({ memory: { backing: "shared" } })`,
|
|
8
|
+
* or pass one of these allocators through `memory: { backing: { allocator } }`.
|
|
9
9
|
*
|
|
10
|
-
* **Requires cross-origin isolation (COOP
|
|
10
|
+
* **Requires cross-origin isolation (COOP and COEP) in browsers**, that's the
|
|
11
11
|
* whole reason it's a separate, opt-in profile.
|
|
12
12
|
*
|
|
13
|
-
* The WASM compute backend itself is
|
|
13
|
+
* The WASM compute backend itself is not bundled here: oecs ships the
|
|
14
14
|
* `ComputeBackend` *seam* (`@oasys/oecs` → `attachBackend`) plus the
|
|
15
15
|
* cross-thread ring transport (`HostCommandDispatcher`). The worker entrypoint
|
|
16
16
|
* and the compiled WASM module are the consumer's to provide.
|
|
17
17
|
*
|
|
18
18
|
* @module
|
|
19
19
|
*/
|
|
20
|
-
export { growableSabAllocator, wasmMemoryAllocator, DEFAULT_SAB_ALLOCATOR, SabUnavailableError } from './core/store/index.js';
|
|
21
|
-
export type {
|
|
20
|
+
export { growableSabAllocator, fixedSabAllocator, wasmMemoryAllocator, DEFAULT_SAB_ALLOCATOR, SabUnavailableError } from './core/store/index.js';
|
|
21
|
+
export type { BufferAllocator, InPlaceBufferAllocator } from './core/store/index.js';
|
|
22
22
|
//# sourceMappingURL=shared.d.ts.map
|
package/dist/shared.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../src/shared.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,OAAO,EACN,oBAAoB,EACpB,mBAAmB,EACnB,qBAAqB,EACrB,mBAAmB,EACnB,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../src/shared.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,OAAO,EACN,oBAAoB,EACpB,iBAAiB,EACjB,mBAAmB,EACnB,qBAAqB,EACrB,mBAAmB,EACnB,MAAM,cAAc,CAAC;AAEtB,YAAY,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./shared-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./shared-Dk-pACZT.cjs");exports.DEFAULT_SAB_ALLOCATOR=a.DEFAULT_SAB_ALLOCATOR;exports.SabUnavailableError=a.SabUnavailableError;exports.fixedSabAllocator=a.fixedSabAllocator;exports.growableSabAllocator=a.growableSabAllocator;exports.wasmMemoryAllocator=a.wasmMemoryAllocator;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { D as r, a as l,
|
|
1
|
+
import { D as r, a as l, f as A, g as s, w as b } from "./shared-BKl12xF1.js";
|
|
2
2
|
export {
|
|
3
3
|
r as DEFAULT_SAB_ALLOCATOR,
|
|
4
4
|
l as SabUnavailableError,
|
|
5
|
-
A as
|
|
6
|
-
s as
|
|
5
|
+
A as fixedSabAllocator,
|
|
6
|
+
s as growableSabAllocator,
|
|
7
|
+
b as wasmMemoryAllocator
|
|
7
8
|
};
|
package/dist/shared.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { D as r, a as l,
|
|
1
|
+
import { D as r, a as l, f as A, g as s, w as b } from "./shared-BKl12xF1.js";
|
|
2
2
|
export {
|
|
3
3
|
r as DEFAULT_SAB_ALLOCATOR,
|
|
4
4
|
l as SabUnavailableError,
|
|
5
|
-
A as
|
|
6
|
-
s as
|
|
5
|
+
A as fixedSabAllocator,
|
|
6
|
+
s as growableSabAllocator,
|
|
7
|
+
b as wasmMemoryAllocator
|
|
7
8
|
};
|