@dooboostore/simple-boot-http-server-ssr 1.0.16 → 1.0.17

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 (35) hide show
  1. package/dist/cjs/bundle-entry.js +46 -12
  2. package/dist/cjs/bundle-entry.js.map +2 -2
  3. package/dist/cjs/filters/SSRDomParserFilter.js +4 -3
  4. package/dist/cjs/filters/SSRDomParserFilter.js.map +2 -2
  5. package/dist/cjs/filters/SSRFilter.js +4 -3
  6. package/dist/cjs/filters/SSRFilter.js.map +2 -2
  7. package/dist/cjs/filters/SSRLinkDomFilter.js +4 -3
  8. package/dist/cjs/filters/SSRLinkDomFilter.js.map +2 -2
  9. package/dist/cjs/filters/SSRSimpleWebComponentDomParserFilter.js +1 -1
  10. package/dist/cjs/filters/SSRSimpleWebComponentDomParserFilter.js.map +2 -2
  11. package/dist/esm/bundle-entry.js +22 -6
  12. package/dist/esm/bundle-entry.js.map +2 -2
  13. package/dist/esm/filters/SSRDomParserFilter.js +5 -4
  14. package/dist/esm/filters/SSRDomParserFilter.js.map +2 -2
  15. package/dist/esm/filters/SSRFilter.js +4 -3
  16. package/dist/esm/filters/SSRFilter.js.map +2 -2
  17. package/dist/esm/filters/SSRLinkDomFilter.js +4 -3
  18. package/dist/esm/filters/SSRLinkDomFilter.js.map +2 -2
  19. package/dist/esm/filters/SSRSimpleWebComponentDomParserFilter.js +1 -1
  20. package/dist/esm/filters/SSRSimpleWebComponentDomParserFilter.js.map +2 -2
  21. package/dist/esm-bundle/dooboostore-simple-boot-http-server-ssr.esm.js +18810 -14318
  22. package/dist/esm-bundle/dooboostore-simple-boot-http-server-ssr.esm.js.map +4 -4
  23. package/dist/types/bundle-entry.d.ts +11 -6
  24. package/dist/types/bundle-entry.d.ts.map +1 -1
  25. package/dist/types/filters/SSRDomParserFilter.d.ts.map +1 -1
  26. package/dist/types/filters/SSRFilter.d.ts.map +1 -1
  27. package/dist/types/filters/SSRLinkDomFilter.d.ts.map +1 -1
  28. package/dist/umd-bundle/dooboostore-simple-boot-http-server-ssr.umd.js +18327 -13837
  29. package/dist/umd-bundle/dooboostore-simple-boot-http-server-ssr.umd.js.map +4 -4
  30. package/package.json +12 -12
  31. package/src/bundle-entry.ts +16 -6
  32. package/src/filters/SSRDomParserFilter.ts +5 -4
  33. package/src/filters/SSRFilter.ts +4 -3
  34. package/src/filters/SSRLinkDomFilter.ts +4 -3
  35. package/src/filters/SSRSimpleWebComponentDomParserFilter.ts +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dooboostore/simple-boot-http-server-ssr",
3
- "version": "1.0.16",
3
+ "version": "1.0.17",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "main": "./dist/cjs/index.js",
@@ -67,7 +67,16 @@
67
67
  "url": "https://github.com/dooboostore-develop/packages"
68
68
  },
69
69
  "peerDependencies": {
70
- "reflect-metadata": "^0.2.2"
70
+ "reflect-metadata": "^0.2.2",
71
+ "@dooboostore/core": "1.0.32",
72
+ "@dooboostore/dom-render": "1.0.114",
73
+ "@dooboostore/dom-parser": "1.0.7",
74
+ "@dooboostore/core-node": "1.0.13",
75
+ "@dooboostore/simple-boot-front": "1.0.132",
76
+ "@dooboostore/core-web": "1.0.13",
77
+ "@dooboostore/simple-boot": "1.0.57",
78
+ "@dooboostore/simple-web-component": "1.0.47",
79
+ "@dooboostore/simple-boot-http-server": "1.0.26"
71
80
  },
