@vxrn/vite-native-hmr 2.0.0-beta.33.1 → 2.0.0-beta.46.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.
Files changed (37) hide show
  1. package/dist/cjs/devServerClient.cjs +113 -129
  2. package/dist/cjs/devServerClient.native.cjs +214 -0
  3. package/dist/cjs/devServerClient.native.js +184 -199
  4. package/dist/cjs/devServerClient.native.js.map +1 -1
  5. package/dist/cjs/getDevServerLocation.cjs +32 -43
  6. package/dist/cjs/getDevServerLocation.native.cjs +50 -0
  7. package/dist/cjs/getDevServerLocation.native.js +32 -42
  8. package/dist/cjs/getDevServerLocation.native.js.map +1 -1
  9. package/dist/cjs/hmr-client.cjs +155 -175
  10. package/dist/cjs/hmr-client.native.cjs +231 -0
  11. package/dist/cjs/hmr-client.native.js +210 -224
  12. package/dist/cjs/hmr-client.native.js.map +1 -1
  13. package/dist/cjs/index.cjs +14 -18
  14. package/dist/cjs/index.native.cjs +29 -0
  15. package/dist/cjs/index.native.js +14 -17
  16. package/dist/cjs/index.native.js.map +1 -1
  17. package/dist/esm/devServerClient.mjs +93 -100
  18. package/dist/esm/devServerClient.mjs.map +1 -1
  19. package/dist/esm/devServerClient.native.js +164 -171
  20. package/dist/esm/devServerClient.native.js.map +1 -1
  21. package/dist/esm/getDevServerLocation.mjs +17 -17
  22. package/dist/esm/getDevServerLocation.mjs.map +1 -1
  23. package/dist/esm/getDevServerLocation.native.js +17 -17
  24. package/dist/esm/getDevServerLocation.native.js.map +1 -1
  25. package/dist/esm/hmr-client.mjs +143 -157
  26. package/dist/esm/hmr-client.mjs.map +1 -1
  27. package/dist/esm/hmr-client.native.js +198 -207
  28. package/dist/esm/hmr-client.native.js.map +1 -1
  29. package/dist/esm/index.js +4 -1
  30. package/dist/esm/index.js.map +1 -1
  31. package/dist/esm/index.mjs +4 -1
  32. package/dist/esm/index.mjs.map +1 -1
  33. package/dist/esm/index.native.js +4 -1
  34. package/dist/esm/index.native.js.map +1 -1
  35. package/package.json +4 -4
  36. package/types/devServerClient.d.ts.map +1 -1
  37. package/types/index.d.ts.map +1 -1
@@ -1,219 +1,210 @@
1
1
  import { getDevServerLocation } from "./getDevServerLocation.native.js";
2
+
2
3
  function _class_call_check(instance, Constructor) {
3
- if (!(instance instanceof Constructor)) {
4
- throw new TypeError("Cannot call a class as a function");
5
- }
4
+ if (!(instance instanceof Constructor)) {
5
+ throw new TypeError("Cannot call a class as a function");
6
+ }
6
7
  }
7
8
  function _defineProperties(target, props) {
8
- for (var i = 0; i < props.length; i++) {
9
- var descriptor = props[i];
10
- descriptor.enumerable = descriptor.enumerable || false;
11
- descriptor.configurable = true;
12
- if ("value" in descriptor) descriptor.writable = true;
13
- Object.defineProperty(target, descriptor.key, descriptor);
14
- }
9
+ for (var i = 0; i < props.length; i++) {
10
+ var descriptor = props[i];
11
+ descriptor.enumerable = descriptor.enumerable || false;
12
+ descriptor.configurable = true;
13
+ if ("value" in descriptor) descriptor.writable = true;
14
+ Object.defineProperty(target, descriptor.key, descriptor);
15
+ }
15
16
  }
16
17
  function _create_class(Constructor, protoProps, staticProps) {
17
- if (protoProps) _defineProperties(Constructor.prototype, protoProps);
18
- if (staticProps) _defineProperties(Constructor, staticProps);
19
- return Constructor;
18
+ if (protoProps) _defineProperties(Constructor.prototype, protoProps);
19
+ if (staticProps) _defineProperties(Constructor, staticProps);
20
+ return Constructor;
20
21
  }
21
22
  function _define_property(obj, key, value) {
22
- if (key in obj) {
23
- Object.defineProperty(obj, key, {
24
- value,
25
- enumerable: true,
26
- configurable: true,
27
- writable: true
28
- });
29
- } else {
30
- obj[key] = value;
31
- }
32
- return obj;
23
+ if (key in obj) {
24
+ Object.defineProperty(obj, key, {
25
+ value,
26
+ enumerable: true,
27
+ configurable: true,
28
+ writable: true
29
+ });
30
+ } else {
31
+ obj[key] = value;
32
+ }
33
+ return obj;
33
34
  }
