@master/css-server 2.0.0-rc.68 → 2.0.0-rc.69

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.
@@ -12,7 +12,7 @@ var css = require('@master/css');
12
12
  if (!html) return;
13
13
  const { classes } = parseHtml(html);
14
14
  if (!classes.length) return;
15
- const css$1 = new css.MasterCSS(config);
15
+ const css$1 = css.createCSS(config);
16
16
  classes.forEach((eachClass)=>css$1.add(eachClass));
17
17
  return css$1;
18
18
  }
@@ -1,5 +1,5 @@
1
1
  import parseHTML from './parse-html.mjs';
2
- import { MasterCSS } from '@master/css';
2
+ import { createCSS } from '@master/css';
3
3
 
4
4
  /**
5
5
  * Renders the Master CSS string from HTML
@@ -10,7 +10,7 @@ import { MasterCSS } from '@master/css';
10
10
  if (!html) return;
11
11
  const { classes } = parseHTML(html);
12
12
  if (!classes.length) return;
13
- const css = new MasterCSS(config);
13
+ const css = createCSS(config);
14
14
  classes.forEach((eachClass)=>css.add(eachClass));
15
15
  return css;
16
16
  }
package/dist/render.cjs CHANGED
@@ -21,7 +21,7 @@ var serialize = require('dom-serializer');
21
21
  headElement,
22
22
  styleElement
23
23
  };
24
- const css$1 = new css.MasterCSS(config);
24
+ const css$1 = css.createCSS(config);
25
25
  classes.forEach((eachClass)=>css$1.add(eachClass));
26
26
  if (styleElement) {
27
27
  styleElement.childNodes = [
package/dist/render.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { MasterCSS } from '@master/css';
1
+ import { createCSS } from '@master/css';
2
2
  import parseHTML from './parse-html.mjs';
3
3
  import { Text, Element } from 'domhandler';
4
4
  import serialize from 'dom-serializer';
@@ -19,7 +19,7 @@ import serialize from 'dom-serializer';
19
19
  headElement,
20
20
  styleElement
21
21
  };
22
- const css = new MasterCSS(config);
22
+ const css = createCSS(config);
23
23
  classes.forEach((eachClass)=>css.add(eachClass));
24
24
  if (styleElement) {
25
25
  styleElement.childNodes = [
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"@master/css-server","type":"module","scripts":{"build":"techor build \"src/**/*.ts\"","dev":"pnpm build --watch","lint":"eslint","type-check":"tsc --noEmit","test":"vitest"},"license":"MIT","description":"Render Master CSS on the server side","author":"Aoyue Design LLC.","funding":"https://rc.css.master.co/sponsor","homepage":"https://css.master.co","bugs":{"url":"https://github.com/master-co/css/issues"},"repository":{"type":"git","url":"https://github.com/master-co/css.git","directory":"packages/server"},"keywords":["server","static","html","markup","dom","css","mastercss"],"sideEffects":false,"main":"./dist/index.cjs","module":"./dist/index.mjs","jsnext:main":"./dist/index.mjs","esnext":"./dist/index.mjs","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"}},"files":["dist"],"publishConfig":{"access":"public","provenance":true},"dependencies":{"@master/css":"^2.0.0-rc.68","dom-serializer":"^2.0.0","domhandler":"^5.0.3","htmlparser2":"^10.0.0"},"devDependencies":{"shared":"^2.0.0-rc.68"},"version":"2.0.0-rc.68"}
1
+ {"name":"@master/css-server","type":"module","scripts":{"build":"techor build \"src/**/*.ts\"","dev":"pnpm build --watch","lint":"eslint","type-check":"tsc --noEmit","test":"vitest"},"license":"MIT","description":"Render Master CSS on the server side","author":"Aoyue Design LLC.","funding":"https://rc.css.master.co/sponsor","homepage":"https://css.master.co","bugs":{"url":"https://github.com/master-co/css/issues"},"repository":{"type":"git","url":"https://github.com/master-co/css.git","directory":"packages/server"},"keywords":["server","static","html","markup","dom","css","mastercss"],"sideEffects":false,"main":"./dist/index.cjs","module":"./dist/index.mjs","jsnext:main":"./dist/index.mjs","esnext":"./dist/index.mjs","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"}},"files":["dist"],"publishConfig":{"access":"public","provenance":true},"dependencies":{"@master/css":"^2.0.0-rc.69","dom-serializer":"^2.0.0","domhandler":"^5.0.3","htmlparser2":"^10.0.0"},"devDependencies":{"shared":"^2.0.0-rc.69"},"version":"2.0.0-rc.69"}