neo.mjs 9.14.0 → 9.15.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/ServiceWorker.mjs +2 -2
- package/apps/portal/resources/data/examples_devmode.json +7 -0
- package/apps/portal/resources/data/examples_dist_dev.json +7 -0
- package/apps/portal/resources/data/examples_dist_esm.json +7 -0
- package/apps/portal/resources/data/examples_dist_prod.json +7 -0
- package/apps/portal/view/home/FooterContainer.mjs +1 -1
- package/package.json +1 -1
- package/resources/data/deck/learnneo/pages/benefits/FourEnvironments.md +15 -5
- package/src/DefaultConfig.mjs +2 -2
package/ServiceWorker.mjs
CHANGED
@@ -1,4 +1,11 @@
|
|
1
1
|
[{
|
2
|
+
"id" : 25,
|
3
|
+
"environments": ["Desktop", "Mobile"],
|
4
|
+
"image" : "devmode/liquid-glass.png",
|
5
|
+
"name" : "Liquid Glass effect",
|
6
|
+
"sourceUrl" : "https://github.com/neomjs/liquid-glass-demo/blob/main/apps/myapp/view/GlassComponent.mjs",
|
7
|
+
"url" : "https://neomjs.github.io/pages2/workspace/neo-liquid-glass-demo/apps/myapp/index.html"
|
8
|
+
}, {
|
2
9
|
"id" : 24,
|
3
10
|
"environments": ["Desktop", "Mobile"],
|
4
11
|
"image" : "devmode/bigData.png",
|
@@ -1,4 +1,11 @@
|
|
1
1
|
[{
|
2
|
+
"id" : 24,
|
3
|
+
"environments": ["Desktop", "Mobile"],
|
4
|
+
"image" : "devmode/liquid-glass.png",
|
5
|
+
"name" : "Liquid Glass effect",
|
6
|
+
"sourceUrl" : "https://github.com/neomjs/liquid-glass-demo/blob/main/apps/myapp/view/GlassComponent.mjs",
|
7
|
+
"url" : "https://neomjs.github.io/pages2/workspace/neo-liquid-glass-demo/dist/development/apps/myapp/index.html"
|
8
|
+
}, {
|
2
9
|
"id" : 23,
|
3
10
|
"environments": ["Desktop", "Mobile"],
|
4
11
|
"image" : "devmode/bigData.png",
|
@@ -1,4 +1,11 @@
|
|
1
1
|
[{
|
2
|
+
"id" : 23,
|
3
|
+
"environments": ["Desktop", "Mobile"],
|
4
|
+
"image" : "devmode/liquid-glass.png",
|
5
|
+
"name" : "Liquid Glass effect",
|
6
|
+
"sourceUrl" : "https://github.com/neomjs/liquid-glass-demo/blob/main/apps/myapp/view/GlassComponent.mjs",
|
7
|
+
"url" : "https://neomjs.github.io/pages2/workspace/neo-liquid-glass-demo/dist/esm/apps/myapp/index.html"
|
8
|
+
}, {
|
2
9
|
"id" : 22,
|
3
10
|
"environments": ["Desktop", "Mobile"],
|
4
11
|
"image" : "devmode/bigData.png",
|
@@ -1,4 +1,11 @@
|
|
1
1
|
[{
|
2
|
+
"id" : 24,
|
3
|
+
"environments": ["Desktop", "Mobile"],
|
4
|
+
"image" : "devmode/liquid-glass.png",
|
5
|
+
"name" : "Liquid Glass effect",
|
6
|
+
"sourceUrl" : "https://github.com/neomjs/liquid-glass-demo/blob/main/apps/myapp/view/GlassComponent.mjs",
|
7
|
+
"url" : "https://neomjs.github.io/pages2/workspace/neo-liquid-glass-demo/dist/production/apps/myapp/index.html"
|
8
|
+
}, {
|
2
9
|
"id" : 23,
|
3
10
|
"environments": ["Desktop", "Mobile"],
|
4
11
|
"image" : "devmode/bigData.png",
|
package/package.json
CHANGED
@@ -165,11 +165,21 @@ instant development flow.
|
|
165
165
|
|
166
166
|
Understanding Neo.mjs's four distinct environments is crucial, but it's equally important to grasp how they interact,
|
167
167
|
especially when your application needs to load additional, code-based modules dynamically—for instance, code written by
|
168
|
-
users within a Monaco editor that contains its own import statements. These scenarios present a unique challenge:
|
169
|
-
does the framework ensure consistent and correct module loading across different deployment contexts?
|
170
|
-
|
171
|
-
|
172
|
-
|
168
|
+
users within a Monaco editor that contains its own `import` statements. These scenarios present a unique challenge:
|
169
|
+
How does the framework ensure consistent and correct module loading across different deployment contexts?
|
170
|
+
|
171
|
+
For most traditional frontend frameworks relying on bundlers, handling such truly dynamic, run-time imports of
|
172
|
+
"anything" (i.e., modules that aren't known at build time) is either impossible or astronomically expensive.
|
173
|
+
Bundlers are designed to pre-analyze your application's static import graph and create optimized bundles or code-split
|
174
|
+
chunks. To accommodate every possible module combination that could be dynamically imported at runtime would require
|
175
|
+
generating an unmanageable number of split chunks, leading to insane overhead for internal bundler maps and a bloated,
|
176
|
+
inefficient deployment.
|
177
|
+
|
178
|
+
This is precisely where Neo.mjs comes to the rescue with its intelligent environment combinations – a novel approach
|
179
|
+
that, to our knowledge, no other framework has truly accomplished. By leveraging native browser module loading
|
180
|
+
capabilities and a sophisticated class registry, Neo.mjs ensures that even dynamically loaded code, with its arbitrary
|
181
|
+
import statements, integrates seamlessly and efficiently into your application, regardless of the core environment
|
182
|
+
it's running in.
|
173
183
|
|
174
184
|
### Loading Behavior for Dynamic Code Modules
|
175
185
|
|
package/src/DefaultConfig.mjs
CHANGED
@@ -264,12 +264,12 @@ const DefaultConfig = {
|
|
264
264
|
useVdomWorker: true,
|
265
265
|
/**
|
266
266
|
* buildScripts/injectPackageVersion.mjs will update this value
|
267
|
-
* @default '9.
|
267
|
+
* @default '9.15.0'
|
268
268
|
* @memberOf! module:Neo
|
269
269
|
* @name config.version
|
270
270
|
* @type String
|
271
271
|
*/
|
272
|
-
version: '9.
|
272
|
+
version: '9.15.0'
|
273
273
|
};
|
274
274
|
|
275
275
|
Object.assign(DefaultConfig, {
|