@soltech/fluid-common 1.4.0 → 1.4.1

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/AGENTS.md CHANGED
@@ -18,7 +18,18 @@ Read this entire file before every task.
18
18
  ## Build, Dev & Validation
19
19
  - Build: `npm run build`
20
20
  - Lint: `npm run lint`
21
- - Publish: `npm run pub` (build + publish + push)
21
+ - Publish: see Publishing Flow below
22
+
23
+ ### Publishing Flow
24
+ The correct sequence before publishing a new version:
25
+ 1. Make all code changes to `src/index.ts`.
26
+ 2. Bump `version` in `package.json`.
27
+ 3. Run `npm i` (updates `package-lock.json`).
28
+ 4. Commit all changes (`src/index.ts`, `package.json`, `package-lock.json`).
29
+ 5. Push the commit: `git push`.
30
+ 6. Publish to npm: `npm publish` (this runs `npm run build` first via the `pub` script, or run `npm run build && npm publish` directly).
31
+
32
+ Do **not** use `npm run pub` as a single command — it pushes *after* publishing, which means npm gets the package before git has a clean commit.
22
33
 
23
34
  Before final proposal on code changes:
24
35
  1. Run `npm run lint`.
package/lib/index.d.ts CHANGED
@@ -119,7 +119,7 @@ export interface PaymentMethod {
119
119
  bonusCodes?: string[];
120
120
  instructions?: string;
121
121
  fees?: PaymentMethodFees;
122
- windowRedirectType: WindowRedirectType;
122
+ windowRedirectType?: WindowRedirectType;
123
123
  voucherAmounts?: number[];
124
124
  depositHandledByHostSite?: boolean;
125
125
  withdrawalHandledByHostSite?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soltech/fluid-common",
3
- "version": "1.4.0",
3
+ "version": "1.4.1",
4
4
  "type": "module",
5
5
  "description": "Fluid frontend, API and AI common interfaces & enums",
6
6
  "main": "lib/index.js",
package/src/index.ts CHANGED
@@ -134,7 +134,7 @@ export interface PaymentMethod {
134
134
  bonusCodes?: string[];
135
135
  instructions?: string;
136
136
  fees?: PaymentMethodFees;
137
- windowRedirectType: WindowRedirectType;
137
+ windowRedirectType?: WindowRedirectType;
138
138
  voucherAmounts?: number[];
139
139
  depositHandledByHostSite?: boolean;
140
140
  withdrawalHandledByHostSite?: boolean;