Skip to content

Commit

Permalink
Merge pull request #55 from lens-protocol/release/1.1.3
Browse files Browse the repository at this point in the history
Release/1.1.3
  • Loading branch information
cesarenaldi authored Dec 12, 2023
2 parents 39862c5 + 5c6bcaf commit 3c8384d
Show file tree
Hide file tree
Showing 109 changed files with 3,151 additions and 920 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @lens-protocol/metadata

## 1.1.3

### Patch Changes

- 45f384b: **fixed:** `OpenActionMetadataSchema` reflects latest decisions on the process/API side
- 03c3b03: **fixed:** fields with non-empty string validation to perform a robust value trimming before evaluating the rules
- a41559c: **fixed:** `PublicationMetadata` validation in case of empty `description` or empty `lens.content` for optional content pub types

## 1.1.2

### Patch Changes
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -622,13 +622,13 @@ switch (publicationMetadata.$schema) {

To contribute to the Lens Protocol Metadata Standards, please fork this repository and submit a pull request with your changes.

To run the tests, run:
To run the unit tests, run:

```bash
pnpm test
pnpm test:unit
```

**Pro-tip:** you can run `pnpm test -- --watch` to run the tests in watch mode.
**Pro-tip:** you can run `pnpm test:unit --watch` to run the tests in watch mode.

To build the project, run:

Expand Down
2 changes: 1 addition & 1 deletion docs/assets/navigation.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/assets/search.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions docs/enums/MarketplaceMetadataAttributeDisplayType.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ <h1>Enumeration MarketplaceMetadataAttributeDisplayType</h1></div>
<h4>See</h4><p><a href="https://docs.opensea.io/docs/metadata-standards#attributes">https://docs.opensea.io/docs/metadata-standards#attributes</a></p>
</div></section><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/lens-protocol/metadata/blob/main/src/publication/common/marketplace.ts#L16">src/publication/common/marketplace.ts:16</a></li></ul></aside>
<li>Defined in <a href="https://github.com/lens-protocol/metadata/blob/main/src/publication/common/marketplace.ts#L10">src/publication/common/marketplace.ts:10</a></li></ul></aside>
<section class="tsd-panel-group tsd-index-group">
<section class="tsd-panel tsd-index-panel">
<details class="tsd-index-content tsd-index-accordion" open><summary class="tsd-accordion-summary tsd-index-summary">
Expand All @@ -40,17 +40,17 @@ <h2>Enumeration Members</h2>
<h3 class="tsd-anchor-link"><span>DATE</span><a href="#DATE" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
<div class="tsd-signature"><span class="tsd-kind-enum-member">DATE</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">&quot;date&quot;</span></div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/lens-protocol/metadata/blob/main/src/publication/common/marketplace.ts#L19">src/publication/common/marketplace.ts:19</a></li></ul></aside></section>
<li>Defined in <a href="https://github.com/lens-protocol/metadata/blob/main/src/publication/common/marketplace.ts#L13">src/publication/common/marketplace.ts:13</a></li></ul></aside></section>
<section class="tsd-panel tsd-member"><a id="NUMBER" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>NUMBER</span><a href="#NUMBER" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
<div class="tsd-signature"><span class="tsd-kind-enum-member">NUMBER</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">&quot;number&quot;</span></div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/lens-protocol/metadata/blob/main/src/publication/common/marketplace.ts#L17">src/publication/common/marketplace.ts:17</a></li></ul></aside></section>
<li>Defined in <a href="https://github.com/lens-protocol/metadata/blob/main/src/publication/common/marketplace.ts#L11">src/publication/common/marketplace.ts:11</a></li></ul></aside></section>
<section class="tsd-panel tsd-member"><a id="STRING" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>STRING</span><a href="#STRING" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
<div class="tsd-signature"><span class="tsd-kind-enum-member">STRING</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">&quot;string&quot;</span></div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/lens-protocol/metadata/blob/main/src/publication/common/marketplace.ts#L18">src/publication/common/marketplace.ts:18</a></li></ul></aside></section></section></div>
<li>Defined in <a href="https://github.com/lens-protocol/metadata/blob/main/src/publication/common/marketplace.ts#L12">src/publication/common/marketplace.ts:12</a></li></ul></aside></section></section></div>
<div class="col-sidebar">
<div class="page-menu">
<div class="tsd-navigation settings">
Expand Down
8 changes: 4 additions & 4 deletions docs/enums/PublicationContentWarning.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<li><a href="PublicationContentWarning.html">PublicationContentWarning</a></li></ul>
<h1>Enumeration PublicationContentWarning</h1></div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/lens-protocol/metadata/blob/main/src/publication/common/index.ts#L27">src/publication/common/index.ts:27</a></li></ul></aside>
<li>Defined in <a href="https://github.com/lens-protocol/metadata/blob/main/src/publication/common/index.ts#L29">src/publication/common/index.ts:29</a></li></ul></aside>
<section class="tsd-panel-group tsd-index-group">
<section class="tsd-panel tsd-index-panel">
<details class="tsd-index-content tsd-index-accordion" open><summary class="tsd-accordion-summary tsd-index-summary">
Expand All @@ -34,17 +34,17 @@ <h2>Enumeration Members</h2>
<h3 class="tsd-anchor-link"><span>NSFW</span><a href="#NSFW" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
<div class="tsd-signature"><span class="tsd-kind-enum-member">NSFW</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">&quot;NSFW&quot;</span></div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/lens-protocol/metadata/blob/main/src/publication/common/index.ts#L28">src/publication/common/index.ts:28</a></li></ul></aside></section>
<li>Defined in <a href="https://github.com/lens-protocol/metadata/blob/main/src/publication/common/index.ts#L30">src/publication/common/index.ts:30</a></li></ul></aside></section>
<section class="tsd-panel tsd-member"><a id="SENSITIVE" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>SENSITIVE</span><a href="#SENSITIVE" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
<div class="tsd-signature"><span class="tsd-kind-enum-member">SENSITIVE</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">&quot;SENSITIVE&quot;</span></div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/lens-protocol/metadata/blob/main/src/publication/common/index.ts#L29">src/publication/common/index.ts:29</a></li></ul></aside></section>
<li>Defined in <a href="https://github.com/lens-protocol/metadata/blob/main/src/publication/common/index.ts#L31">src/publication/common/index.ts:31</a></li></ul></aside></section>
<section class="tsd-panel tsd-member"><a id="SPOILER" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>SPOILER</span><a href="#SPOILER" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
<div class="tsd-signature"><span class="tsd-kind-enum-member">SPOILER</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">&quot;SPOILER&quot;</span></div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/lens-protocol/metadata/blob/main/src/publication/common/index.ts#L30">src/publication/common/index.ts:30</a></li></ul></aside></section></section></div>
<li>Defined in <a href="https://github.com/lens-protocol/metadata/blob/main/src/publication/common/index.ts#L32">src/publication/common/index.ts:32</a></li></ul></aside></section></section></div>
<div class="col-sidebar">
<div class="page-menu">
<div class="tsd-navigation settings">
Expand Down
2 changes: 1 addition & 1 deletion docs/functions/geoPoint-1.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ <h5><span class="tsd-kind-parameter">value</span>: <span class="tsd-signature-sy
<h4 class="tsd-returns-title">Returns <a href="../types/GeoPoint.html" class="tsd-signature-type tsd-kind-type-alias">GeoPoint</a></h4>
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/lens-protocol/metadata/blob/main/src/primitives.ts#L372">src/primitives.ts:372</a></li></ul></aside></li></ul></section></div>
<li>Defined in <a href="https://github.com/lens-protocol/metadata/blob/main/src/primitives.ts#L407">src/primitives.ts:407</a></li></ul></aside></li></ul></section></div>
<div class="col-sidebar">
<div class="page-menu">
<div class="tsd-navigation settings">
Expand Down
2 changes: 1 addition & 1 deletion docs/functions/geoUri-1.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ <h4>Example</h4><pre><code class="language-ts"><span class="hl-10">geoUri</span>
</code><button>Copy</button></pre>
</div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/lens-protocol/metadata/blob/main/src/primitives.ts#L356">src/primitives.ts:356</a></li></ul></aside></li></ul></section></div>
<li>Defined in <a href="https://github.com/lens-protocol/metadata/blob/main/src/primitives.ts#L391">src/primitives.ts:391</a></li></ul></aside></li></ul></section></div>
<div class="col-sidebar">
<div class="page-menu">
<div class="tsd-navigation settings">
Expand Down
2 changes: 1 addition & 1 deletion docs/functions/mainContentFocus.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ <h4 class="tsd-parameters-title">Parameters</h4>
<h5><code class="tsd-tag ts-flagRest">Rest</code> <span class="tsd-signature-symbol">...</span><span class="tsd-kind-parameter">focuses</span>: <span class="tsd-signature-symbol">[</span><span class="tsd-signature-type tsd-kind-type-parameter">T</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type tsd-kind-type-parameter">O</span><span class="tsd-signature-symbol">]</span></h5></li></ul></div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">z.ZodUnion</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-symbol">[</span><span class="tsd-signature-type ">z.ZodLiteral</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">T</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type ">z.ZodLiteral</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">O</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">]</span><span class="tsd-signature-symbol">&gt;</span></h4><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/lens-protocol/metadata/blob/main/src/publication/common/index.ts#L178">src/publication/common/index.ts:178</a></li></ul></aside></li></ul></section></div>
<li>Defined in <a href="https://github.com/lens-protocol/metadata/blob/main/src/publication/common/index.ts#L180">src/publication/common/index.ts:180</a></li></ul></aside></li></ul></section></div>
<div class="col-sidebar">
<div class="page-menu">
<div class="tsd-navigation settings">
Expand Down
Loading

0 comments on commit 3c8384d

Please sign in to comment.