@camphoric/camphoric-event-lark 2.0.0 → 3.0.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.
- package/CHANGELOG.md +11 -0
- package/README.md +16 -10
- package/dist/index.d.ts +1 -0
- package/dist/index.js +5 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [3.0.0](https://github.com/camphoric/camphoric-event-lark/compare/v2.0.0...v3.0.0) (2026-11-18)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### ⚠ BREAKING CHANGES
|
|
7
|
+
|
|
8
|
+
* **event:** the import-spec peer range is now ^1.3.0, the first spec with an event's cancellation fee, so the event needs Camphoric v0.19.0 or later.
|
|
9
|
+
|
|
10
|
+
### Features
|
|
11
|
+
|
|
12
|
+
* **event:** offer a $150 cancellation fee plus PayPal's fees (Camphoric v0.19) ([611fb9a](https://github.com/camphoric/camphoric-event-lark/commit/611fb9af873ae91a5ea1ccf3c9ea5326112930d7)), closes [#29](https://github.com/camphoric/camphoric-event-lark/issues/29)
|
|
13
|
+
|
|
3
14
|
## [2.0.0](https://github.com/camphoric/camphoric-event-lark/compare/v1.0.1...v2.0.0) (2026-11-12)
|
|
4
15
|
|
|
5
16
|
|
package/README.md
CHANGED
|
@@ -22,7 +22,7 @@ scripts/smoke-test-package.sh # pack it, install it, and load it from its buil
|
|
|
22
22
|
```
|
|
23
23
|
|
|
24
24
|
The event's source is TypeScript; the published package is its build (`dist/`) and its report
|
|
25
|
-
templates (`reports/`). The spec is a **peer dependency** (`^1.
|
|
25
|
+
templates (`reports/`). The spec is a **peer dependency** (`^1.3.0`, the first with an event's cancellation fee), so Camphoric's importer loads
|
|
26
26
|
one copy of it for every event; a spec major this event doesn't follow fails to install rather than
|
|
27
27
|
nesting a second copy. Camphoric's `RELEASE.md` ("What a spec version means") describes how a new
|
|
28
28
|
spec major is rolled out.
|
|
@@ -62,14 +62,15 @@ playwright show-report`, gives the HTML report (with traces) that CI uploads.
|
|
|
62
62
|
|
|
63
63
|
- `CAMPHORIC_IMAGE_TAG` picks the release image's tag (default `latest`, pulled fresh);
|
|
64
64
|
`CAMPHORIC_E2E_IMAGE` names a locally built image instead. The harness (import-tools 3) imports
|
|
65
|
-
with a personal access token it mints in the server
|
|
66
|
-
later
|
|
65
|
+
with a personal access token it mints in the server (Camphoric v0.18.0 or later), and
|
|
66
|
+
`e2e/cancellation.spec.ts` checks the event's cancellation fee (v0.19.0 or later), so the image
|
|
67
|
+
must be Camphoric v0.19.0 or later.
|
|
67
68
|
- The tests need that throwaway server: its fake PayPal is what lets them pay online, so
|
|
68
69
|
`CAMPHORIC_E2E_SERVER_URL` (importing into a running server) can't be used for them.
|
|
69
70
|
- Every test, on desktop and mobile Chrome, shares the one imported event, so a registration one
|
|
70
71
|
test completes stays.
|
|
71
72
|
- `e2e/reports.spec.ts` signs in to the admin (as the throwaway server's admin, from the
|
|
72
|
-
harness's `adminCredentials()`) and opens each report in `reports.ts`. It fails on any render
|
|
73
|
+
harness's `adminCredentials()`, with `e2e/admin.ts`'s `signIn`) and opens each report in `reports.ts`. It fails on any render
|
|
73
74
|
error, and on any server warning (a field the event or a Camphoric object doesn't have) but the
|
|
74
75
|
known ones its `knownWarnings` lists, each tracked by an issue. It also fails a CSV report whose
|
|
75
76
|
quoting is broken or whose rows don't have the header's number of fields (an unquoted comma). It
|
|
@@ -77,6 +78,10 @@ playwright show-report`, gives the HTML report (with traces) that CI uploads.
|
|
|
77
78
|
server. A warning comes only from a line some registration reaches, and every test shares the
|
|
78
79
|
one event, so which show depends on what the tests have registered:
|
|
79
80
|
`__tests__/reportVariables.test.ts` checks every name a template reads against the event instead.
|
|
81
|
+
- `e2e/cancellation.spec.ts` signs in the same way and checks the imported event's cancellation
|
|
82
|
+
fee, and that the server offers a sample camper $150 when they're cancelled (no sample
|
|
83
|
+
registration has PayPal fees). `__tests__/cancellationFee.test.ts` checks the PayPal fees and
|
|
84
|
+
later cancellations.
|
|
80
85
|
- The fixtures: `registration`, a page object for the form (fields by label, campers and their
|
|
81
86
|
lists, lodging, the price ticker, the payment step); `admin`, for invitations and the email the
|
|
82
87
|
server sent; and `payPal`, the orders sent to the fake PayPal. The client's markup lives only
|
|
@@ -135,13 +140,14 @@ gh workflow run upstream.yml -f force=true
|
|
|
135
140
|
```
|
|
136
141
|
|
|
137
142
|
To run CI or E2E by hand against a given image tag (a pre-release, say) or exact package
|
|
138
|
-
versions (an image of v0.
|
|
139
|
-
the server, and earlier versions sign in with a password v0.18.0
|
|
143
|
+
versions (an image of v0.19.0 or later, for the cancellation fee test, and import-tools 3.x: the
|
|
144
|
+
harness mints an API token in the server, and earlier versions sign in with a password v0.18.0
|
|
145
|
+
refuses):
|
|
140
146
|
|
|
141
147
|
```bash
|
|
142
|
-
gh workflow run e2e.yml -f image_tag=v0.
|
|
143
|
-
gh workflow run e2e.yml -f spec_version=1.
|
|
144
|
-
gh workflow run ci.yml -f spec_version=1.
|
|
148
|
+
gh workflow run e2e.yml -f image_tag=v0.20.0-rc.1
|
|
149
|
+
gh workflow run e2e.yml -f spec_version=1.3.0 -f tools_version=3.0.0
|
|
150
|
+
gh workflow run ci.yml -f spec_version=1.3.0 -f tools_version=3.0.0
|
|
145
151
|
```
|
|
146
152
|
|
|
147
153
|
A version outside this event's range works too, such as a new major or a pre-release
|
|
@@ -152,7 +158,7 @@ installs the packed package with the `spec_version` given (`tools_version` doesn
|
|
|
152
158
|
the package doesn't depend on the tools). To do the same locally:
|
|
153
159
|
|
|
154
160
|
```bash
|
|
155
|
-
SPEC_VERSION=1.
|
|
161
|
+
SPEC_VERSION=1.3.0 scripts/smoke-test-package.sh
|
|
156
162
|
```
|
|
157
163
|
|
|
158
164
|
GitHub disables scheduled workflows in a public repository after 60 days without activity; if
|
package/dist/index.d.ts
CHANGED
|
@@ -79,6 +79,7 @@ declare const _default: {
|
|
|
79
79
|
}[] | undefined;
|
|
80
80
|
paypal_client_id?: string | undefined;
|
|
81
81
|
epayment_handling?: string | undefined;
|
|
82
|
+
cancellation_fee?: number | object | null | undefined;
|
|
82
83
|
pre_submit_template?: string | undefined;
|
|
83
84
|
confirmation_page_template?: string | undefined;
|
|
84
85
|
confirmation_email_subject?: string | undefined;
|
package/dist/index.js
CHANGED
|
@@ -49,6 +49,11 @@ const data = {
|
|
|
49
49
|
pricing,
|
|
50
50
|
registration_pricing_logic,
|
|
51
51
|
camper_pricing_logic,
|
|
52
|
+
// offered when a camper is cancelled: $150 a camper, plus PayPal's fees on
|
|
53
|
+
// the registration's payments, those once (on the first camper cancelled)
|
|
54
|
+
cancellation_fee: {
|
|
55
|
+
'+': [150, { if: [{ var: 'first_cancellation' }, { var: 'paypal_fees' }, 0] }],
|
|
56
|
+
},
|
|
52
57
|
pre_submit_template,
|
|
53
58
|
confirmation_page_template,
|
|
54
59
|
confirmation_email_template,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camphoric/camphoric-event-lark",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"description": "Lark Traditional Arts' Lark Camp Camphoric event: its import object, organization, reports and bulk registrations.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -38,10 +38,10 @@
|
|
|
38
38
|
"luxon": "^3.7.2"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
|
-
"@camphoric/camphoric-event-import-spec": "^1.
|
|
41
|
+
"@camphoric/camphoric-event-import-spec": "^1.3.0"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@camphoric/camphoric-event-import-spec": "^1.
|
|
44
|
+
"@camphoric/camphoric-event-import-spec": "^1.3.0",
|
|
45
45
|
"@camphoric/camphoric-event-import-tools": "^3.0.0",
|
|
46
46
|
"@eslint/js": "^9.39.5",
|
|
47
47
|
"@jest/globals": "^30.5.2",
|