Skip to content

Commit c080c0f

Browse files
committed
chore: fix dependency issues and bump
1 parent 31eb374 commit c080c0f

File tree

16 files changed

+288
-221
lines changed

16 files changed

+288
-221
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@
1818
},
1919
"devDependencies": {
2020
"@antfu/eslint-config": "^0.25.2",
21-
"@vitest/ui": "^0.18.0",
21+
"@vitest/ui": "^0.18.1",
2222
"bumpp": "^8.2.1",
23-
"eslint": "^8.19.0",
23+
"eslint": "^8.20.0",
2424
"jsdom": "^20.0.0",
2525
"typescript": "^4.7.4",
2626
"unbuild": "^0.7.4",
2727
"utility-types": "^3.10.0",
28-
"vitest": "^0.18.0"
28+
"vitest": "^0.18.1"
2929
}
3030
}

packages/schema-org/nodes/Article/index.test.ts

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ describe('defineArticle', () => {
3030
expect(client.graphNodes).toMatchInlineSnapshot(`
3131
[
3232
{
33-
"@id": "https://example.com/#/schema/image/3248500182",
33+
"@id": "https://example.com/#/schema/image/eI7JYdUrdY",
3434
"@type": "ImageObject",
3535
"contentUrl": "https://example.com/my-image.png",
3636
"inLanguage": "en-AU",
@@ -44,7 +44,7 @@ describe('defineArticle', () => {
4444
"description": "test",
4545
"headline": "test",
4646
"image": {
47-
"@id": "https://example.com/#/schema/image/3248500182",
47+
"@id": "https://example.com/#/schema/image/eI7JYdUrdY",
4848
},
4949
"inLanguage": "en-AU",
5050
"thumbnailUrl": "https://example.com/my-image.png",
@@ -75,15 +75,17 @@ describe('defineArticle', () => {
7575

7676
expect(article?.headline).toEqual('Article headline')
7777
expect(article?.description).toEqual('my article description')
78-
expect(article?.image).toEqual({
79-
'@id': 'https://example.com/#/schema/image/1656904464',
80-
})
78+
expect(article?.image).toMatchInlineSnapshot(`
79+
{
80+
"@id": "https://example.com/#/schema/image/maGcIV09t0",
81+
}
82+
`)
8183

8284
expect(client.graphNodes.length).toEqual(2)
8385
expect(client.graphNodes).toMatchInlineSnapshot(`
8486
[
8587
{
86-
"@id": "https://example.com/#/schema/image/1656904464",
88+
"@id": "https://example.com/#/schema/image/maGcIV09t0",
8789
"@type": "ImageObject",
8890
"contentUrl": "https://example.com/image.png",
8991
"inLanguage": "en-AU",
@@ -97,7 +99,7 @@ describe('defineArticle', () => {
9799
"description": "my article description",
98100
"headline": "Article headline",
99101
"image": {
100-
"@id": "https://example.com/#/schema/image/1656904464",
102+
"@id": "https://example.com/#/schema/image/maGcIV09t0",
101103
},
102104
"inLanguage": "en-AU",
103105
"thumbnailUrl": "https://example.com/image.png",
@@ -228,12 +230,12 @@ describe('defineArticle', () => {
228230
// @ts-expect-error untyped
229231
const id = articleNode.author['@id']
230232

231-
expect(id).toEqual('https://example.com/#/schema/person/1230192103')
233+
expect(id).toEqual('https://example.com/#/schema/person/x29kfkAXdv')
232234

233-
const person = client.findNode('https://example.com/#/schema/person/1230192103')
235+
const person = client.findNode('https://example.com/#/schema/person/x29kfkAXdv')
234236
expect(person).toMatchInlineSnapshot(`
235237
{
236-
"@id": "https://example.com/#/schema/person/1230192103",
238+
"@id": "https://example.com/#/schema/person/x29kfkAXdv",
237239
"@type": "Person",
238240
"name": "Harlan Wilton",
239241
"url": "https://harlanzw.com",
@@ -270,20 +272,20 @@ describe('defineArticle', () => {
270272
expect(client.graphNodes).toMatchInlineSnapshot(`
271273
[
272274
{
273-
"@id": "https://example.com/#/schema/image/3248500182",
275+
"@id": "https://example.com/#/schema/image/eI7JYdUrdY",
274276
"@type": "ImageObject",
275277
"contentUrl": "https://example.com/my-image.png",
276278
"inLanguage": "en-AU",
277279
"url": "https://example.com/my-image.png",
278280
},
279281
{
280-
"@id": "https://example.com/#/schema/person/1870976560",
282+
"@id": "https://example.com/#/schema/person/t3ho9AFmi4",
281283
"@type": "Person",
282284
"name": "John doe",
283285
"url": "https://harlanzw.com",
284286
},
285287
{
286-
"@id": "https://example.com/#/schema/person/2970758057",
288+
"@id": "https://example.com/#/schema/person/4gh9pCDFUz",
287289
"@type": "Person",
288290
"name": "Jane doe",
289291
"url": "https://harlanzw.com",
@@ -308,18 +310,18 @@ describe('defineArticle', () => {
308310
"@type": "Article",
309311
"author": [
310312
{
311-
"@id": "https://example.com/#/schema/person/1870976560",
313+
"@id": "https://example.com/#/schema/person/t3ho9AFmi4",
312314
},
313315
{
314-
"@id": "https://example.com/#/schema/person/2970758057",
316+
"@id": "https://example.com/#/schema/person/4gh9pCDFUz",
315317
},
316318
],
317319
"dateModified": "2021-11-10T10:10:10.000Z",
318320
"datePublished": "2021-11-10T10:10:10.000Z",
319321
"description": "test",
320322
"headline": "test",
321323
"image": {
322-
"@id": "https://example.com/#/schema/image/3248500182",
324+
"@id": "https://example.com/#/schema/image/eI7JYdUrdY",
323325
},
324326
"inLanguage": "en-AU",
325327
"isPartOf": {

packages/schema-org/nodes/Comment/index.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@ describe('defineComment', () => {
1919
expect(graphNodes).toMatchInlineSnapshot(`
2020
[
2121
{
22-
"@id": "https://example.com/#/schema/person/1230192103",
22+
"@id": "https://example.com/#/schema/person/x29kfkAXdv",
2323
"@type": "Person",
2424
"name": "Harlan Wilton",
2525
},
2626
{
27-
"@id": "https://example.com/#/schema/comment/2288441280",
27+
"@id": "https://example.com/#/schema/comment/Tz8dNuamPI",
2828
"@type": "Comment",
2929
"author": {
30-
"@id": "https://example.com/#/schema/person/1230192103",
30+
"@id": "https://example.com/#/schema/person/x29kfkAXdv",
3131
},
3232
"text": "This is a comment",
3333
},

packages/schema-org/nodes/HowTo/index.test.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ describe('defineHowTo', () => {
3939
expect(graphNodes).toMatchInlineSnapshot(`
4040
[
4141
{
42-
"@id": "https://example.com/#/schema/image/2965761664",
42+
"@id": "https://example.com/#/schema/image/YJgouI7tGV",
4343
"@type": "ImageObject",
4444
"contentUrl": "https://example.com/1x1/photo.jpg",
4545
"inLanguage": "en-AU",
@@ -54,38 +54,38 @@ describe('defineHowTo', () => {
5454
{
5555
"@type": "HowToStep",
5656
"image": {
57-
"@id": "https://example.com/#/schema/image/2965761664",
57+
"@id": "https://example.com/#/schema/image/YJgouI7tGV",
5858
},
5959
"text": "Button your shirt how you'd like to wear it, then drape the tie around your neck. Make the thick end about 1/3rd longer than the short end. For formal button down shirts, it usually works best with the small end of the tie between 4th and 5th button.",
6060
"url": "https://example.com/#step-one",
6161
},
6262
{
6363
"@type": "HowToStep",
6464
"image": {
65-
"@id": "https://example.com/#/schema/image/2965761664",
65+
"@id": "https://example.com/#/schema/image/YJgouI7tGV",
6666
},
6767
"text": "Cross the long end over the short end. This will form the basis for your knot.",
6868
"url": "https://example.com/#step-two",
6969
},
7070
{
7171
"@type": "HowToStep",
7272
"image": {
73-
"@id": "https://example.com/#/schema/image/2965761664",
73+
"@id": "https://example.com/#/schema/image/YJgouI7tGV",
7474
},
7575
"text": "Bring the long end back under the short end, then throw it back over the top of the short end in the other direction. ",
7676
"url": "https://example.com/#step-three",
7777
},
7878
{
7979
"@type": "HowToStep",
8080
"image": {
81-
"@id": "https://example.com/#/schema/image/2965761664",
81+
"@id": "https://example.com/#/schema/image/YJgouI7tGV",
8282
},
8383
"text": "Now pull the long and through the loop near your neck, forming another loop near your neck.",
8484
},
8585
{
8686
"@type": "HowToStep",
8787
"image": {
88-
"@id": "https://example.com/#/schema/image/2965761664",
88+
"@id": "https://example.com/#/schema/image/YJgouI7tGV",
8989
},
9090
"text": "Pull the long end through that new loop and tighten to fit! ",
9191
},

packages/schema-org/nodes/Image/index.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ describe('defineImage', () => {
1717
expect(graphNodes).toMatchInlineSnapshot(`
1818
[
1919
{
20-
"@id": "https://example.com/#/schema/image/1656904464",
20+
"@id": "https://example.com/#/schema/image/maGcIV09t0",
2121
"@type": "ImageObject",
2222
"contentUrl": "https://example.com/image.png",
2323
"inLanguage": "en-AU",

packages/schema-org/nodes/LocalBusiness/index.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ describe('defineLocalBusiness', () => {
4343
"Dentist",
4444
],
4545
"address": {
46-
"@id": "https://example.com/#/schema/address/3351129328",
46+
"@id": "https://example.com/#/schema/address/xxJtONDjEO",
4747
"@type": "PostalAddress",
4848
"addressCountry": "Australia",
4949
"postalCode": "2000",

packages/schema-org/nodes/Organization/index.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ describe('defineOrganization', () => {
3434
"@id": "https://example.com/#identity",
3535
"@type": "Organization",
3636
"address": {
37-
"@id": "https://example.com/#/schema/address/3351129328",
37+
"@id": "https://example.com/#/schema/address/xxJtONDjEO",
3838
"@type": "PostalAddress",
3939
"addressCountry": "Australia",
4040
"postalCode": "2000",

packages/schema-org/nodes/Person/index.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ describe('definePerson', () => {
2121
expect(graphNodes).toMatchInlineSnapshot(`
2222
[
2323
{
24-
"@id": "https://example.com/#/schema/image/1571960974",
24+
"@id": "https://example.com/#/schema/image/rcLPLbzeDf",
2525
"@type": "ImageObject",
2626
"contentUrl": "https://example.com/logo.png",
2727
"inLanguage": "en-AU",
@@ -31,7 +31,7 @@ describe('definePerson', () => {
3131
"@id": "https://example.com/#identity",
3232
"@type": "Person",
3333
"image": {
34-
"@id": "https://example.com/#/schema/image/1571960974",
34+
"@id": "https://example.com/#/schema/image/rcLPLbzeDf",
3535
},
3636
"name": "test",
3737
"url": "https://example.com/",
@@ -57,7 +57,7 @@ describe('definePerson', () => {
5757
])
5858

5959
const client = injectSchemaOrg()
60-
expect(client.graphNodes[2]['@id']).toEqual('https://example.com/#/schema/person/3621006866')
60+
expect(client.graphNodes[2]['@id']).toEqual('https://example.com/#/schema/person/6i3hesDjDU')
6161
})
6262
})
6363

packages/schema-org/nodes/Product/index.test.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -41,56 +41,56 @@ describe('defineProduct', () => {
4141
expect(graphNodes).toMatchInlineSnapshot(`
4242
[
4343
{
44-
"@id": "https://example.com/#/schema/image/1032368654",
44+
"@id": "https://example.com/#/schema/image/Q6NjKAw0ZO",
4545
"@type": "ImageObject",
4646
"contentUrl": "https://example.com/product.png",
4747
"inLanguage": "en-AU",
4848
"url": "https://example.com/product.png",
4949
},
5050
{
51-
"@id": "https://example.com/#/schema/person/1230192103",
51+
"@id": "https://example.com/#/schema/person/x29kfkAXdv",
5252
"@type": "Person",
5353
"name": "Harlan Wilton",
5454
},
5555
{
5656
"@id": "https://example.com/#product",
5757
"@type": "Product",
5858
"aggregateRating": {
59-
"@id": "https://example.com/#/schema/aggregate-rating/2360800748",
59+
"@id": "https://example.com/#/schema/aggregate-rating/dK3x2rriEA",
6060
"@type": "AggregateRating",
6161
"bestRating": 100,
6262
"ratingCount": 20,
6363
"ratingValue": 88,
6464
},
6565
"image": {
66-
"@id": "https://example.com/#/schema/image/1032368654",
66+
"@id": "https://example.com/#/schema/image/Q6NjKAw0ZO",
6767
},
6868
"name": "test",
6969
"offers": {
70-
"@id": "https://example.com/#/schema/offer/1573195564",
70+
"@id": "https://example.com/#/schema/offer/ujIBe9HG7H",
7171
"@type": "Offer",
7272
"availability": "https://schema.org/InStock",
7373
"price": 50,
7474
"priceValidUntil": "2023-12-30T00:00:00.000Z",
7575
"url": "https://example.com/",
7676
},
7777
"review": {
78-
"@id": "https://example.com/#/schema/review/2109888563",
78+
"@id": "https://example.com/#/schema/review/yDCt2CZzM5",
7979
"@type": "Review",
8080
"author": {
81-
"@id": "https://example.com/#/schema/person/1230192103",
81+
"@id": "https://example.com/#/schema/person/x29kfkAXdv",
8282
},
8383
"inLanguage": "en-AU",
8484
"name": "Awesome product!",
8585
"reviewRating": {
86-
"@id": "https://example.com/#/schema/rating/2366151884",
86+
"@id": "https://example.com/#/schema/rating/z1q2dd8qmi",
8787
"@type": "Rating",
8888
"bestRating": 5,
8989
"ratingValue": 5,
9090
"worstRating": 1,
9191
},
9292
},
93-
"sku": "3127628307",
93+
"sku": "n4bQgYhMfW",
9494
},
9595
]
9696
`)

packages/schema-org/nodes/Question/index.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,17 @@ describe('defineQuestion', () => {
3939
],
4040
"mainEntity": [
4141
{
42-
"@id": "https://example.com/frequently-asked-questions/#/schema/question/521045072",
42+
"@id": "https://example.com/frequently-asked-questions/#/schema/question/NFmi3kwPwY",
4343
},
4444
{
45-
"@id": "https://example.com/frequently-asked-questions/#/schema/question/2038892454",
45+
"@id": "https://example.com/frequently-asked-questions/#/schema/question/JT3Yfbekc6",
4646
},
4747
],
4848
"name": "FAQ",
4949
"url": "https://example.com/frequently-asked-questions",
5050
},
5151
{
52-
"@id": "https://example.com/frequently-asked-questions/#/schema/question/521045072",
52+
"@id": "https://example.com/frequently-asked-questions/#/schema/question/NFmi3kwPwY",
5353
"@type": "Question",
5454
"acceptedAnswer": {
5555
"@type": "Answer",
@@ -59,7 +59,7 @@ describe('defineQuestion', () => {
5959
"name": "How long is a piece of string?",
6060
},
6161
{
62-
"@id": "https://example.com/frequently-asked-questions/#/schema/question/2038892454",
62+
"@id": "https://example.com/frequently-asked-questions/#/schema/question/JT3Yfbekc6",
6363
"@type": "Question",
6464
"acceptedAnswer": {
6565
"@type": "Answer",

0 commit comments

Comments
 (0)