34
- var HMRClient = /* @__PURE__ */function () {
35
- "use strict";
36
-
37
- function HMRClient2(app) {
38
- var _this = this;
39
- _class_call_check(this, HMRClient2);
40
- _define_property(this, "app", void 0);
41
- _define_property(this, "url", void 0);
42
- _define_property(this, "socket", void 0);
43
- _define_property(this, "lastHash", void 0);
44
- this.app = app;
45
- this.lastHash = "";
46
- var port = process.env.REACT_NATIVE_SERVER_PUBLIC_PORT || 8081;
47
- this.url = `ws://${getDevServerLocation().hostname}:${port}/__hmr?platform=${process.env.REACT_NATIVE_PLATFORM || "ios"}`;
48
- this.socket = new WebSocket(this.url);
49
- console.info(" \u24F5 [hmr] connecting...");
50
- this.socket.onopen = function () {
51
- console.info(" \u24F5 [hmr] connected");
52
- };
53
- this.socket.onclose = function () {
54
- console.info(` \u24F5 [hmr] disconnected ${_this.url}`);
55
- };
56
- this.socket.onerror = function (event) {
57
- console.error(" \u24F5 [hmr] error", event);
58
- };
59
- this.socket.onmessage = function (event) {
60
- try {
61
- var data = JSON.parse(event.data.toString());
62
- _this.processMessage(data);
63
- } catch (error) {
64
- console.warn(" \u24F5 [hmr] invalid message", error);
65
- }
66
- };
67
- }
68
- _create_class(HMRClient2, [{
69
- key: "upToDate",
70
- value: function upToDate(hash) {
71
- if (hash) {
72
- this.lastHash = hash;
73
- }
74
- return this.lastHash === __webpack_hash__;
75
- }
76
- }, {
77
- key: "processMessage",
78
- value: function processMessage(message) {
79
- switch (message.action) {
80
- case "building":
81
- var _message_body;
82
- this.app.LoadingView.showMessage("Rebuilding...", "refresh");
83
- console.info(" \u24F5 [hmr] bundle rebuilding", {
84
- name: (_message_body = message.body) === null || _message_body === void 0 ? void 0 : _message_body.name
85
- });
86
- break;
87
- // biome-ignore lint/suspicious/noFallthroughSwitchClause: <explanation>
88
- case "built":
89
- var _message_body1, _message_body2;
90
- console.info(" \u24F5 [hmr] bundle rebuilt", {
91
- name: (_message_body1 = message.body) === null || _message_body1 === void 0 ? void 0 : _message_body1.name,
92
- time: (_message_body2 = message.body) === null || _message_body2 === void 0 ? void 0 : _message_body2.time
93
- });
94
- // Fall through
95
- case "sync":
96
- var _message_body_errors, _message_body_warnings;
97
- if (!message.body) {
98
- console.warn(" \u24F5 [hmr] message body is empty");
99
- return;
100
- }
101
- if ((_message_body_errors = message.body.errors) === null || _message_body_errors === void 0 ? void 0 : _message_body_errors.length) {
102
- message.body.errors.forEach(function (error) {
103
- console.error("Cannot apply update due to error:", error);
104
- });
105
- this.app.LoadingView.hide();
106
- return;
107
- }
108
- if ((_message_body_warnings = message.body.warnings) === null || _message_body_warnings === void 0 ? void 0 : _message_body_warnings.length) {
109
- message.body.warnings.forEach(function (warning) {
110
- console.warn(" \u24F5 [hmr] bundle contains warnings:", warning);
111
- });
112
- }
113
- this.applyUpdate(message.body);
114
- }
115
- }
116
- }, {
117
- key: "applyUpdate",
118
- value: function applyUpdate(update) {
119
- if (!module.hot) {
120
- throw new Error(" \u24F5 [hmr] hot Module Replacement is disabled.");
121
- }
122
- if (!this.upToDate(update.hash) && module.hot.status() === "idle") {
123
- console.info(" \u24F5 [hmr] checking for updates on the server...");
124
- this.checkUpdates(update);
125
- }
126
- }
127
- }, {
128
- key: "checkUpdates",
129
- value: function checkUpdates(update) {
130
- var _this = this;
131
- try {
132
- var _module_hot;
133
- this.app.LoadingView.showMessage("Refreshing...", "refresh");
134
- (_module_hot = module.hot) === null || _module_hot === void 0 ? void 0 : _module_hot.check(false).then(function (updatedModules) {
135
- var _module_hot3;
136
- if (!updatedModules) {
137
- console.warn(" \u24F5 [hmr] cannot find update - full reload needed");
138
- _this.app.reload();
139
- return;
140
- }
141
- (_module_hot3 = module.hot) === null || _module_hot3 === void 0 ? void 0 : _module_hot3.apply({
142
- ignoreDeclined: true,
143
- ignoreUnaccepted: false,
144
- ignoreErrored: false,
145
- onDeclined: function (data) {
146
- console.warn(" \u24F5 [hmr] ignored an update due to declined module", {
147
- chain: data.chain
148
- });
149
- }
150
- }).then(function (renewedModules) {
151
- if (!_this.upToDate()) {
152
- _this.checkUpdates(update);
153
- }
154
- var unacceptedModules = updatedModules.filter(function (moduleId) {
155
- return renewedModules && renewedModules.indexOf(moduleId) < 0;
156
- });
157
- if (unacceptedModules.length) {
158
- console.warn(" \u24F5 [hmr] not every module was accepted - full reload needed", {
159
- unacceptedModules
160
- });
161
- _this.app.reload();
162
- } else {
163
- console.info(" \u24F5 [hmr] renewed modules - app is up to date", {
164
- renewedModules
165
- });
166
- _this.app.dismissErrors();
167
- }
168
- });
169
- });
170
- } catch (error) {
171
- var _module_hot1, _module_hot2;
172
- if (((_module_hot1 = module.hot) === null || _module_hot1 === void 0 ? void 0 : _module_hot1.status()) === "fail" || ((_module_hot2 = module.hot) === null || _module_hot2 === void 0 ? void 0 : _module_hot2.status()) === "abort") {
173
- console.warn(" \u24F5 [hmr] cannot check for update - full reload needed");
174
- console.warn("[hmr]", error);
175
- this.app.reload();
176
- } else {
177
- console.warn(" \u24F5 [hmr] update check failed", {
178
- error
179
- });
180
- }
181
- } finally {
182
- this.app.LoadingView.hide();
183
- }
184
- }
185
- }]);
186
- return HMRClient2;
187
- }();
188
- var loadHMRClient = function () {
189
- var {
190
- DevSettings,
191
- Platform
192
- } = require("react-native");
193
- var LoadingView = {
194
- showMessage: function () {},
195
- hide: function () {}
196
- };
197
- var reload = function () {
198
- return DevSettings.reload();
199
- };
200
- var dismissErrors = function () {
201
- if (Platform.OS === "ios") {
202
- var _NativeRedBox_dismiss;
203
- var NativeRedBox = require("react-native/Libraries/NativeModules/specs/NativeRedBox").default;
204
- NativeRedBox === null || NativeRedBox === void 0 ? void 0 : (_NativeRedBox_dismiss = NativeRedBox.dismiss) === null || _NativeRedBox_dismiss === void 0 ? void 0 : _NativeRedBox_dismiss.call(NativeRedBox);
205
- } else {
206
- var NativeExceptionsManager = require("react-native/Libraries/Core/NativeExceptionsManager").default;
207
- NativeExceptionsManager === null || NativeExceptionsManager === void 0 ? void 0 : NativeExceptionsManager.dismissRedbox();
208
- }
209
- var LogBoxData = require("react-native/Libraries/LogBox/Data/LogBoxData");
210
- LogBoxData.clear();
211
- };
212
- new HMRClient({
213
- reload,
214
- dismissErrors,
215
- LoadingView
216
- });
35
+ var HMRClient = /* @__PURE__ */ (function() {
36
+ "use strict";
37
+ function HMRClient2(app) {
38
+ var _this = this;
39
+ _class_call_check(this, HMRClient2);
40
+ _define_property(this, "app", void 0);
41
+ _define_property(this, "url", void 0);
42
+ _define_property(this, "socket", void 0);
43
+ _define_property(this, "lastHash", void 0);
44
+ this.app = app;
45
+ this.lastHash = "";
46
+ var port = process.env.REACT_NATIVE_SERVER_PUBLIC_PORT || 8081;
47
+ this.url = `ws://${getDevServerLocation().hostname}:${port}/__hmr?platform=${process.env.REACT_NATIVE_PLATFORM || "ios"}`;
48
+ this.socket = new WebSocket(this.url);
49
+ console.info(" ⓵ [hmr] connecting...");
50
+ this.socket.onopen = function() {
51
+ console.info(" ⓵ [hmr] connected");
52
+ };
53
+ this.socket.onclose = function() {
54
+ console.info(` \u24F5 [hmr] disconnected ${_this.url}`);
55
+ };
56
+ this.socket.onerror = function(event) {
57
+ console.error(" ⓵ [hmr] error", event);
58
+ };
59
+ this.socket.onmessage = function(event) {
60
+ try {
61
+ var data = JSON.parse(event.data.toString());
62
+ _this.processMessage(data);
63
+ } catch (error) {
64
+ console.warn(" ⓵ [hmr] invalid message", error);
65
+ }
66
+ };
67
+ }
68
+ _create_class(HMRClient2, [
69
+ {
70
+ key: "upToDate",
71
+ value: function upToDate(hash) {
72
+ if (hash) {
73
+ this.lastHash = hash;
74
+ }
75
+ return this.lastHash === __webpack_hash__;
76
+ }
77
+ },
78
+ {
79
+ key: "processMessage",
80
+ value: function processMessage(message) {
81
+ switch (message.action) {
82
+ case "building":
83
+ var _message_body;
84
+ this.app.LoadingView.showMessage("Rebuilding...", "refresh");
85
+ console.info(" ⓵ [hmr] bundle rebuilding", { name: (_message_body = message.body) === null || _message_body === void 0 ? void 0 : _message_body.name });
86
+ break;
87
+ case "built":
88
+ var _message_body1, _message_body2;
89
+ console.info(" ⓵ [hmr] bundle rebuilt", {
90
+ name: (_message_body1 = message.body) === null || _message_body1 === void 0 ? void 0 : _message_body1.name,
91
+ time: (_message_body2 = message.body) === null || _message_body2 === void 0 ? void 0 : _message_body2.time
92
+ });
93
+ case "sync":
94
+ var _message_body_errors, _message_body_warnings;
95
+ if (!message.body) {
96
+ console.warn(" ⓵ [hmr] message body is empty");
97
+ return;
98
+ }
99
+ if ((_message_body_errors = message.body.errors) === null || _message_body_errors === void 0 ? void 0 : _message_body_errors.length) {
100
+ message.body.errors.forEach(function(error) {
101
+ console.error("Cannot apply update due to error:", error);
102
+ });
103
+ this.app.LoadingView.hide();
104
+ return;
105
+ }
106
+ if ((_message_body_warnings = message.body.warnings) === null || _message_body_warnings === void 0 ? void 0 : _message_body_warnings.length) {
107
+ message.body.warnings.forEach(function(warning) {
108
+ console.warn(" ⓵ [hmr] bundle contains warnings:", warning);
109
+ });
110
+ }
111
+ this.applyUpdate(message.body);
112
+ }
113
+ }
114
+ },
115
+ {
116
+ key: "applyUpdate",
117
+ value: function applyUpdate(update) {
118
+ if (!module.hot) {
119
+ throw new Error(" ⓵ [hmr] hot Module Replacement is disabled.");
120
+ }
121
+ if (!this.upToDate(update.hash) && module.hot.status() === "idle") {
122
+ console.info(" ⓵ [hmr] checking for updates on the server...");
123
+ this.checkUpdates(update);
124
+ }
125
+ }
126
+ },
127
+ {
128
+ key: "checkUpdates",
129
+ value: function checkUpdates(update) {
130
+ var _this = this;
131
+ try {
132
+ var _module_hot;
133
+ this.app.LoadingView.showMessage("Refreshing...", "refresh");
134
+ (_module_hot = module.hot) === null || _module_hot === void 0 ? void 0 : _module_hot.check(false).then(function(updatedModules) {
135
+ var _module_hot3;
136
+ if (!updatedModules) {
137
+ console.warn(" ⓵ [hmr] cannot find update - full reload needed");
138
+ _this.app.reload();
139
+ return;
140
+ }
141
+ (_module_hot3 = module.hot) === null || _module_hot3 === void 0 ? void 0 : _module_hot3.apply({
142
+ ignoreDeclined: true,
143
+ ignoreUnaccepted: false,
144
+ ignoreErrored: false,
145
+ onDeclined: function(data) {
146
+ console.warn(" ⓵ [hmr] ignored an update due to declined module", { chain: data.chain });
147
+ }
148
+ }).then(function(renewedModules) {
149
+ if (!_this.upToDate()) {
150
+ _this.checkUpdates(update);
151
+ }
152
+ var unacceptedModules = updatedModules.filter(function(moduleId) {
153
+ return renewedModules && renewedModules.indexOf(moduleId) < 0;
154
+ });
155
+ if (unacceptedModules.length) {
156
+ console.warn(" ⓵ [hmr] not every module was accepted - full reload needed", { unacceptedModules });
157
+ _this.app.reload();
158
+ } else {
159
+ console.info(" ⓵ [hmr] renewed modules - app is up to date", { renewedModules });
160
+ _this.app.dismissErrors();
161
+ }
162
+ });
163
+ });
164
+ } catch (error) {
165
+ var _module_hot1, _module_hot2;
166
+ if (((_module_hot1 = module.hot) === null || _module_hot1 === void 0 ? void 0 : _module_hot1.status()) === "fail" || ((_module_hot2 = module.hot) === null || _module_hot2 === void 0 ? void 0 : _module_hot2.status()) === "abort") {
167
+ console.warn(" ⓵ [hmr] cannot check for update - full reload needed");
168
+ console.warn("[hmr]", error);
169
+ this.app.reload();
170
+ } else {
171
+ console.warn(" ⓵ [hmr] update check failed", { error });
172
+ }
173
+ } finally {
174
+ this.app.LoadingView.hide();
175
+ }
176
+ }
177
+ }
178
+ ]);
179
+ return HMRClient2;
180
+ })();
181
+ var loadHMRClient = function() {
182
+ var { DevSettings, Platform } = require("react-native");
183
+ var LoadingView = {
184
+ showMessage: function() {},
185
+ hide: function() {}
186
+ };
187
+ var reload = function() {
188
+ return DevSettings.reload();
189
+ };
190
+ var dismissErrors = function() {
191
+ if (Platform.OS === "ios") {
192
+ var _NativeRedBox_dismiss;
193
+ var NativeRedBox = require("react-native/Libraries/NativeModules/specs/NativeRedBox").default;
194
+ NativeRedBox === null || NativeRedBox === void 0 ? void 0 : (_NativeRedBox_dismiss = NativeRedBox.dismiss) === null || _NativeRedBox_dismiss === void 0 ? void 0 : _NativeRedBox_dismiss.call(NativeRedBox);
195
+ } else {
196
+ var NativeExceptionsManager = require("react-native/Libraries/Core/NativeExceptionsManager").default;
197
+ NativeExceptionsManager === null || NativeExceptionsManager === void 0 ? void 0 : NativeExceptionsManager.dismissRedbox();
198
+ }
199
+ var LogBoxData = require("react-native/Libraries/LogBox/Data/LogBoxData");
200
+ LogBoxData.clear();
201
+ };
202
+ new HMRClient({
203
+ reload,
204
+ dismissErrors,
205
+ LoadingView
206
+ });
217
207
  };
208
+
218
209
  export { loadHMRClient };
219
210
  //# sourceMappingURL=hmr-client.native.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["getDevServerLocation","_class_call_check","instance","Constructor","TypeError","_defineProperties","target","props","i","length","descriptor","enumerable","configurable","writable","Object","defineProperty","key","_create_class","protoProps","staticProps","prototype","_define_property","obj","value","HMRClient","HMRClient2","app","_this","lastHash","port","process","env","REACT_NATIVE_SERVER_PUBLIC_PORT","url","hostname","REACT_NATIVE_PLATFORM","socket","WebSocket","console","info","onopen","onclose","onerror","event","error","onmessage","data","JSON","parse","toString","processMessage","warn","upToDate","hash","__webpack_hash__","message","action","_message_body","LoadingView","showMessage","name","body","_message_body1","_message_body2","time","_message_body_errors","_message_body_warnings","errors","forEach","hide","warnings","warning","applyUpdate","update","module","hot","Error","status","checkUpdates","_module_hot","check","then","updatedModules","_module_hot3","reload","apply","ignoreDeclined","ignoreUnaccepted","ignoreErrored","onDeclined","chain","renewedModules"],"sources":["../../src/hmr-client.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,oBAAA,QAA4B;AAqCrC,SAAMC,iBAAUA,CAAAC,QAAA,EAAAC,WAAA;EAKd,MAAAD,QACU,YAQRC,WAAA;IARQ,UAAAC,SAAA;EASR;AACA;AAIA,SAAKC,iBAAaA,CAAAC,MAAU,EAAAC,KAAQ;EAEpC,SAAAC,CAAQ,MAAKA,CAAA,GAAAD,KAAA,CAAAE,MAAA,EAAAD,CAAA;IAEb,IAAAE,UAAY,GAAAH,KAAS,CAAAC,CAAA;IACnBE,UAAQ,CAAAC,UAAK,GAAAD,UAA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D,WAAgB;QACnB,KAAArD,GAAA,CAAAgC,WAAa,CAAAC,WAAa,gBAAsB;QAGlD,CAAAoB,WAAc,GAAAL,MAAA,CAAAC,GAAA,cAAAI,WAAA,uBAAAA,WAAA,CAAAC,KAAA,QAAAC,IAAA,WAAAC,cAAA;UAClB,IAAAC,YAAmB;UAAC,KAAAD,cAAA;YACd5C,OAAM,CAAAa,IAAA;YAACxB,KAAA,CAAAD,GAAA,CAAA0D,MAAA;YACf;UAEM;UACA,CAAAD,YAAgB,GAAAT,MAAM,CAAAC,GAAA,cAAAQ,YAAA,uBAAAA,YAAA,CAAAE,KAAA;YACtBC,cAAgB,MAAO;YACnBC,gBACJ,OAAQ;YACVC,aAAc,OAAU;YACnBC,UAAA,WAAAA,CAAA3C,IAAA;cACCR,OAAA,CAAAa,IAAA,yDACI;gBACVuC,KAAA,EAAA5C,IAAA,CAAA4C;cACF;YAEM;UACN,GAAWT,IAAA,WAAMU,cAAA;YACnB,KAAAhE,KAAA,CAAAyB,QAAA;cAEczB,KAAE,CAAAmD,YAAQ,CAAAL,MAAe;YACzC","ignoreList":[]}
1
+ {"version":3,"file":"hmr-client.native.js","names":[],"sources":["esm/hmr-client.native.js"],"sourcesContent":["import { getDevServerLocation } from \"./getDevServerLocation\";\nfunction _class_call_check(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\nfunction _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\nfunction _create_class(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\nfunction _define_property(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}\nvar HMRClient = /* @__PURE__ */ (function() {\n \"use strict\";\n function HMRClient2(app) {\n var _this = this;\n _class_call_check(this, HMRClient2);\n _define_property(this, \"app\", void 0);\n _define_property(this, \"url\", void 0);\n _define_property(this, \"socket\", void 0);\n _define_property(this, \"lastHash\", void 0);\n this.app = app;\n this.lastHash = \"\";\n var port = process.env.REACT_NATIVE_SERVER_PUBLIC_PORT || 8081;\n this.url = `ws://${getDevServerLocation().hostname}:${port}/__hmr?platform=${process.env.REACT_NATIVE_PLATFORM || \"ios\"}`;\n this.socket = new WebSocket(this.url);\n console.info(\" \\u24F5 [hmr] connecting...\");\n this.socket.onopen = function() {\n console.info(\" \\u24F5 [hmr] connected\");\n };\n this.socket.onclose = function() {\n console.info(` \\u24F5 [hmr] disconnected ${_this.url}`);\n };\n this.socket.onerror = function(event) {\n console.error(\" \\u24F5 [hmr] error\", event);\n };\n this.socket.onmessage = function(event) {\n try {\n var data = JSON.parse(event.data.toString());\n _this.processMessage(data);\n } catch (error) {\n console.warn(\" \\u24F5 [hmr] invalid message\", error);\n }\n };\n }\n _create_class(HMRClient2, [\n {\n key: \"upToDate\",\n value: function upToDate(hash) {\n if (hash) {\n this.lastHash = hash;\n }\n return this.lastHash === __webpack_hash__;\n }\n },\n {\n key: \"processMessage\",\n value: function processMessage(message) {\n switch (message.action) {\n case \"building\":\n var _message_body;\n this.app.LoadingView.showMessage(\"Rebuilding...\", \"refresh\");\n console.info(\" \\u24F5 [hmr] bundle rebuilding\", {\n name: (_message_body = message.body) === null || _message_body === void 0 ? void 0 : _message_body.name\n });\n break;\n // biome-ignore lint/suspicious/noFallthroughSwitchClause: <explanation>\n case \"built\":\n var _message_body1, _message_body2;\n console.info(\" \\u24F5 [hmr] bundle rebuilt\", {\n name: (_message_body1 = message.body) === null || _message_body1 === void 0 ? void 0 : _message_body1.name,\n time: (_message_body2 = message.body) === null || _message_body2 === void 0 ? void 0 : _message_body2.time\n });\n // Fall through\n case \"sync\":\n var _message_body_errors, _message_body_warnings;\n if (!message.body) {\n console.warn(\" \\u24F5 [hmr] message body is empty\");\n return;\n }\n if ((_message_body_errors = message.body.errors) === null || _message_body_errors === void 0 ? void 0 : _message_body_errors.length) {\n message.body.errors.forEach(function(error) {\n console.error(\"Cannot apply update due to error:\", error);\n });\n this.app.LoadingView.hide();\n return;\n }\n if ((_message_body_warnings = message.body.warnings) === null || _message_body_warnings === void 0 ? void 0 : _message_body_warnings.length) {\n message.body.warnings.forEach(function(warning) {\n console.warn(\" \\u24F5 [hmr] bundle contains warnings:\", warning);\n });\n }\n this.applyUpdate(message.body);\n }\n }\n },\n {\n key: \"applyUpdate\",\n value: function applyUpdate(update) {\n if (!module.hot) {\n throw new Error(\" \\u24F5 [hmr] hot Module Replacement is disabled.\");\n }\n if (!this.upToDate(update.hash) && module.hot.status() === \"idle\") {\n console.info(\" \\u24F5 [hmr] checking for updates on the server...\");\n this.checkUpdates(update);\n }\n }\n },\n {\n key: \"checkUpdates\",\n value: function checkUpdates(update) {\n var _this = this;\n try {\n var _module_hot;\n this.app.LoadingView.showMessage(\"Refreshing...\", \"refresh\");\n (_module_hot = module.hot) === null || _module_hot === void 0 ? void 0 : _module_hot.check(false).then(function(updatedModules) {\n var _module_hot3;\n if (!updatedModules) {\n console.warn(\" \\u24F5 [hmr] cannot find update - full reload needed\");\n _this.app.reload();\n return;\n }\n (_module_hot3 = module.hot) === null || _module_hot3 === void 0 ? void 0 : _module_hot3.apply({\n ignoreDeclined: true,\n ignoreUnaccepted: false,\n ignoreErrored: false,\n onDeclined: function(data) {\n console.warn(\" \\u24F5 [hmr] ignored an update due to declined module\", {\n chain: data.chain\n });\n }\n }).then(function(renewedModules) {\n if (!_this.upToDate()) {\n _this.checkUpdates(update);\n }\n var unacceptedModules = updatedModules.filter(function(moduleId) {\n return renewedModules && renewedModules.indexOf(moduleId) < 0;\n });\n if (unacceptedModules.length) {\n console.warn(\" \\u24F5 [hmr] not every module was accepted - full reload needed\", {\n unacceptedModules\n });\n _this.app.reload();\n } else {\n console.info(\" \\u24F5 [hmr] renewed modules - app is up to date\", {\n renewedModules\n });\n _this.app.dismissErrors();\n }\n });\n });\n } catch (error) {\n var _module_hot1, _module_hot2;\n if (((_module_hot1 = module.hot) === null || _module_hot1 === void 0 ? void 0 : _module_hot1.status()) === \"fail\" || ((_module_hot2 = module.hot) === null || _module_hot2 === void 0 ? void 0 : _module_hot2.status()) === \"abort\") {\n console.warn(\" \\u24F5 [hmr] cannot check for update - full reload needed\");\n console.warn(\"[hmr]\", error);\n this.app.reload();\n } else {\n console.warn(\" \\u24F5 [hmr] update check failed\", {\n error\n });\n }\n } finally {\n this.app.LoadingView.hide();\n }\n }\n }\n ]);\n return HMRClient2;\n})();\nvar loadHMRClient = function() {\n var { DevSettings, Platform } = require(\"react-native\");\n var LoadingView = {\n showMessage: function() {\n },\n hide: function() {\n }\n };\n var reload = function() {\n return DevSettings.reload();\n };\n var dismissErrors = function() {\n if (Platform.OS === \"ios\") {\n var _NativeRedBox_dismiss;\n var NativeRedBox = require(\"react-native/Libraries/NativeModules/specs/NativeRedBox\").default;\n NativeRedBox === null || NativeRedBox === void 0 ? void 0 : (_NativeRedBox_dismiss = NativeRedBox.dismiss) === null || _NativeRedBox_dismiss === void 0 ? void 0 : _NativeRedBox_dismiss.call(NativeRedBox);\n } else {\n var NativeExceptionsManager = require(\"react-native/Libraries/Core/NativeExceptionsManager\").default;\n NativeExceptionsManager === null || NativeExceptionsManager === void 0 ? void 0 : NativeExceptionsManager.dismissRedbox();\n }\n var LogBoxData = require(\"react-native/Libraries/LogBox/Data/LogBoxData\");\n LogBoxData.clear();\n };\n new HMRClient({\n reload,\n dismissErrors,\n LoadingView\n });\n};\nexport {\n loadHMRClient\n};\n//# sourceMappingURL=hmr-client.js.map\n"],"mappings":";;;;;;;;;;AACA,SAAS,kBAAkB,UAAU,aAAa;CAChD,IAAI,EAAE,oBAAoB,cAAc;EACtC,MAAM,I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AA4B,KAAK,IAAI,KAAK,IAAI,wBAAwB,cAAc;EAC1H;EACA,IAAI,uBAAqB,+CAA+C;EACxE,WAAW,MAAM;CACnB;CACA,IAAI,UAAU;EACZ;EACA;EACA;CACF,CAAC;AACH"}
package/dist/esm/index.js CHANGED
@@ -1,5 +1,8 @@
1
- export * from "./devServerClient.mjs";
2
1
  import { client } from "./devServerClient.mjs";
2
+
3
+ export * from "./devServerClient.mjs"
4
+
3
5
  var index_default = client;
6
+
4
7
  export { index_default as default };
5
8
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["client","index_default"],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AAAA,cAAc;AAEd,SAASA,MAAA,QAAc;AACvB,IAAOC,aAAA,GAAQD,MAAA","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":[],"sources":["esm/index.js"],"sourcesContent":["export * from \"./devServerClient\";\nimport { client } from \"./devServerClient\";\nvar index_default = client;\nexport {\n index_default as default\n};\n//# sourceMappingURL=index.js.map\n"],"mappings":";;;;;AAEA,IAAI,gBAAgB"}
@@ -1,5 +1,8 @@
1
- export * from "./devServerClient.mjs";
2
1
  import { client } from "./devServerClient.mjs";