72
81
  "devDependencies": {
73
82
  "@babel/core": "^7.24.0",
@@ -86,16 +95,7 @@
86
95
  "esbuild-plugin-tsc": "^0.5.0",
87
96
  "raw-loader": "^4.0.2",
88
97
  "tslib": "^2.8.1",
89
- "typescript": "^5.9.2",
90
- "@dooboostore/core": "1.0.32",
91
- "@dooboostore/core-web": "1.0.12",
92
- "@dooboostore/simple-boot": "1.0.56",
93
- "@dooboostore/dom-render": "1.0.113",
94
- "@dooboostore/dom-parser": "1.0.7",
95
- "@dooboostore/simple-boot-front": "1.0.131",
96
- "@dooboostore/simple-boot-http-server": "1.0.25",
97
- "@dooboostore/simple-web-component": "1.0.37",
98
- "@dooboostore/core-node": "1.0.12"
98
+ "typescript": "^5.9.2"
99
99
  },
100
100
  "dependencies": {
101
101
  "jsdom": "^26.0.0",
@@ -1,6 +1,16 @@
1
- export * from './filters';
2
- export * from './initializers';
3
- export * from './option';
4
- export * from './proxy';
5
- export * from './SimpleBootHttpSSRFactory';
6
- export * from './SimpleBootHttpSSRServer';
1
+ import 'reflect-metadata';
2
+
3
+ // simple-boot-http-server-ssr itself
4
+ export * from './index';
5
+
6
+ // Re-export peer dependencies so bundle consumers can access them
7
+ // without separately importing each package
8
+ export * as Core from '@dooboostore/core';
9
+ export * as CoreNode from '@dooboostore/core-node';
10
+ export * as CoreWeb from '@dooboostore/core-web';
11
+ export * as DomParser from '@dooboostore/dom-parser';
12
+ export * as DomRender from '@dooboostore/dom-render';
13
+ export * as SimpleBoot from '@dooboostore/simple-boot';
14
+ export * as SimpleBootFront from '@dooboostore/simple-boot-front';
15
+ export * as SimpleBootHttpServer from '@dooboostore/simple-boot-http-server';
16
+ export * as SimpleWebComponent from '@dooboostore/simple-web-component';
@@ -1,7 +1,8 @@
1
1
  import { RequestResponse } from '@dooboostore/simple-boot-http-server/models/RequestResponse';
2
2
  import { HttpHeaders } from '@dooboostore/simple-boot-http-server/codes/HttpHeaders';
3
3
  import { SimpleBootHttpSSRFactory } from '../SimpleBootHttpSSRFactory';
4
- import { ConstructorType, AsyncBlockingQueue, RandomUtils, MessageOperator, MessageInternal, Promises } from '@dooboostore/core';
4
+ import { ConstructorType, AsyncBlockingQueue, RandomUtils, firstValueFrom } from '@dooboostore/core';
5
+ import { filter, first } from '@dooboostore/core/message/operators';
5
6
  import { Filter } from '@dooboostore/simple-boot-http-server/filters/Filter';
6
7
  import { Mimes } from '@dooboostore/simple-boot-http-server/codes/Mimes';
7
8
  import { HttpStatus } from '@dooboostore/simple-boot-http-server/codes/HttpStatus';
@@ -144,15 +145,15 @@ export class SSRDomParserFilter implements Filter {
144
145
  }
145
146
  }
146
147
 
