From 37fb9a2e7a96ed5a3728982fc2f1098f710a66a5 Mon Sep 17 00:00:00 2001 From: Brian Alexander Date: Mon, 13 May 2024 15:28:13 -0600 Subject: [PATCH] v2.0.0 --- CHANGELOG.md | 3 +++ README.md | 2 +- mix.exs | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 773dac5..16ad6f8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,12 +5,15 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] + +## [2.0.0] - 2024-05-13 ### Added - Support for [Perspectives](https://www.sanity.io/blog/introducing-perspectives-sanity-previews) (https://github.com/balexand/sanity/pull/83). - Support for streaming uploads via `Sanity.upload_asset/3`. This feature came for free with the switch to `Req`. ### Removed - (BREAKING) The `:drafts` option has been removed and passing it will result in an error. The `:perspective` option should be used instead. The default behavior is the same so you will only need to update your code if you are explicitly passing the `:drafts` option. +- Dropped support for Elixir 1.12. ### Changed - (BREAKING) Switch HTTP client from `finch` to `req` (https://github.com/balexand/sanity/pull/81). This introduces the following breaking changes: diff --git a/README.md b/README.md index bcde505..b9a3b0e 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ The package can be installed by adding `sanity` to your list of dependencies in ```elixir def deps do [ - {:sanity, "~> 1.0"} + {:sanity, "~> 2.0"} ] end ``` diff --git a/mix.exs b/mix.exs index e989b2f..71e10e8 100644 --- a/mix.exs +++ b/mix.exs @@ -1,7 +1,7 @@ defmodule Sanity.MixProject do use Mix.Project - @version "1.3.0" + @version "2.0.0" def project do [