2
+
3
+ export * from "./devServerClient.mjs"
4
+
3
5
  var index_default = client;
6
+
4
7
  export { index_default as default };
5
8
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"names":["client","index_default"],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AAAA,cAAc;AAEd,SAASA,MAAA,QAAc;AACvB,IAAOC,aAAA,GAAQD,MAAA","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":[],"sources":["esm/index.js"],"sourcesContent":["export * from \"./devServerClient\";\nimport { client } from \"./devServerClient\";\nvar index_default = client;\nexport {\n index_default as default\n};\n//# sourceMappingURL=index.js.map\n"],"mappings":";;;;;AAEA,IAAI,gBAAgB"}
@@ -1,5 +1,8 @@
1
- export * from "./devServerClient.native.js";
2
1
  import { client } from "./devServerClient.native.js";
2
+
3
+ export * from "./devServerClient.native.js"
4
+
3
5
  var index_default = client;
6
+
4
7
  export { index_default as default };
5
8
  //# sourceMappingURL=index.native.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["client","index_default"],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AAAA,cAAc;AAEd,SAASA,MAAA,QAAc;AACvB,IAAOC,aAAA,GAAQD,MAAA","ignoreList":[]}
1
+ {"version":3,"file":"index.native.js","names":[],"sources":["esm/index.native.js"],"sourcesContent":["export * from \"./devServerClient\";\nimport { client } from \"./devServerClient\";\nvar index_default = client;\nexport {\n index_default as default\n};\n//# sourceMappingURL=index.js.map\n"],"mappings":";;;;;AAEA,IAAI,gBAAgB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vxrn/vite-native-hmr",
3
- "version": "2.0.0-beta.33.1",
3
+ "version": "2.0.0-beta.46.1",
4
4
  "exports": {
5
5
  "./package.json": "./package.json",
6
6
  ".": {
@@ -39,11 +39,11 @@
39
39
  "pretty-format": "^28.1.0"
40
40
  },
41
41
  "devDependencies": {
42
- "@tamagui/build": "2.6.2",
43
- "react-native": "0.86.2"
42
+ "@tamagui/build": "3.0.0-beta.1309.1",
43
+ "react-native": "0.87.1"
44
44
  },
45
45
  "peerDependencies": {
46
- "react-native": "0.86.2"
46
+ "react-native": "^0.87.0"
47
47
  },
48
48
  "publishConfig": {
49
49
  "access": "public"
@@ -1 +1 @@
1
- {"version":3,"file":"devServerClient.d.ts","sourceRoot":"","sources":["../src/devServerClient.ts"],"names":[],"mappings":"AAQA;;;;;;;;;GASG;AAEH,cAAM,eAAe;IACnB,MAAM,CAAC,EAAE,SAAS,CAAA;IAClB,MAAM,EAAE,KAAK,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,GAAG,EAAE,CAAA;KAAE,CAAC,CAAK;;IA2BlD,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE;IAsD/B,WAAW;IAcX,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE;IAe9B,KAAK;CAGN;AAED,eAAO,MAAM,MAAM,iBAAwB,CAAA;AAE3C,eAAO,MAAM,KAAK,YAAW,CAAA;AAC7B,eAAO,MAAM,MAAM,YAAW,CAAA;AAC9B,eAAO,MAAM,OAAO,YAAW,CAAA;AAC/B,eAAO,MAAM,cAAc,YAAW,CAAA;AACtC,eAAO,MAAM,GAAG,GAAI,OAAO,MAAM,EAAE,MAAM,GAAG,EAAE,SAE7C,CAAA"}
1
+ {"version":3,"file":"devServerClient.d.ts","sourceRoot":"","sources":["../src/devServerClient.ts"],"names":[],"mappings":"AAQA;;;;;;;;;GASG;AAEH,cAAM,eAAe;IACnB,MAAM,CAAC,EAAE,SAAS,CAAA;IAClB,MAAM,EAAE,KAAK,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,GAAG,EAAE,CAAA;KAAE,CAAC,CAAK;IAElD,cAuBC;IAED,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,QAoD9B;IAED,WAAW,SAYV;IAED,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,QAY7B;IAGD,KAAK,SAEJ;CACF;AAED,eAAO,MAAM,MAAM,iBAAwB,CAAA;AAE3C,eAAO,MAAM,KAAK,YAAW,CAAA;AAC7B,eAAO,MAAM,MAAM,YAAW,CAAA;AAC9B,eAAO,MAAM,OAAO,YAAW,CAAA;AAC/B,eAAO,MAAM,cAAc,YAAW,CAAA;AACtC,eAAO,MAAM,GAAG,UAAW,MAAM,QAAQ,GAAG,EAAE,SAE7C,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAA;AAEjC,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAC1C,eAAe,MAAM,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAA;AAEjC,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAA;eAC3B,MAAM"}