@pacem/pacem-foundation 1.0.0-amaldi → 1.0.0-archimedes

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 ADDED
@@ -0,0 +1,44 @@
1
+ [![npm version](https://img.shields.io/npm/v/%40pacem%2Fpacem-foundation.svg)](https://www.npmjs.com/package/@pacem/pacem-foundation)
2
+ [![license](https://img.shields.io/npm/l/%40pacem%2Fpacem-foundation.svg)](https://github.com/pacem-it/pacem/blob/main/LICENSE)
3
+
4
+ # @pacem/pacem-foundation
5
+
6
+ Framework-agnostic JavaScript/TypeScript utilities shared across the [Pacem JS](https://js.pacem.it) ecosystem: dates (`Dates`), arrays (`Arrays`), 2D geometry (`Point`, `Rect`, `Size`, `Matrix2D`), colors (`Colors`), strings (`Strings`), an undo/redo `HistoryService`, image/blob helpers (`Imaging`, `Blobs`), key generation (`Keys`), and a small `Compile.Markdown` parser. It also patches in a couple of `Number`/`Array` prototype extensions.
7
+
8
+ No DOM dependency, no custom elements — just plain utility classes. Every other `@pacem/pacem-*` package depends on this one.
9
+
10
+ Part of the [Pacem JS](https://js.pacem.it) ecosystem. Install [`@pacem/pacem`](https://www.npmjs.com/package/@pacem/pacem) instead if you want every package bundled together.
11
+
12
+ ## Installation
13
+
14
+ ```sh
15
+ npm install @pacem/pacem-foundation
16
+ ```
17
+
18
+ ## Usage
19
+
20
+ ### As an ES module
21
+
22
+ ```js
23
+ import { Dates, Point, Strings } from '@pacem/pacem-foundation';
24
+
25
+ Dates.isLeapYear(2024); // true
26
+ Strings.format('{0}, {1}!', 'Hello', 'world');
27
+ ```
28
+
29
+ ### In the browser, without a bundler
30
+
31
+ ```html
32
+ <script src="node_modules/@pacem/pacem-foundation/dist/browser/pacem-foundation.min.js"></script>
33
+ <script>
34
+ Pacem.Dates.isLeapYear(2024);
35
+ </script>
36
+ ```
37
+
38
+ ### TypeScript
39
+
40
+ Typings ship in `typings/index.d.ts` and are resolved automatically via the package's `exports` field — both for the ES module import style and for the ambient `Pacem` global used by the plain `<script>` include above.
41
+
42
+ ## License
43
+
44
+ [Apache-2.0](https://github.com/pacem-it/pacem/blob/main/LICENSE) &copy; [Pacem](https://pacem.it)
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @pacem/pacem-foundation v1.0.0-amaldi (https://js.pacem.it)
2
+ * @pacem/pacem-foundation v1.0.0-archimedes (https://js.pacem.it)
3
3
  * Pacem (https://pacem.it)
4
4
  * Licensed under Apache-2.0
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @pacem/pacem-foundation v1.0.0-amaldi (https://js.pacem.it)
2
+ * @pacem/pacem-foundation v1.0.0-archimedes (https://js.pacem.it)
3
3
  * Pacem (https://pacem.it)
4
4
  * Licensed under Apache-2.0
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @pacem/pacem-foundation v1.0.0-amaldi (https://js.pacem.it)
2
+ * @pacem/pacem-foundation v1.0.0-archimedes (https://js.pacem.it)
3
3
  * Pacem (https://pacem.it)
4
4
  * Licensed under Apache-2.0
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @pacem/pacem-foundation v1.0.0-amaldi (https://js.pacem.it)
2
+ * @pacem/pacem-foundation v1.0.0-archimedes (https://js.pacem.it)
3
3
  * Pacem (https://pacem.it)
4
4
  * Licensed under Apache-2.0
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @pacem/pacem-foundation v1.0.0-amaldi (https://js.pacem.it)
2
+ * @pacem/pacem-foundation v1.0.0-archimedes (https://js.pacem.it)
3
3
  * Pacem (https://pacem.it)
4
4
  * Licensed under Apache-2.0
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @pacem/pacem-foundation v1.0.0-amaldi (https://js.pacem.it)
2
+ * @pacem/pacem-foundation v1.0.0-archimedes (https://js.pacem.it)
3
3
  * Pacem (https://pacem.it)
4
4
  * Licensed under Apache-2.0
5
5
  */
package/dist/esm/blobs.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @pacem/pacem-foundation v1.0.0-amaldi (https://js.pacem.it)
2
+ * @pacem/pacem-foundation v1.0.0-archimedes (https://js.pacem.it)
3
3
  * Pacem (https://pacem.it)
4
4
  * Licensed under Apache-2.0
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @pacem/pacem-foundation v1.0.0-amaldi (https://js.pacem.it)
2
+ * @pacem/pacem-foundation v1.0.0-archimedes (https://js.pacem.it)
3
3
  * Pacem (https://pacem.it)
4
4
  * Licensed under Apache-2.0
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @pacem/pacem-foundation v1.0.0-amaldi (https://js.pacem.it)
2
+ * @pacem/pacem-foundation v1.0.0-archimedes (https://js.pacem.it)
3
3
  * Pacem (https://pacem.it)
4
4
  * Licensed under Apache-2.0
5
5
  */
package/dist/esm/dates.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @pacem/pacem-foundation v1.0.0-amaldi (https://js.pacem.it)
2
+ * @pacem/pacem-foundation v1.0.0-archimedes (https://js.pacem.it)
3
3
  * Pacem (https://pacem.it)
4
4
  * Licensed under Apache-2.0
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @pacem/pacem-foundation v1.0.0-amaldi (https://js.pacem.it)
2
+ * @pacem/pacem-foundation v1.0.0-archimedes (https://js.pacem.it)
3
3
  * Pacem (https://pacem.it)
4
4
  * Licensed under Apache-2.0
5
5
  */
package/dist/esm/geom.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @pacem/pacem-foundation v1.0.0-amaldi (https://js.pacem.it)
2
+ * @pacem/pacem-foundation v1.0.0-archimedes (https://js.pacem.it)
3
3
  * Pacem (https://pacem.it)
4
4
  * Licensed under Apache-2.0
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @pacem/pacem-foundation v1.0.0-amaldi (https://js.pacem.it)
2
+ * @pacem/pacem-foundation v1.0.0-archimedes (https://js.pacem.it)
3
3
  * Pacem (https://pacem.it)
4
4
  * Licensed under Apache-2.0
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @pacem/pacem-foundation v1.0.0-amaldi (https://js.pacem.it)
2
+ * @pacem/pacem-foundation v1.0.0-archimedes (https://js.pacem.it)
3
3
  * Pacem (https://pacem.it)
4
4
  * Licensed under Apache-2.0
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @pacem/pacem-foundation v1.0.0-amaldi (https://js.pacem.it)
2
+ * @pacem/pacem-foundation v1.0.0-archimedes (https://js.pacem.it)
3
3
  * Pacem (https://pacem.it)
4
4
  * Licensed under Apache-2.0
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @pacem/pacem-foundation v1.0.0-amaldi (https://js.pacem.it)
2
+ * @pacem/pacem-foundation v1.0.0-archimedes (https://js.pacem.it)
3
3
  * Pacem (https://pacem.it)
4
4
  * Licensed under Apache-2.0
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @pacem/pacem-foundation v1.0.0-amaldi (https://js.pacem.it)
2
+ * @pacem/pacem-foundation v1.0.0-archimedes (https://js.pacem.it)
3
3
  * Pacem (https://pacem.it)
4
4
  * Licensed under Apache-2.0
5
5
  */
package/dist/esm/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @pacem/pacem-foundation v1.0.0-amaldi (https://js.pacem.it)
2
+ * @pacem/pacem-foundation v1.0.0-archimedes (https://js.pacem.it)
3
3
  * Pacem (https://pacem.it)
4
4
  * Licensed under Apache-2.0
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @pacem/pacem-foundation v1.0.0-amaldi (https://js.pacem.it)
2
+ * @pacem/pacem-foundation v1.0.0-archimedes (https://js.pacem.it)
3
3
  * Pacem (https://pacem.it)
4
4
  * Licensed under Apache-2.0
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @pacem/pacem-foundation v1.0.0-amaldi (https://js.pacem.it)
2
+ * @pacem/pacem-foundation v1.0.0-archimedes (https://js.pacem.it)
3
3
  * Pacem (https://pacem.it)
4
4
  * Licensed under Apache-2.0
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @pacem/pacem-foundation v1.0.0-amaldi (https://js.pacem.it)
2
+ * @pacem/pacem-foundation v1.0.0-archimedes (https://js.pacem.it)
3
3
  * Pacem (https://pacem.it)
4
4
  * Licensed under Apache-2.0
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @pacem/pacem-foundation v1.0.0-amaldi (https://js.pacem.it)
2
+ * @pacem/pacem-foundation v1.0.0-archimedes (https://js.pacem.it)
3
3
  * Pacem (https://pacem.it)
4
4
  * Licensed under Apache-2.0
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @pacem/pacem-foundation v1.0.0-amaldi (https://js.pacem.it)
2
+ * @pacem/pacem-foundation v1.0.0-archimedes (https://js.pacem.it)
3
3
  * Pacem (https://pacem.it)
4
4
  * Licensed under Apache-2.0
5
5
  */
package/dist/esm/rect.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @pacem/pacem-foundation v1.0.0-amaldi (https://js.pacem.it)
2
+ * @pacem/pacem-foundation v1.0.0-archimedes (https://js.pacem.it)
3
3
  * Pacem (https://pacem.it)
4
4
  * Licensed under Apache-2.0
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @pacem/pacem-foundation v1.0.0-amaldi (https://js.pacem.it)
2
+ * @pacem/pacem-foundation v1.0.0-archimedes (https://js.pacem.it)
3
3
  * Pacem (https://pacem.it)
4
4
  * Licensed under Apache-2.0
5
5
  */
package/package.json CHANGED
@@ -24,7 +24,7 @@
24
24
  "types": "./typings/index.d.ts"
25
25
  }
26
26
  },
27
- "version": "1.0.0-amaldi",
27
+ "version": "1.0.0-archimedes",
28
28
  "author": {
29
29
  "name": "Pacem",
30
30
  "url": "https://pacem.it"