@pagefront/lint-commerce 0.5.0 → 0.5.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/README.md CHANGED
@@ -24,6 +24,28 @@ failure. Both commerce page types are handled: product sheets and
24
24
  Commerce Organization Sheets each validate against their own schema and
25
25
  lint with their own catalogue, dispatched by sheet type.
26
26
 
27
+ ## Catalogue
28
+
29
+ Catalogue 0.8.0, targeting format 0.9: 34 product rules (`PDP-E-001` to
30
+ `PDP-E-004`, `PDP-W-001` to `PDP-W-029`, `PDP-I-001`) and 7 organization
31
+ rules (`ORG-E-001`, `ORG-W-001` to `ORG-W-006`), each defined in
32
+ [`rules.md`](https://github.com/themachineweb/pagefront/blob/main/commerce/spec/rules.md)
33
+ with its target, check, message and remediation. Every report carries the
34
+ `catalogue_version` it was produced with.
35
+
36
+ Added in 0.5.0 (catalogue 0.8.0), from the product spec's
37
+ ["Tax inclusion"](https://themachineweb.org/pagefront/spec/commerce/product#tax-inclusion)
38
+ section:
39
+
40
+ - `PDP-W-028` — an Offer states a price but no `priceSpecification` entry
41
+ carries a boolean `valueAddedTaxIncluded`
42
+ - `PDP-W-029` — an Offer states a price but declares neither `areaServed`
43
+ nor `eligibleRegion`
44
+ - `PDP-E-004` — a `priceSpecification` entry mirroring the Offer's price
45
+ states a different amount in the same currency
46
+
47
+ The two warnings exempt offers carrying `pagefront:priceOnRequest`.
48
+
27
49
  ## API
28
50
 
29
51
  The public surface — everything importable from the package root, and
package/dist/version.d.ts CHANGED
@@ -5,4 +5,4 @@
5
5
  * (test/linter-version.test.mjs) fails when they diverge. Regenerate
6
6
  * on version bump.
7
7
  */
8
- export declare const PACKAGE_VERSION = "0.5.0";
8
+ export declare const PACKAGE_VERSION = "0.5.1";
package/dist/version.js CHANGED
@@ -5,4 +5,4 @@
5
5
  * (test/linter-version.test.mjs) fails when they diverge. Regenerate
6
6
  * on version bump.
7
7
  */
8
- export const PACKAGE_VERSION = "0.5.0";
8
+ export const PACKAGE_VERSION = "0.5.1";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pagefront/lint-commerce",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "Pagefront commerce linter: the commerce rule catalogue and CLI, on the @pagefront/lint-core engine.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {