neo.mjs 10.0.0-alpha.2 → 10.0.0-alpha.3

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/ServiceWorker.mjs CHANGED
@@ -20,9 +20,9 @@ class ServiceWorker extends ServiceBase {
20
20
  */
21
21
  singleton: true,
22
22
  /**
23
- * @member {String} version='10.0.0-alpha.2'
23
+ * @member {String} version='10.0.0-alpha.3'
24
24
  */
25
- version: '10.0.0-alpha.2'
25
+ version: '10.0.0-alpha.3'
26
26
  }
27
27
 
28
28
  /**
@@ -107,7 +107,7 @@ class FooterContainer extends Container {
107
107
  }, {
108
108
  module: Component,
109
109
  cls : ['neo-version'],
110
- html : 'v10.0.0-alpha.2'
110
+ html : 'v10.0.0-alpha.3'
111
111
  }]
112
112
  }],
113
113
  /**
@@ -21,9 +21,9 @@ class ImageStore extends Store {
21
21
  */
22
22
  model: ImageModel,
23
23
  /**
24
- * @member {String} url='../../resources/examples/data/ai_contacts.json'
24
+ * @member {String} url=Neo.config.basePath+'resources/examples/data/ai_contacts.json'
25
25
  */
26
- url: '../../resources/examples/data/ai_contacts.json'
26
+ url: Neo.config.basePath + 'resources/examples/data/ai_contacts.json'
27
27
  }
28
28
  }
29
29
 
@@ -21,9 +21,9 @@ class ImageStore extends Store {
21
21
  */
22
22
  model: ImageModel,
23
23
  /**
24
- * @member {String} url='../../resources/examples/data/ai_contacts.json'
24
+ * @member {String} url=Neo.config.basePath+'resources/examples/data/ai_contacts.json'
25
25
  */
26
- url: '../../resources/examples/data/ai_contacts.json'
26
+ url: Neo.config.basePath + 'resources/examples/data/ai_contacts.json'
27
27
  }
28
28
  }
29
29
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name" : "neo.mjs",
3
- "version" : "10.0.0-alpha.2",
3
+ "version" : "10.0.0-alpha.3",
4
4
  "description" : "Neo.mjs: The multi-threaded UI framework for building ultra-fast, desktop-like web applications with uncompromised responsiveness, inherent security, and a transpilation-free dev mode.",
5
5
  "type" : "module",
6
6
  "repository" : {
@@ -276,12 +276,12 @@ const DefaultConfig = {
276
276
  useVdomWorker: true,
277
277
  /**
278
278
  * buildScripts/injectPackageVersion.mjs will update this value
279
- * @default '10.0.0-alpha.2'
279
+ * @default '10.0.0-alpha.3'
280
280
  * @memberOf! module:Neo
281
281
  * @name config.version
282
282
  * @type String
283
283
  */
284
- version: '10.0.0-alpha.2'
284
+ version: '10.0.0-alpha.3'
285
285
  };
286
286
 
287
287
  Object.assign(DefaultConfig, {
package/src/Main.mjs CHANGED
@@ -252,12 +252,6 @@ class Main extends core.Base {
252
252
 
253
253
  DomAccess.onDomContentLoaded();
254
254
 
255
- // We need different publicPath values for the main thread inside the webpack based dist envs,
256
- // depending on the hierarchy level of the app entry point
257
- if (environment === 'dist/development' || environment === 'dist/production') {
258
- __webpack_require__.p = config.basePath.substring(6)
259
- }
260
-
261
255
  // Intended for the online examples where we need an easy way to add GA to every generated app
262
256
  if (config.useGoogleAnalytics && !mainThreadAddons.includes('AnalyticsByGoogle')) {
263
257
  mainThreadAddons.push('AnalyticsByGoogle')
@@ -69,12 +69,19 @@ class DeltaUpdates extends Base {
69
69
  construct(config) {
70
70
  super.construct(config);
71
71
 
72
- let me = this;
72
+ let me = this,
73
+ {environment} = NeoConfig;
73
74
 
74
- if (Neo.config.renderCountDeltas) {
75
+ if (NeoConfig.renderCountDeltas) {
75
76
  me.renderCountDeltas = true
76
77
  }
77
78
 
79
+ // We need different publicPath values for the main thread inside the webpack based dist envs,
80
+ // depending on the hierarchy level of the app entry point
81
+ if (environment === 'dist/development' || environment === 'dist/production') {
82
+ __webpack_require__.p = NeoConfig.basePath.substring(6)
83
+ }
84
+
78
85
  // Initiate the asynchronous loading of the renderer here.
79
86
  me.#_readyPromise = (async () => {
80
87
  try {