147
- const data = await MessageInternal.firstValueFrom(
148
+ const data = await firstValueFrom(
148
149
  simpleBootFront.routingObservable.pipe(
149
- MessageOperator.filter(it => {
150
+ filter(it => {
150
151
 
151
152
  const sw = it.triggerPoint === 'end' && typeof it.routerModule.intent.uri === 'string' && targetUrl.endsWith(it.routerModule.intent.uri);
152
153
  return sw;
153
154
  }),
154
155
  // delay(1000),
155
- MessageOperator.first()
156
+ first()
156
157
  )
157
158
  );
158
159
 
@@ -1,7 +1,8 @@
1
1
  import { RequestResponse } from '@dooboostore/simple-boot-http-server/models/RequestResponse';
2
2
  import { HttpHeaders } from '@dooboostore/simple-boot-http-server/codes/HttpHeaders';
3
3
  import { SimpleBootHttpSSRFactory } from '../SimpleBootHttpSSRFactory';
4
- import { ConstructorType, AsyncBlockingQueue, RandomUtils, MessageOperator, MessageInternal } from '@dooboostore/core';
4
+ import { ConstructorType, AsyncBlockingQueue, RandomUtils, firstValueFrom } from '@dooboostore/core';
5
+ import { first } from '@dooboostore/core/message/operators';
5
6
  import { JsdomInitializer } from '../initializers/JsdomInitializer';
6
7
  import { Filter } from '@dooboostore/simple-boot-http-server/filters/Filter';
7
8
  import { Mimes } from '@dooboostore/simple-boot-http-server/codes/Mimes';
@@ -162,7 +163,7 @@ export class SSRFilter implements Filter {
162
163
  // // delay(1000),
163
164
  // first()
164
165
  // );
165
- const data = await MessageInternal.firstValueFrom(
166
+ const data = await firstValueFrom(
166
167
  // @ts-ignore
167
168
  simpleBootFront.routingObservable.pipe(
168
169
  // @ts-ignore
@@ -173,7 +174,7 @@ export class SSRFilter implements Filter {
173
174
  targetUrl.endsWith(it.routerModule.intent.uri)
174
175
  ),
175
176
  // delay(1000),
176
- MessageOperator.first()
177
+ first()
177
178
  )
178
179
  );
179
180
  // console.log('rrrrrssss');
@@ -1,7 +1,8 @@
1
1
  import { RequestResponse } from '@dooboostore/simple-boot-http-server/models/RequestResponse';
2
2
  import { HttpHeaders } from '@dooboostore/simple-boot-http-server/codes/HttpHeaders';
3
3
  import { SimpleBootHttpSSRFactory } from '../SimpleBootHttpSSRFactory';
4
- import { ConstructorType, AsyncBlockingQueue, RandomUtils, MessageOperator, MessageInternal } from '@dooboostore/core';
4
+ import { ConstructorType, AsyncBlockingQueue, RandomUtils, firstValueFrom } from '@dooboostore/core';
5
+ import { first } from '@dooboostore/core/message/operators';
5
6
  import { JsdomInitializer } from '../initializers/JsdomInitializer';
6
7
  import { Filter } from '@dooboostore/simple-boot-http-server/filters/Filter';
7
8
  import { Mimes } from '@dooboostore/simple-boot-http-server/codes/Mimes';
@@ -142,7 +143,7 @@ export class SSRLinkDomFilter implements Filter {
142
143
  // }
143
144
  // })
144
145
 
145
- const data = await MessageInternal.firstValueFrom(
146
+ const data = await firstValueFrom(
146
147
  // @ts-ignore
147
148
  simpleBootFront.routingObservable.pipe(
148
149
  // @ts-ignore
@@ -153,7 +154,7 @@ export class SSRLinkDomFilter implements Filter {
153
154
  targetUrl.endsWith(it.routerModule.intent.uri)
154
155
  ),
155
156
  // delay(1000),
156
- MessageOperator.first()
157
+ first()
157
158
  )
158
159
  );
159
160
  // console.log('???????done');
@@ -40,12 +40,12 @@ export class SSRSimpleWebComponentDomParserFilter implements Filter {
40
40
  if (rr.reqHasAcceptHeader(Mimes.TextHtml) || rr.reqHasAcceptHeader(Mimes.All)) {
41
41
  const url = rr.reqUrlObj({ host: 'localhost' });
42
42
  const targetUrl = url.toString() ?? this.welcomUrl;
43
+ console.log('SSRSimpleWebComponentDomParserFilter start');
43
44
 
44
45
  // 1. Initialize Virtual DOM Environment
45
46
  const domParserInitializer = new DomParserInitializer(this.config.frontDistPath, this.config.frontDistIndexFileName || 'index.html', { url: targetUrl });
46
47
  const window = await domParserInitializer.run();
47
48
 
48
- console.log('vvvv22aa');
49
49
  // web component 경우 자기 tagName을 생성자 에게 HTMLElementBase에넘겨줘야되기떄문에
50
50
  // const getTagName = (type: ConstructorType<any>) => {
51
51
  // const zz = getElementConfig(type);