@quenty/immediateutils 1.9.1 → 1.10.1

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 CHANGED
@@ -3,6 +3,14 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [1.10.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/immediateutils@1.10.0...@quenty/immediateutils@1.10.1) (2026-11-18)
7
+
8
+ **Note:** Version bump only for package @quenty/immediateutils
9
+
10
+ # [1.10.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/immediateutils@1.9.1...@quenty/immediateutils@1.10.0) (2026-10-26)
11
+
12
+ **Note:** Version bump only for package @quenty/immediateutils
13
+
6
14
  ## [1.9.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/immediateutils@1.9.0...@quenty/immediateutils@1.9.1) (2026-10-20)
7
15
 
8
16
  ### Bug Fixes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenty/immediateutils",
3
- "version": "1.9.1",
3
+ "version": "1.10.1",
4
4
  "description": "Immediate-mode ECS loop and hooks implemented via jecs+iris addons",
5
5
  "keywords": [
6
6
  "Roblox",
@@ -31,23 +31,25 @@
31
31
  "Quenty"
32
32
  ],
33
33
  "dependencies": {
34
- "@quenty/baseobject": "10.16.3",
35
- "@quenty/brio": "14.38.1",
36
- "@quenty/instanceutils": "13.38.1",
34
+ "@quenty/baseobject": "10.16.4",
35
+ "@quenty/brio": "14.38.2",
36
+ "@quenty/instanceutils": "13.38.2",
37
+ "@quenty/jestutils": "1.1.4",
37
38
  "@quenty/loader": "10.11.3",
38
- "@quenty/maid": "3.12.3",
39
- "@quenty/nevermore-test-runner": "1.6.3",
40
- "@quenty/randomutils": "6.20.3",
41
- "@quenty/rx": "13.35.1",
42
- "@quenty/servicebag": "11.21.3",
43
- "@quenty/signal": "7.13.4",
39
+ "@quenty/maid": "3.12.4",
40
+ "@quenty/nevermore-test-runner": "1.6.4",
41
+ "@quenty/randomutils": "6.20.4",
42
+ "@quenty/rx": "13.35.2",
43
+ "@quenty/servicebag": "11.21.4",
44
+ "@quenty/signal": "7.13.5",
44
45
  "@quenty/spring": "10.12.3",
45
- "@quenty/tie": "10.52.1",
46
- "@quenty/valueobject": "13.39.1",
47
- "@quentystudios/jest-lua": "3.10.0-quenty.2"
46
+ "@quenty/steputils": "3.9.4",
47
+ "@quenty/tie": "10.52.2",
48
+ "@quenty/valueobject": "13.39.2",
49
+ "@quentystudios/jest-lua": "3.10.0-quenty.3"
48
50
  },
49
51
  "publishConfig": {
50
52
  "access": "public"
51
53
  },
52
- "gitHead": "533798d87896e367ee481abe66b7f22b86965e1e"
54
+ "gitHead": "f51b2de38a02f8d92758da8d381a378e760170aa"
53
55
  }
@@ -627,6 +627,12 @@ local function beginRequire(controller: LiveController, record: PathRecord, sour
627
627
  previousClone:Destroy()
628
628
  end
629
629
 
630
+ if previousUnregister then
631
+ print(`{LOG_PREFIX} {record.relativePath} reloaded`)
632
+ else
633
+ print(`{LOG_PREFIX} {record.relativePath} loaded`)
634
+ end
635
+
630
636
  resetErrorLog(controller.rt)
631
637
  end)
632
638
  end
@@ -12,11 +12,14 @@ local ImmediateCoreUtils = require("ImmediateCoreUtils")
12
12
  local ImmediateHotReloadInstall = require("ImmediateHotReloadInstall")
13
13
  local ImmediateScheduler = require("ImmediateScheduler")
14
14
  local Jest = require("Jest")
15
+ local JestUtils = require("JestUtils")
15
16
  local ServiceBag = require("ServiceBag")
17
+ local StepUtils = require("StepUtils")
16
18
 
17
19
  local describe = Jest.Globals.describe
18
20
  local expect = Jest.Globals.expect
19
21
  local it = Jest.Globals.it
22
+ local jest = Jest.Globals.jest
20
23
 
21
24
  local fixtures = script.Parent.fixtures
22
25
 
@@ -30,11 +33,6 @@ local PLAY_CLIENT = {
30
33
  isServer = false,
31
34
  }
32
35
 
33
- local function settle()
34
- task.wait()
35
- task.wait()
36
- end
37
-
38
36
  local function cloneFixture(fixtureName: string, canonicalName: string, parent: Instance): ModuleScript
39
37
  local fixture = fixtures:FindFirstChild(fixtureName)
40
38
  assert(fixture and fixture:IsA("ModuleScript"), `missing fixture {fixtureName}`)
@@ -64,7 +62,7 @@ local function installLive(systems: Instance, playContext)
64
62
  local rt, scheduler = makeRuntime()
65
63
  local installer = ImmediateHotReloadInstall.install(systems, playContext :: any)
66
64
  installer(rt, scheduler)
67
- settle()
65
+ StepUtils.deferWait()
68
66
  return rt, scheduler
69
67
  end
70
68
 
