@sg-pattern-engine/algorithms 1.0.0 → 1.1.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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @sg-pattern-engine/algorithms@1.0.0 build /workspace/packages/algorithms
2
+ > @sg-pattern-engine/algorithms@1.1.0 build /workspace/packages/algorithms
3
3
  > tsup src/index.ts --format cjs,esm --dts --clean
4
4
 
5
5
  CLI Building entry: src/index.ts
@@ -10,10 +10,10 @@
10
10
  CJS Build start
11
11
  ESM Build start
12
12
  ESM dist/index.mjs 4.55 KB
13
- ESM ⚡️ Build success in 69ms
13
+ ESM ⚡️ Build success in 66ms
14
14
  CJS dist/index.js 5.73 KB
15
- CJS ⚡️ Build success in 73ms
15
+ CJS ⚡️ Build success in 67ms
16
16
  DTS Build start
17
- DTS ⚡️ Build success in 2012ms
17
+ DTS ⚡️ Build success in 2374ms
18
18
  DTS dist/index.d.ts 1.34 KB
19
19
  DTS dist/index.d.mts 1.34 KB
package/CHANGELOG.md ADDED
@@ -0,0 +1,14 @@
1
+ # @sg-pattern-engine/algorithms
2
+
3
+ ## 1.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - added package READMEs
8
+
9
+ ### Patch Changes
10
+
11
+ - added readme
12
+ - Updated dependencies
13
+ - Updated dependencies
14
+ - @sg-pattern-engine/core@1.1.0
package/README.md ADDED
@@ -0,0 +1,32 @@
1
+ # @sg-pattern-engine/algorithms
2
+
3
+ Built-in algorithm plugins for PatternEngine.
4
+
5
+ ## Install
6
+
7
+ \`\`\`bash
8
+ npm install @sg-pattern-engine/core @sg-pattern-engine/algorithms
9
+ \`\`\`
10
+
11
+ ## Algorithms
12
+
13
+ | Name | Output | Description |
14
+ |---|---|---|
15
+ | `perlin` | `scalarField` | Hash-based Perlin noise |
16
+ | `flowField` | `vectorField` | Random unit vector field |
17
+ | `voronoi` | `points` | Scattered Voronoi seed points |
18
+ | `reactionDiffusion` | `scalarField` | Full Gray-Scott simulation |
19
+
20
+ ## Usage
21
+
22
+ \`\`\`typescript
23
+ import { PatternEngine } from '@sg-pattern-engine/core';
24
+ import { algorithms } from '@sg-pattern-engine/algorithms';
25
+
26
+ const engine = new PatternEngine();
27
+ algorithms.forEach(algo => engine.registerAlgorithm(algo));
28
+ \`\`\`
29
+
30
+ ## Documentation
31
+
32
+ See the [full documentation](https://github.com/sarthakganguly/sg-design-patterns#readme).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sg-pattern-engine/algorithms",
3
- "version": "1.0.0",
3
+ "version": "1.1.0",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",
@@ -12,7 +12,7 @@
12
12
  }
13
13
  },
14
14
  "dependencies": {
15
- "@sg-pattern-engine/core": "1.0.0"
15
+ "@sg-pattern-engine/core": "1.1.0"
16
16
  },
17
17
  "devDependencies": {
18
18
  "tsup": "^8.0.0",