recipe-scrapers-js 1.0.0-rc.3 → 1.0.0-rc.4

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 CHANGED
@@ -6,6 +6,12 @@ All notable changes to this project will be documented in this file.
6
6
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
7
7
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
8
8
 
9
+ ## [1.0.0-rc.4] - 2025-12-21
10
+
11
+ ### Fixed
12
+
13
+ - Fix `zNonEmptyArray` typing
14
+
9
15
  ## [1.0.0-rc.3] - 2025-12-21
10
16
 
11
17
  ### Changed
package/dist/index.d.mts CHANGED
@@ -74,27 +74,17 @@ declare const IngredientItemSchema: z.ZodObject<{
74
74
  */
75
75
  declare const IngredientGroupSchema: z.ZodObject<{
76
76
  name: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
77
- items: z.ZodArray<z.core.$ZodType<{
78
- value: string;
79
- parsed?: {
80
- quantity: number | null;
81
- quantity2: number | null;
82
- unitOfMeasureID: string | null;
83
- unitOfMeasure: string | null;
84
- description: string;
85
- isGroupHeader: boolean;
86
- } | undefined;
87
- }, unknown, z.core.$ZodTypeInternals<{
88
- value: string;
89
- parsed?: {
90
- quantity: number | null;
91
- quantity2: number | null;
92
- unitOfMeasureID: string | null;
93
- unitOfMeasure: string | null;
94
- description: string;
95
- isGroupHeader: boolean;
96
- } | undefined;
97
- }, unknown>>>;
77
+ items: z.ZodArray<z.ZodObject<{
78
+ value: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
79
+ parsed: z.ZodOptional<z.ZodObject<{
80
+ quantity: z.ZodNullable<z.ZodNumber>;
81
+ quantity2: z.ZodNullable<z.ZodNumber>;
82
+ unitOfMeasureID: z.ZodNullable<z.ZodString>;
83
+ unitOfMeasure: z.ZodNullable<z.ZodString>;
84
+ description: z.ZodString;
85
+ isGroupHeader: z.ZodBoolean;
86
+ }, z.core.$strip>>;
87
+ }, z.core.$strip>>;
98
88
  }, z.core.$strip>;
99
89
  /**
100
90
  * Schema for all recipe ingredients
@@ -102,27 +92,17 @@ declare const IngredientGroupSchema: z.ZodObject<{
102
92
  */
103
93
  declare const IngredientsSchema: z.ZodArray<z.ZodObject<{
104
94
  name: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
105
- items: z.ZodArray<z.core.$ZodType<{
106
- value: string;
107
- parsed?: {
108
- quantity: number | null;
109
- quantity2: number | null;
110
- unitOfMeasureID: string | null;
111
- unitOfMeasure: string | null;
112
- description: string;
113
- isGroupHeader: boolean;
114
- } | undefined;
115
- }, unknown, z.core.$ZodTypeInternals<{
116
- value: string;
117
- parsed?: {
118
- quantity: number | null;
119
- quantity2: number | null;
120
- unitOfMeasureID: string | null;
121
- unitOfMeasure: string | null;
122
- description: string;
123
- isGroupHeader: boolean;
124
- } | undefined;
125
- }, unknown>>>;
95
+ items: z.ZodArray<z.ZodObject<{
96
+ value: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
97
+ parsed: z.ZodOptional<z.ZodObject<{
98
+ quantity: z.ZodNullable<z.ZodNumber>;
99
+ quantity2: z.ZodNullable<z.ZodNumber>;
100
+ unitOfMeasureID: z.ZodNullable<z.ZodString>;
101
+ unitOfMeasure: z.ZodNullable<z.ZodString>;
102
+ description: z.ZodString;
103
+ isGroupHeader: z.ZodBoolean;
104
+ }, z.core.$strip>>;
105
+ }, z.core.$strip>>;
126
106
  }, z.core.$strip>>;
127
107
  /**
128
108
  * Schema for a single instruction step
@@ -135,11 +115,9 @@ declare const InstructionItemSchema: z.ZodObject<{
135
115
  */
136
116
  declare const InstructionGroupSchema: z.ZodObject<{
137
117
  name: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
138
- items: z.ZodArray<z.core.$ZodType<{
139
- value: string;
140
- }, unknown, z.core.$ZodTypeInternals<{
141
- value: string;
142
- }, unknown>>>;
118
+ items: z.ZodArray<z.ZodObject<{
119
+ value: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
120
+ }, z.core.$strip>>;
143
121
  }, z.core.$strip>;
144
122
  /**
145
123
  * Schema for all recipe instructions
@@ -147,11 +125,9 @@ declare const InstructionGroupSchema: z.ZodObject<{
147
125
  */
148
126
  declare const InstructionsSchema: z.ZodArray<z.ZodObject<{
149
127
  name: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
150
- items: z.ZodArray<z.core.$ZodType<{
151
- value: string;
152
- }, unknown, z.core.$ZodTypeInternals<{
153
- value: string;
154
- }, unknown>>>;
128
+ items: z.ZodArray<z.ZodObject<{
129
+ value: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
130
+ }, z.core.$strip>>;
155
131
  }, z.core.$strip>>;
156
132
  /**
157
133
  * Schema for a link object
@@ -183,35 +159,23 @@ declare const RecipeObjectBaseSchema: z.ZodObject<{
183
159
  author: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
184
160
  ingredients: z.ZodArray<z.ZodObject<{
185
161
  name: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
186
- items: z.ZodArray<z.core.$ZodType<{
187
- value: string;
188
- parsed?: {
189
- quantity: number | null;
190
- quantity2: number | null;
191
- unitOfMeasureID: string | null;
192
- unitOfMeasure: string | null;
193
- description: string;
194
- isGroupHeader: boolean;
195
- } | undefined;
196
- }, unknown, z.core.$ZodTypeInternals<{
197
- value: string;
198
- parsed?: {
199
- quantity: number | null;
200
- quantity2: number | null;
201
- unitOfMeasureID: string | null;
202
- unitOfMeasure: string | null;
203
- description: string;
204
- isGroupHeader: boolean;
205
- } | undefined;
206
- }, unknown>>>;
162
+ items: z.ZodArray<z.ZodObject<{
163
+ value: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
164
+ parsed: z.ZodOptional<z.ZodObject<{
165
+ quantity: z.ZodNullable<z.ZodNumber>;
166
+ quantity2: z.ZodNullable<z.ZodNumber>;
167
+ unitOfMeasureID: z.ZodNullable<z.ZodString>;
168
+ unitOfMeasure: z.ZodNullable<z.ZodString>;
169
+ description: z.ZodString;
170
+ isGroupHeader: z.ZodBoolean;
171
+ }, z.core.$strip>>;
172
+ }, z.core.$strip>>;
207
173
  }, z.core.$strip>>;
208
174
  instructions: z.ZodArray<z.ZodObject<{
209
175
  name: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
210
- items: z.ZodArray<z.core.$ZodType<{
211
- value: string;
212
- }, unknown, z.core.$ZodTypeInternals<{
213
- value: string;
214
- }, unknown>>>;
176
+ items: z.ZodArray<z.ZodObject<{
177
+ value: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
178
+ }, z.core.$strip>>;
215
179
  }, z.core.$strip>>;
216
180
  canonicalUrl: z.ZodURL;
217
181
  image: z.ZodURL;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "recipe-scrapers-js",
3
- "version": "1.0.0-rc.3",
3
+ "version": "1.0.0-rc.4",
4
4
  "license": "MIT",
5
5
  "description": "A recipe scrapers library",
6
6
  "author": {