diff --git a/.changeset/breezy-scissors-tie.md b/.changeset/breezy-scissors-tie.md index 0b0c1c6711..c79cb39b29 100644 --- a/.changeset/breezy-scissors-tie.md +++ b/.changeset/breezy-scissors-tie.md @@ -3,4 +3,7 @@ "@quri/squiggle-components": patch --- -Dates and Durations: Adds new Date scale, dateRanges, and visualizes these in plots for the x axis. Minor changes to the Date library. You can now type 2023year to represent Jan 1 2023. +Dates and Durations improvements +You can now type `Date(2023)` to represent Jan 1 2023. +Added date domains (`f(x: [Date(1980), Date(2050)])`) that's used in function plots for the x axis. +Minor changes to the Date library. diff --git a/.changeset/curvy-rivers-listen.md b/.changeset/curvy-rivers-listen.md deleted file mode 100644 index 1e30436699..0000000000 --- a/.changeset/curvy-rivers-listen.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@quri/squiggle-components": patch ---- - -Fixed date dist plots to show preview on hover diff --git a/.changeset/custom-1-1.md b/.changeset/custom-1-1.md new file mode 100644 index 0000000000..105395c858 --- /dev/null +++ b/.changeset/custom-1-1.md @@ -0,0 +1,5 @@ +--- +"@quri/prettier-plugin-squiggle": patch +--- + +Improved formatting for pipe statements and newlines diff --git a/.changeset/custom-1-2.md b/.changeset/custom-1-2.md new file mode 100644 index 0000000000..abaa63606d --- /dev/null +++ b/.changeset/custom-1-2.md @@ -0,0 +1,8 @@ +--- +"@quri/squiggle-lang": minor +--- + +Support for tags (`Tag.*` functions) and decorators (`@decoratorName`) that can be used to affect how the value is displayed. +Tags can be attached to any value, and decorators can be attached to any variable or function definition. +Decorators are proxied to Tag functions, e.g. `@name("X var") x = 5` is the same as `x = 5 -> Tag.name("X var")`. +Builtin tags: `@name`, `@description`, `@format`, `@showAs`, `@hide`. diff --git a/.changeset/eleven-snakes-deliver.md b/.changeset/eleven-snakes-deliver.md index 3ee76a4e0d..770e9c9f95 100644 --- a/.changeset/eleven-snakes-deliver.md +++ b/.changeset/eleven-snakes-deliver.md @@ -2,4 +2,4 @@ "@quri/squiggle-lang": patch --- -Added Calculator.make(fn) shorthand +Added `Calculator.make(fn)` shorthand diff --git a/.changeset/few-panthers-wonder.md b/.changeset/few-panthers-wonder.md index d0615934ad..0d12d358ae 100644 --- a/.changeset/few-panthers-wonder.md +++ b/.changeset/few-panthers-wonder.md @@ -2,4 +2,4 @@ "@quri/squiggle-lang": patch --- -Tag percentates with percentage format +Tag percentage values with percentage format, so that they're rendered as percentages in viewer diff --git a/.changeset/five-pants-build.md b/.changeset/five-pants-build.md index e42af275c3..36bf632cb4 100644 --- a/.changeset/five-pants-build.md +++ b/.changeset/five-pants-build.md @@ -2,4 +2,4 @@ "@quri/squiggle-lang": patch --- -Added List.sortBy, List.maxBy, List.minBy, Dict.has, Dict.size, Dict.delete, and added definitions to Number.min and Number.max that support two number params +Added `List.sortBy`, `List.maxBy`, `List.minBy`, `Dict.has`, `Dict.size`, `Dict.delete`, and added definitions to `Number.min` and `Number.max` that support two number params diff --git a/.changeset/giant-pants-pay.md b/.changeset/giant-pants-pay.md index d1d221a84c..a241666316 100644 --- a/.changeset/giant-pants-pay.md +++ b/.changeset/giant-pants-pay.md @@ -2,4 +2,4 @@ "@quri/squiggle-lang": patch --- -Remove Table Title attribute +Removed `title` attribute from `Table.make()`; you can use `@name` and `@description` tags instead diff --git a/.changeset/great-moose-reflect.md b/.changeset/great-moose-reflect.md index e0a2d10eb2..f8162e84f6 100644 --- a/.changeset/great-moose-reflect.md +++ b/.changeset/great-moose-reflect.md @@ -3,4 +3,4 @@ "@quri/squiggle-components": patch --- -Calculator.make(fn) should work for functions with n>0 params +`Calculator.make(fn)` works for functions with n>0 params diff --git a/.changeset/green-islands-matter.md b/.changeset/green-islands-matter.md index 535fc07e6f..66b71fe5de 100644 --- a/.changeset/green-islands-matter.md +++ b/.changeset/green-islands-matter.md @@ -2,4 +2,4 @@ "@quri/squiggle-lang": patch --- -Expose `getFunctionDocumentation` function to render tooltips in the playground +Expose `getFunctionDocumentation` function to render documentatiton in the playground diff --git a/.changeset/hot-dancers-smoke.md b/.changeset/hot-dancers-smoke.md deleted file mode 100644 index 8d1490ae5a..0000000000 --- a/.changeset/hot-dancers-smoke.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@quri/squiggle-lang": patch ---- - -Add data-first variants on Plot.dists diff --git a/.changeset/lovely-rocks-sip.md b/.changeset/lovely-rocks-sip.md index f6c674ed4b..e889a15b19 100644 --- a/.changeset/lovely-rocks-sip.md +++ b/.changeset/lovely-rocks-sip.md @@ -2,4 +2,4 @@ "@quri/squiggle-components": patch --- -Tooltips on stdlib functions in editor +Tooltips and inline documentation for stdlib functions in editor diff --git a/.changeset/mighty-items-think.md b/.changeset/mighty-items-think.md index 3f536bfc59..97fcb168bd 100644 --- a/.changeset/mighty-items-think.md +++ b/.changeset/mighty-items-think.md @@ -2,4 +2,4 @@ "@quri/squiggle-lang": patch --- -Breaking: Change rangeDomain({min,max}) to be rangeDomain(min, max) +Breaking: Change `Number.rangeDomain({min, max})` to be `rangeDomain(min, max)` diff --git a/.changeset/nervous-spies-thank.md b/.changeset/nervous-spies-thank.md index 966e1589ea..008a9ad26d 100644 --- a/.changeset/nervous-spies-thank.md +++ b/.changeset/nervous-spies-thank.md @@ -1,6 +1,5 @@ --- -"@quri/prettier-plugin-squiggle": patch "@quri/squiggle-lang": patch --- -Alias .make() methods to Module(). Changed formatter for pipe statements and newlines. +Alias `Module.make()` methods to `Module()` diff --git a/.changeset/next-release.md b/.changeset/next-release.md index 6e6ae724ab..ef7e8137c7 100644 --- a/.changeset/next-release.md +++ b/.changeset/next-release.md @@ -1,6 +1,7 @@ --- -"@quri/squiggle-lang": patch -"@quri/squiggle-components": patch -"@quri/prettier-plugin-squiggle": patch -"vscode-squiggle": patch +"@quri/squiggle-lang": minor +"@quri/squiggle-components": minor +"@quri/prettier-plugin-squiggle": minor +"vscode-squiggle": minor +"@quri/ui": minor --- diff --git a/.changeset/ninety-lions-do.md b/.changeset/ninety-lions-do.md index 2517e553b2..b0e3dbc13c 100644 --- a/.changeset/ninety-lions-do.md +++ b/.changeset/ninety-lions-do.md @@ -3,4 +3,4 @@ "@quri/squiggle-components": patch --- -Breaking: Removed `points(number)` from DistFn and NumericFn plots, replaces with `xPoints(number[])`. +Breaking: Removed `points(number)` from `Plot.distFn` and `Plot.numericFn` plots, replaced with`xPoints(number[])`. diff --git a/.changeset/orange-berries-search.md b/.changeset/orange-berries-search.md index 00625c7cd8..0790e78313 100644 --- a/.changeset/orange-berries-search.md +++ b/.changeset/orange-berries-search.md @@ -3,4 +3,4 @@ "@quri/ui": patch --- -Added 'log to console' and 'unfocus' SquiggleValueMenu items. Add window.squiggleOutput output for debugging. +Added `window.squiggleOutput` output for debugging diff --git a/.changeset/orange-jokes-dream.md b/.changeset/orange-jokes-dream.md index bf27dadd8d..dddb22a483 100644 --- a/.changeset/orange-jokes-dream.md +++ b/.changeset/orange-jokes-dream.md @@ -2,4 +2,4 @@ "@quri/squiggle-lang": patch --- -Added Dist.median, Number.quantile, Number.median +Added `Dist.median`, `Number.quantile`, `Number.median` diff --git a/.changeset/pink-onions-remember.md b/.changeset/pink-onions-remember.md index 2607339f8d..b19409a4ce 100644 --- a/.changeset/pink-onions-remember.md +++ b/.changeset/pink-onions-remember.md @@ -2,4 +2,4 @@ "@quri/squiggle-lang": patch --- -Added data-first definitions for Plot.dist, Plot.numericFn, Plot.distFn, Table.make, Calculator.make. Deprecate old versions. +Added data-first definitions for `Plot.dist`, `Plot.dists`, `Plot.numericFn`, `Plot.distFn`, `Table.make`, `Calculator.make`. Deprecate old versions. diff --git a/.changeset/polite-rules-call.md b/.changeset/polite-rules-call.md index 4d5121be76..aa6876a815 100644 --- a/.changeset/polite-rules-call.md +++ b/.changeset/polite-rules-call.md @@ -1,7 +1,5 @@ --- "@quri/squiggle-lang": patch -"@quri/squiggle-components": patch --- -Save FR function typings in squiggle-language, and display them in Components. -Breaking: Plot.scatter now only accepts scatterplots. +Breaking: `Plot.scatter` now only accepts sampleset distributions. diff --git a/.changeset/smooth-beds-hope.md b/.changeset/smooth-beds-hope.md deleted file mode 100644 index 647c83a0e4..0000000000 --- a/.changeset/smooth-beds-hope.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@quri/squiggle-lang": patch -"@quri/squiggle-components": patch ---- - -Adds Tag.hide() to hide variables in View diff --git a/.changeset/thick-wolves-itch.md b/.changeset/thick-wolves-itch.md deleted file mode 100644 index 6f4ec7091b..0000000000 --- a/.changeset/thick-wolves-itch.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@quri/squiggle-lang": patch ---- - -@format can be used as decorator, adds getFormat(), tag fns get tagged variables diff --git a/.changeset/wild-balloons-hope.md b/.changeset/wild-balloons-hope.md deleted file mode 100644 index 1f2cacfc6e..0000000000 --- a/.changeset/wild-balloons-hope.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@quri/squiggle-lang": patch ---- - -Fix bug where Scale with params wouldn't get min/max defaults from domain