@@ -141,7 +139,7 @@ describe("ImmediateHotReloadInstall live loading", function()
141
139
 
142
140
  first:Destroy()
143
141
  cloneFixture("sys_counted", "sys_counted", systems)
144
- settle()
142
+ StepUtils.deferWait()
145
143
 
146
144
  expect(counted.getDestroyCount()).toEqual(1)
147
145
  expect(dictionary(scheduler).sys_counted).never.toEqual(counted)
@@ -161,7 +159,7 @@ describe("ImmediateHotReloadInstall live loading", function()
161
159
 
162
160
  first:Destroy()
163
161
  cloneFixture("sys_named_v2", "sys_named", systems)
164
- settle()
162
+ StepUtils.deferWait()
165
163
 
166
164
  expect(dictionary(scheduler).custom).toEqual(nil)
167
165
  expect(dictionary(scheduler).custom2).never.toEqual(nil)
@@ -183,7 +181,7 @@ describe("ImmediateHotReloadInstall live loading", function()
183
181
  expect(dictionary(scheduler).sharedName).never.toEqual(nil)
184
182
 
185
183
  cloneFixture("sys_dup_b", "sys_dup_b", systems)
186
- settle()
184
+ StepUtils.deferWait()
187
185
 
188
186
  expect(dictionary(scheduler).sharedName).never.toEqual(nil)
189
187
  expect(dictionary(scheduler).sys_dup_b).toEqual(nil)
@@ -202,7 +200,7 @@ describe("ImmediateHotReloadInstall live loading", function()
202
200
 
203
201
  first:Destroy()
204
202
  cloneFixture("sys_fail", "sys_ok", systems)
205
- settle()
203
+ StepUtils.deferWait()
206
204
 
207
205
  expect(dictionary(scheduler).sys_ok).never.toEqual(nil)
208
206
  rt.blackboard.from = nil
@@ -211,7 +209,7 @@ describe("ImmediateHotReloadInstall live loading", function()
211
209
 
212
210
  systems:FindFirstChild("sys_ok"):Destroy()
213
211
  cloneFixture("sys_ok_v2", "sys_ok", systems)
214
- settle()
212
+ StepUtils.deferWait()
215
213
 
216
214
  rt.blackboard.from = nil
217
215
  scheduler:Tick(rt)
@@ -230,7 +228,7 @@ describe("ImmediateHotReloadInstall live loading", function()
230
228
  expect(dictionary(scheduler).sys_ok).never.toEqual(nil)
231
229
 
232
230
  first:Destroy()
233
- settle()
231
+ StepUtils.deferWait()
234
232
 
235
233
  expect(dictionary(scheduler).sys_ok).toEqual(nil)
236
234
 
@@ -240,17 +238,25 @@ describe("ImmediateHotReloadInstall live loading", function()
240
238
  end)
241
239
 
242
240
  it("ignores a stale yielding require after a newer revision", function()
241
+ JestUtils.useFakeTimers()
243
242
  local root, systems = makeLiveSystemsUnderRS()
244
243
  local first = cloneFixture("sys_yield", "sys_ok", systems)
245
244
 
246
- local rt, scheduler = makeRuntime()
247
- local installer = ImmediateHotReloadInstall.install(systems, PLAY_CLIENT)
248
- installer(rt, scheduler)
245
+ local rt, scheduler = installLive(systems, PLAY_CLIENT)
246
+ expect(dictionary(scheduler).sys_ok).toEqual(nil)
249
247
 
250
248
  first:Destroy()
251
249
  cloneFixture("sys_ok_v2", "sys_ok", systems)
252
- task.wait(0.15)
253
- task.wait()
250
+ StepUtils.deferWait()
251
+ jest.runOnlyPendingTimers()
252
+
253
+ local executionClones = 0
254
+ for _, child in systems:GetChildren() do
255
+ if string.sub(child.Name, 1, 4) == "_HR_" then
256
+ executionClones += 1
257
+ end
258
+ end
259
+ expect(executionClones).toEqual(1)
254
260
 
255
261
  rt.blackboard.from = nil
256
262
  scheduler:Tick(rt)
@@ -310,8 +316,8 @@ describe("ImmediateHotReloadInstall shadow publication", function()
310
316
  addLoader(shadowSystems)
311
317
  cloneFixture("sys_ok_v2", "sys_ok", shadowSystems)
312
318
  shadowRoot.Parent = ServerScriptService
313
- settle()
314
- settle()
319
+ StepUtils.deferWait()
320
+ StepUtils.deferWait()
315
321
 
316
322
  rt.blackboard.from = nil
317
323
  scheduler:Tick(rt)
@@ -337,7 +343,7 @@ describe("ImmediateHotReloadInstall shadow publication", function()
337
343
  addLoader(shadowSystems)
338
344
  cloneFixture("sys_ok", "sys_ok", shadowSystems)
339
345
  shadowRoot.Parent = ServerScriptService
340
- settle()
346
+ StepUtils.deferWait()
341
347
 
342
348
  shadowRoot:Destroy()
343
349
  local shadowRoot2 = Instance.new("Folder")
@@ -348,8 +354,8 @@ describe("ImmediateHotReloadInstall shadow publication", function()
348
354
  addLoader(shadowSystems2)
349
355
  cloneFixture("sys_ok_v2", "sys_ok", shadowSystems2)
350
356
  shadowRoot2.Parent = ServerScriptService
351
- settle()
352
- settle()
357
+ StepUtils.deferWait()
358
+ StepUtils.deferWait()
353
359
 
354
360
  rt.blackboard.from = nil
355
361
  scheduler:Tick(rt)