solid-logic 3.0.9-29d7a0d → 3.0.9-36ed523

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/README.md CHANGED
@@ -22,9 +22,20 @@ npm install solid-logic
22
22
  import { someFunction } from 'solid-logic';
23
23
  ```
24
24
 
25
-
26
25
  ## Use directly in a browser
27
26
 
27
+ There are a few differences to mention:
28
+ * the UMD bundles come in 2 flavours, with rdflib bundled together and without;
29
+ * the ESM bundles do not contain rdflib, so it must be imported separately.
30
+
31
+ ## Files
32
+ - For browser UMD, bundled with rdflib: `dist/solid-logic.js` (global `window.SolidLogic`)
33
+ - For browser UMD, without rdflib: `dist/solid-logic.external.js` (global `window.SolidLogic`)
34
+ - For browser ESM, without rdflib: `dist/solid-logic.esm.external.js` (import as module)
35
+ - UMD have also chunked files.
36
+ - both version also containe minified versions.
37
+
38
+
28
39
  ### UMD bundle (global variable)
29
40
 
30
41
  ```html
@@ -33,11 +44,11 @@ import { someFunction } from 'solid-logic';
33
44
  <!-- or -->
34
45
  <!-- script src="https://cdn.jsdelivr.net/npm/rdflib/dist/rdflib.min.js"></script -->
35
46
  <!-- Load solid-logic UMD bundle -->
36
- <script src="https://unpkg.com/solid-logic/dist/solid-logic.umd.min.js"></script>
47
+ <script src="https://unpkg.com/solid-logic/dist/solid-logic.min.js"></script>
37
48
  <!-- or -->
38
- <!-- script src="https://cdn.jsdelivr.net/npm/solid-logic/dist/solid-logic.umd.min.js"></script -->
49
+ <!-- script src="https://cdn.jsdelivr.net/npm/solid-logic/dist/solid-logic.min.js"></script -->
39
50
  <!-- or -->
40
- <!-- script src="dist/solid-logic.umd.js"></script -->
51
+ <!-- script src="dist/solid-logic.js"></script -->
41
52
  <script>
42
53
  // Access via global variable
43
54
  const logic = window.SolidLogic;
@@ -51,8 +62,8 @@ import { someFunction } from 'solid-logic';
51
62
 
52
63
  ```html
53
64
  <script type="module">
54
- import * as rdflib from 'https://esm.sh/rdflib';
55
- import { someFunction } from 'https://esm.sh/solid-logic';
65
+ import * as $rdf from 'https://esm.sh/rdflib'
66
+ import { someFunction } from 'https://esm.sh/solid-logic'
56
67
 
57
68
  // Example usage
58
69
  // someFunction(...)
@@ -73,20 +84,14 @@ or
73
84
  }
74
85
  </script>
75
86
  <script type="module">
76
- import * as rdflib from 'rdflib';
77
- import { someFunction } from 'solid-logic';
87
+ import * as $rdf from 'rdflib'
88
+ import { someFunction } from 'solid-logic'
78
89
 
79
90
  // Example usage
80
91
  // someFunction(...)
81
92
  </script>
82
93
  ```
83
94
 
84
-
85
- ## Files
86
- - For npm/ESM: `dist/solid-logic.esm.js` (referenced automatically in npm projects)
87
- - For browser UMD: `dist/solid-logic.umd.js` (global `window.SolidLogic`)
88
- - For browser ESM: `dist/solid-logic.esm.js` (import as module)
89
-
90
95
  # How to develop
91
96
 
92
97
  Check the scripts in the `package.json` for build, watch, lint and test.
@@ -96,7 +101,7 @@ Check the scripts in the `package.json` for build, watch, lint and test.
96
101
  * TypeScript + Babel
97
102
  * Jest
98
103
  * ESLint
99
- * Rollup
104
+ * Webpack
100
105
 
101
106
  # How to release
102
107
 
@@ -0,0 +1,11 @@
1
+ (this["webpackChunkSolidLogic"] = this["webpackChunkSolidLogic"] || []).push([[789],{
2
+
3
+ /***/ 7789:
4
+ /***/ (() => {
5
+
6
+ /* (ignored) */
7
+
8
+ /***/ })
9
+
10
+ }]);
11
+ //# sourceMappingURL=789.solid-logic.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"789.solid-logic.js","mappings":";;;;;AAAA,e","sources":["webpack://SolidLogic/ignored|/home/runner/work/solid-logic/solid-logic/node_modules/rdf-canonize/lib|rdf-canonize-native"],"sourcesContent":["/* (ignored) */"],"names":[],"sourceRoot":""}
@@ -0,0 +1 @@
1
+ (this.webpackChunkSolidLogic=this.webpackChunkSolidLogic||[]).push([[789],{7789:()=>{}}]);