@particle-academy/instagram-business-js 0.1.0 → 0.1.2

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 (2) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/package.json +3 -2
package/CHANGELOG.md CHANGED
@@ -4,6 +4,44 @@ All notable changes to `@particle-academy/instagram-business-ui`,
4
4
  `@particle-academy/instagram-business-js`,
5
5
  `particle-academy/instagram-business-php` and `fancy-instagram-business`.
6
6
 
7
+ ## [0.1.2] — 2026-09-11
8
+
9
+ ### Added
10
+
11
+ - **`fancy-flow-php` executors for every node.** `src/Flow/` carries one `#[FlowNode]` class per action and trigger, and `InstagramBusinessFlow::EXECUTORS` lists them.
12
+
13
+ A Laravel host running fancy-flow-php could show this connector's nodes in its editor and could not run them: `particle-academy/instagram-business-php` shipped the request builders and no executor. Each one is the PHP twin of the executor in `@particle-academy/instagram-business-js` — the same kind, the same request, the same value on `out` — and an unsafe-to-replay action derives its idempotency key from the run and the node, so a retried durable run sends the key it sent the first time.
14
+
15
+ Register them by adding `vendor/particle-academy/instagram-business-php/packages/php/src/Flow` to `config('fancy-flow.discover')`. `particle-academy/fancy-flow-php` is SUGGESTED, not required, and conflicts outside `>=0.51.0 <2.0`, the range the executors were tested under. Nothing outside `Flow\` needs it.
16
+
17
+ ### Fixed
18
+
19
+ - **Fake mode through `ConnectorClient` threw.** `InstagramBusiness::descriptor()` handed the connector core its faker as `InstagramBusinessFaker::respond(...)`, which takes `($operation, $request)`; the core calls a faker `($operation, $config, $fake, $input)`. So `$config` arrived as `$request` and every fake call died on "Call to a member function … on null". The descriptor now translates between the two. Calling `InstagramBusinessFaker::respond()` directly — what this package's own tests do, which is why they never saw it — is unchanged.
20
+
21
+ ## [0.1.1] — 2026-09-06
22
+
23
+ ### Changed
24
+
25
+ - **Published through npm Trusted Publishing, so these packages now carry PROVENANCE.**
26
+
27
+ Every earlier release went out under a scope-wide npm token. This one is
28
+ published by an OIDC exchange from the release workflow itself, and npm records
29
+ which workflow in which repository built it.
30
+ `npm view @particle-academy/instagram-business-ui@0.1.1` shows the attestation; releases before
31
+ this one have none.
32
+
33
+ What it buys a consumer: the tarball on the registry can be tied to a public
34
+ commit and a public workflow run, rather than to whoever held a token. What it
35
+ does not buy: nothing about the code changed, and the runtime behaviour of all
36
+ four packages is identical to 0.1.0.
37
+
38
+ - **`repository.directory` in the npm packages.**
39
+
40
+ `@particle-academy/instagram-business-ui` and `@particle-academy/instagram-business-js` live at
41
+ `packages/ui` and `packages/js` inside the provider repo. npm's `repository`
42
+ field now says so, which makes the "Repository" link on each package page point
43
+ at the package rather than at the repository root.
44
+
7
45
  ## [0.1.0] - 2026-08-24
8
46
 
9
47
  ### Added
package/package.json CHANGED
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "@particle-academy/instagram-business-js",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "Instagram for Business for Node — the service descriptor, its faker, its webhook verification, and one function per operation. Plain HTTP on @particle-academy/fancy-connector-core; no vendor SDK.",
5
5
  "repository": {
6
6
  "type": "git",
7
- "url": "git+https://github.com/Fancy-Friends/instagram-business.git"
7
+ "url": "git+https://github.com/Fancy-Friends/instagram-business.git",
8
+ "directory": "packages/js"
8
9
  },
9
10
  "homepage": "https://github.com/Fancy-Friends/instagram-business#readme",
10
11
  "bugs": "https://github.com/Fancy-Friends/instagram-business/issues",