Skip to content

Commit 4816796

Browse files
authored
Merge pull request #50 from Shopify/v0-5-0
Bump to version 0.5.0
2 parents fa58e24 + 5fa77ae commit 4816796

File tree

7 files changed

+50
-7
lines changed

7 files changed

+50
-7
lines changed

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ edition = "2021"
55
license = "MIT"
66

77
[dependencies]
8-
shopify_function = { path = "../shopify_function", version = "0.4.0" }
8+
shopify_function = { path = "../shopify_function", version = "0.5.0" }
99
serde = { version = "1.0.13", features = ["derive"] }
1010
serde_json = "1.0"
1111
graphql_client = "0.13.0"

example_with_targets/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ edition = "2021"
55
license = "MIT"
66

77
[dependencies]
8-
shopify_function = { path = "../shopify_function", version = "0.4.0" }
8+
shopify_function = { path = "../shopify_function", version = "0.5.0" }
99
serde = { version = "1.0.13", features = ["derive"] }
1010
serde_json = "1.0"
1111
graphql_client = "0.13.0"

example_with_targets/a.graphql

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,8 @@ query Input {
22
id
33
num
44
name
5+
date
6+
dateTime
7+
dateTimeWithoutTimezone
8+
timeWithoutTimezone
59
}

example_with_targets/schema.graphql

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,34 @@ Only allow the field to be queried when targeting one of the specified targets.
88
"""
99
directive @restrictTarget(only: [String!]!) on FIELD_DEFINITION
1010

11+
"""
12+
Represents an [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)-encoded date string.
13+
For example, September 7, 2019 is represented as `"2019-07-16"`.
14+
"""
15+
scalar Date
16+
17+
"""
18+
Represents an [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)-encoded date and time string.
19+
For example, 3:50 pm on September 7, 2019 in the time zone of UTC (Coordinated Universal Time) is
20+
represented as `"2019-09-07T15:50:00Z`".
21+
"""
22+
scalar DateTime
23+
24+
"""
25+
A subset of the [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format that
26+
includes the date and time but not the timezone which is determined from context.
27+
28+
For example, "2018-01-01T00:00:00".
29+
"""
30+
scalar DateTimeWithoutTimezone
31+
32+
"""
33+
A signed decimal number, which supports arbitrary precision and is serialized as a string.
34+
35+
Example values: `"29.99"`, `"29.999"`.
36+
"""
37+
scalar Decimal
38+
1139
"""
1240
Represents a unique identifier, often used to refetch an object.
1341
The ID type appears in a JSON response as a String, but it is not intended to be human-readable.
@@ -16,6 +44,13 @@ Example value: `"gid://shopify/Product/10079785100"`
1644
"""
1745
scalar ID
1846

47+
"""
48+
A subset of the [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format that
49+
includes the time but not the date or timezone which is determined from context.
50+
For example, "05:43:21".
51+
"""
52+
scalar TimeWithoutTimezone
53+
1954
"""
2055
A void type that can be used to return a null value from a mutation.
2156
"""
@@ -28,6 +63,10 @@ type Input {
2863
id: ID!
2964
num: Int
3065
name: String
66+
date: Date
67+
dateTime: DateTime
68+
dateTimeWithoutTimezone: DateTimeWithoutTimezone
69+
timeWithoutTimezone: TimeWithoutTimezone
3170
targetAResult: Int @restrictTarget(only: ["test.target-b"])
3271
}
3372

shopify_function/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "shopify_function"
3-
version = "0.4.0"
3+
version = "0.5.0"
44
edition = "2021"
55
authors = ["Surma <[email protected]>", "Delta Pham <[email protected]>"]
66
license = "MIT"
@@ -10,7 +10,7 @@ description = "Crate to write Shopify Functions in Rust."
1010
serde = { version = "1.0.13", features = ["derive"] }
1111
serde_json = "1.0"
1212
anyhow = "1.0.62"
13-
shopify_function_macro = { version = "0.4.0", path = "../shopify_function_macro" }
13+
shopify_function_macro = { version = "0.5.0", path = "../shopify_function_macro" }
1414

1515
[dev-dependencies]
1616
graphql_client = "0.13.0"

shopify_function_macro/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "shopify_function_macro"
3-
version = "0.4.0"
3+
version = "0.5.0"
44
edition = "2021"
55
authors = ["Surma <[email protected]>", "Delta Pham <[email protected]>"]
66
license = "MIT"

0 commit comments

Comments
 (0)