Documentation (#6031) * Update sbt-ci-release to 1.5.9 (#5663) * Update sbt-ci-release to 1.5.9 * Align the plugins Co-authored-by: Dejan Mijić <dejan.mjc@gmail.com> * Update scala-compiler, scala-library, ... to 2.12.15 (#5613) * Update quill-jdbc-zio to 3.10.0 (#5526) * Update zio-test-akka-http to 1.0.3 (#5673) * Update zio-test-akka-http to 1.0.3 * Update zio-test-akka-http to 1.0.3 * propagate error (#5680) * Update zio-aws-core, zio-aws-ec2, ... to 3.17.42.4 (#5682) * managed and transactional tests (#5683) * Fix getRef in Fiber.orElse (#5690) * chore(deps): update node.js to v14.18.0 (#5689) Co-authored-by: Renovate Bot <bot@renovateapp.com> * Update zio-aws-core, zio-aws-ec2, ... to 3.17.42.5 (#5691) * Update Internal Names (#5688) * rename * update documentation * Breadth First Search Generators (#5677) * breadth first search * fix version specific issue * fix compilation error * add tests * format * Deprecate SuiteM (#5686) * deprecate suitem * format * Deprecate Some Additional Methods (#5687) * deprecate * remove deprecated methods * Reorganization of Data Types (#5662) * Site deploy (#5642) * Refactoring to use Docusaurus 2 * Enable searching * Restyling navbar * Work on prism highlight config * Styling the front page * First cut of ZIO Web Site on Docusaurus 2.0 * Correct color fro sponsor text in dark mode * Removing generated tailwind.css * More refactoring to get rid of tailwind * Finalize refactoring without Tailwind * update github actions * Correct image alignment in Sponsor section * Just adding a small tweak to the search config * Adding a short README with tipps working on the docs * Starting to work on versioned site * Ensure generated directories are empty before site build * Create first cut of versioned site * Update createSite script to temporary branch working on dosumentation * ATemporarily adjust createSite script * Update old version banner * Adjust site deploy script to deploy site on releases and changes on the "documantation" branch * Renaming script to properly reflect work * Adjusting checkout version for V1.x docs * Add generated API to .gitignore * Make prepareSite script fail on statements not ending with RC 0 * Updating prepareSite script to use current master as source for version 1 docs * Fiddling with new Site generation * Make sure all branches are checked out for site generation * Still trying to check out all branches for site generation * fix test * Fixing documantation sanity check * Make sure version 2 only site builds * Optimize for site deployment * Optimizing for dreating and deploying the web site * Site Deployment configuration for Docusaurus v2 microsite * Fix ssh setup for deploying to GH pages Co-authored-by: Adam Fraser <adam.fraser@gmail.com> * Site deploy (#5646) * Refactoring to use Docusaurus 2 * Enable searching * Restyling navbar * Work on prism highlight config * Styling the front page * First cut of ZIO Web Site on Docusaurus 2.0 * Correct color fro sponsor text in dark mode * Removing generated tailwind.css * More refactoring to get rid of tailwind * Finalize refactoring without Tailwind * update github actions * Correct image alignment in Sponsor section * Just adding a small tweak to the search config * Adding a short README with tipps working on the docs * Starting to work on versioned site * Ensure generated directories are empty before site build * Create first cut of versioned site * Update createSite script to temporary branch working on dosumentation * ATemporarily adjust createSite script * Update old version banner * Adjust site deploy script to deploy site on releases and changes on the "documantation" branch * Renaming script to properly reflect work * Adjusting checkout version for V1.x docs * Add generated API to .gitignore * Make prepareSite script fail on statements not ending with RC 0 * Updating prepareSite script to use current master as source for version 1 docs * Fiddling with new Site generation * Make sure all branches are checked out for site generation * Still trying to check out all branches for site generation * fix test * Fixing documantation sanity check * Make sure version 2 only site builds * Optimize for site deployment * Optimizing for dreating and deploying the web site * Site Deployment configuration for Docusaurus v2 microsite * Fix ssh setup for deploying to GH pages * Use different GH action to deploy site Co-authored-by: Adam Fraser <adam.fraser@gmail.com> * Include 1.x Api docs in site generation (#5659) * Fix method name in Hub's documentation (#5618) * Update zio-interop-reactivestreams to 1.3.7 (#5619) * Implement ZStream#zipAllSortedByKeyWith (#5571) * implement zstream#mergesortedbykey * rename * add variants * Update sbt-scalafix to 0.9.31 (#5625) * Update zio-aws-core, zio-aws-ec2, ... to 3.17.40.1 (#5626) * Update scalafmt-core to 3.0.4 (#5635) * Update scalafmt-core to 3.0.4 * Reformat with scalafmt 3.0.4 * Update cats-effect to 2.5.4 (#5639) * Update cats-effect to 3.2.9 (#5641) * improve documentation (#5594) * Update zio-config-magnolia, ... to 1.0.9 (#5645) * Update zio-config-magnolia, ... to 1.0.10 (#5647) * Upstream Shared Layers To ZIOApp (#5643) * shared layers * fix typo * fix compilation error * fix test * fix version specific issue * rename * generalize * Implement ZSink and ZTransducer Unwrap Operators (#5640) * implement unwrap * deprecate ZSink.managed * reimplement managed * fix test * handle empty pull (#5651) * Remove obsolete file Add generation of Version 1.x API docs * Fix typo in createSite script * Handling api 1.x doc correctly * Update .gitignore to ignore all generated api docs * Reconfigure footer for multiversioned links to ScalaDoc Co-authored-by: Dejan Mijić <dejan.mjc@gmail.com> Co-authored-by: Scala Steward <43047562+scala-steward@users.noreply.github.com> Co-authored-by: Adam Fraser <adam.fraser@gmail.com> * Docs 2.x (#5676) * Fix method name in Hub's documentation (#5618) * Update zio-interop-reactivestreams to 1.3.7 (#5619) * Implement ZStream#zipAllSortedByKeyWith (#5571) * implement zstream#mergesortedbykey * rename * add variants * Update sbt-scalafix to 0.9.31 (#5625) * Update zio-aws-core, zio-aws-ec2, ... to 3.17.40.1 (#5626) * Update scalafmt-core to 3.0.4 (#5635) * Update scalafmt-core to 3.0.4 * Reformat with scalafmt 3.0.4 * Update cats-effect to 2.5.4 (#5639) * Update cats-effect to 3.2.9 (#5641) * improve documentation (#5594) * Update zio-config-magnolia, ... to 1.0.9 (#5645) * Update zio-config-magnolia, ... to 1.0.10 (#5647) * Upstream Shared Layers To ZIOApp (#5643) * shared layers * fix typo * fix compilation error * fix test * fix version specific issue * rename * generalize * Implement ZSink and ZTransducer Unwrap Operators (#5640) * implement unwrap * deprecate ZSink.managed * reimplement managed * fix test * handle empty pull (#5651) * Remove obsolete file Add generation of Version 1.x API docs * Fix typo in createSite script * Handling api 1.x doc correctly * Update .gitignore to ignore all generated api docs * Reconfigure footer for multiversioned links to ScalaDoc * Gunzip channel (#5222) * Introduce Gunzip that uses ZChannel * minor cleanup * Update to recent 2.x changes * Fix some deprecations Co-authored-by: Daniel Vigovszky <daniel.vigovszky@gmail.com> * Implement iso/utf decoders (#5437) * implement ZSink#iso decoders * implement ZStream#mkString * implement iso8859_1 decode and utfDecode * Update to latest 2.x version and some cleanup * Removed broken scaladoc links Co-authored-by: Daniel Vigovszky <daniel.vigovszky@gmail.com> * Fix typo in splitChunksN (#5667) * Implement ZStream.fromBlockingIterator (#5174) Co-authored-by: Daniel Vigovszky <daniel.vigovszky@gmail.com> * Add ZStream.fromFile and others (#5175) * Add ZStream.fromFile and others * Fix some deprecations * Use different ports for socket tests than in the non-experimental tests Co-authored-by: Daniel Vigovszky <daniel.vigovszky@gmail.com> * Implement ZChannel.mergeAllWith (#5172) * Implement ZChannel.mergeAllWith * Ignore flaky finalizer ordering tests temporarily * Change sample count of zipAllSortedByKeyExecWith Co-authored-by: Daniel Vigovszky <daniel.vigovszky@gmail.com> * Port ZStream#collectType to the new encoding (#5190) * Add ZStream#collectType (#5058) * Fixing issue #5057 - ZStream collectType operator * Fixing Issue #5057 - Moving extension method to ZStream companion object * Add ZStream#collectType to the new encoding * Format * testM => test Co-authored-by: Remi Guittaut <remi.guittaut@gmail.com> Co-authored-by: Daniel Vigovszky <daniel.vigovszky@gmail.com> * Readd Netifly image fix Social Image reference and description Attempt to fix indexing Co-authored-by: Dejan Mijić <dejan.mjc@gmail.com> Co-authored-by: Scala Steward <43047562+scala-steward@users.noreply.github.com> Co-authored-by: Adam Fraser <adam.fraser@gmail.com> Co-authored-by: Kaur Matas <33095685+kmatasflp@users.noreply.github.com> Co-authored-by: Daniel Vigovszky <daniel.vigovszky@gmail.com> Co-authored-by: Paul Daniels <paul@leadiq.com> Co-authored-by: Luis Martinez <luis3m.23@gmail.com> Co-authored-by: Itamar Ravid <iravid@users.noreply.github.com> Co-authored-by: Remi Guittaut <remi.guittaut@gmail.com> * categorize zio effects, zio layers, mutable references and stream components. * put all fibers, concurrency primitives, and stm data types in one place. * index managed resources in the first page. * reorder ref pages. * fix grammar issue. * index contextual data types on the main page. * reorder has and zlayer pages. * put concurrency data-types in one section. * index remaining types. * fix toc. * fix broken links. * remove extra summary pages. * remove extra header. * move services to contextual data types. * remove extra table of contents. * remove blocking service and move its content to the zio data type. * fix article url. * fix location of services in sidebar. Co-authored-by: Andreas Gies <andreas@wayofquality.de> Co-authored-by: Adam Fraser <adam.fraser@gmail.com> Co-authored-by: Dejan Mijić <dejan.mjc@gmail.com> Co-authored-by: Scala Steward <43047562+scala-steward@users.noreply.github.com> Co-authored-by: Kaur Matas <33095685+kmatasflp@users.noreply.github.com> Co-authored-by: Daniel Vigovszky <daniel.vigovszky@gmail.com> Co-authored-by: Paul Daniels <paul@leadiq.com> Co-authored-by: Luis Martinez <luis3m.23@gmail.com> Co-authored-by: Itamar Ravid <iravid@users.noreply.github.com> Co-authored-by: Remi Guittaut <remi.guittaut@gmail.com> * ZIO 2.0 Migration Guide (#5381) * add new page for migration guide. * upgrading dependencies. * deprecated methods. * note about removed arrow combinators. * as, to and into methods. * reorganize the paragraph. * compositional zips. * signature of the right and left operators. * document api change of zio services. * fix table issues. * add note about deprecation of higher arity zips. * list of deprecated zip variants. * functions to layers. * accessing a service from the environment. * document ZIO.serviceWith. * use effectful example to demonstrate accessor methods. * include logging trait in mdoc compilation. * user-defined blocking executor. * building the dependency graph. * annotate the toLayer to help IDE narrowing down the layer type. * add missing code snippet. * remove extra table. * note on subtle change on usage of ZIO.service function. * fix and use proper return types. * add module pattern section. * use consistent form of Module Pattern 1.0. * accessor methods in module pattern. * retrying, repetition and scheduling methods are moved to the clock service. * fix typo. Co-authored-by: Jisoo Park <jisoo.park@doomoolmori.com> * inline codes in tables. * new features. * zio streams. * zmanaged deprecated methods. * remaining deprecated methods of the zlayer. * accessing multiple services using for-comprehension. * smart constructors. * fix table structure. * Accessible trait. * descriptive errors. * changes on currentDateTime and localDateTime methods. * zlayer debugging. * mutable reference section. * document changes on zqueue. * introduction to the zstate. * introduction to zhub. * remove extra mdoc tag from snippet code. * testM and test are unified in ZIO 2.x * smart assertions and the new assertTrue method. * fix mdoc errors. * describe the exact renaming stuffs and package movement for blocking operations. * fix the missing word. * zqueue * remove duplicated zlayer section. * logging. * reorder/reorganize article sections. * note on semaphore and tsemaphore. * zio aspects. * note on @accessible annotation and the Accessible trait. * debugging * deprecation of zio.App trait. * compositional specs. * introduce zio logging. * deprecation of the `Fiber.Id`. * platform, executor, and the runtime. * forkon is deprecated. * move zio app section after the zio section. * zio app and compositional apps. * add nest modifier. * fix mdoc's compilation issue. * add mdoc modifiers for compositional spec section. * move images into a new location accessible by versioned sidebars. * add migration-guide to the sidebar. * fix executor's repackaging statement. * deprecation of forkInternal. * update dependencies. * cleanup the article and reorder topics. * fix type names. * rewrite an unclear sentence. * comment the compositional apps section. * remove the compositional apps section. * fix errors and warnings. * add missing images. Co-authored-by: Jisoo Park <jisoo.park@doomoolmori.com> * Metrics Documentation (#5644) * initial work. * counter metric. * fix typo. * document gauge api. * document histogram api. * document summary metric. * ranme page. * remove extra enumeration. * categorize metric types. * counter use cases. * gauge use cases. * histogram use cases. * summary use cases. * explain more about histograms. * add counter examples. * remove extra import. * gauge examples. * histogram examples. * summary examples. * if a fast finger developer shifts his keyboard for one second :) * document setcount metric. * metriclabel documentation. * Deprecate CheckM (#5684) * deprecate checkm * fix compilation errors * Update jsoup to 1.14.3 (#5695) * preserve partial ordering of stream elements (#5693) * Update zio-kafka to 0.17.0 (#5698) * Implement ZIOAppPlatformSpecific (#5697) * implement zioappplatformspecific * fix warnings * preserve chunking (#5692) * Contributing to Documentation (#5681) * Site deploy (#5642) * Refactoring to use Docusaurus 2 * Enable searching * Restyling navbar * Work on prism highlight config * Styling the front page * First cut of ZIO Web Site on Docusaurus 2.0 * Correct color fro sponsor text in dark mode * Removing generated tailwind.css * More refactoring to get rid of tailwind * Finalize refactoring without Tailwind * update github actions * Correct image alignment in Sponsor section * Just adding a small tweak to the search config * Adding a short README with tipps working on the docs * Starting to work on versioned site * Ensure generated directories are empty before site build * Create first cut of versioned site * Update createSite script to temporary branch working on dosumentation * ATemporarily adjust createSite script * Update old version banner * Adjust site deploy script to deploy site on releases and changes on the "documantation" branch * Renaming script to properly reflect work * Adjusting checkout version for V1.x docs * Add generated API to .gitignore * Make prepareSite script fail on statements not ending with RC 0 * Updating prepareSite script to use current master as source for version 1 docs * Fiddling with new Site generation * Make sure all branches are checked out for site generation * Still trying to check out all branches for site generation * fix test * Fixing documantation sanity check * Make sure version 2 only site builds * Optimize for site deployment * Optimizing for dreating and deploying the web site * Site Deployment configuration for Docusaurus v2 microsite * Fix ssh setup for deploying to GH pages Co-authored-by: Adam Fraser <adam.fraser@gmail.com> * Site deploy (#5646) * Refactoring to use Docusaurus 2 * Enable searching * Restyling navbar * Work on prism highlight config * Styling the front page * First cut of ZIO Web Site on Docusaurus 2.0 * Correct color fro sponsor text in dark mode * Removing generated tailwind.css * More refactoring to get rid of tailwind * Finalize refactoring without Tailwind * update github actions * Correct image alignment in Sponsor section * Just adding a small tweak to the search config * Adding a short README with tipps working on the docs * Starting to work on versioned site * Ensure generated directories are empty before site build * Create first cut of versioned site * Update createSite script to temporary branch working on dosumentation * ATemporarily adjust createSite script * Update old version banner * Adjust site deploy script to deploy site on releases and changes on the "documantation" branch * Renaming script to properly reflect work * Adjusting checkout version for V1.x docs * Add generated API to .gitignore * Make prepareSite script fail on statements not ending with RC 0 * Updating prepareSite script to use current master as source for version 1 docs * Fiddling with new Site generation * Make sure all branches are checked out for site generation * Still trying to check out all branches for site generation * fix test * Fixing documantation sanity check * Make sure version 2 only site builds * Optimize for site deployment * Optimizing for dreating and deploying the web site * Site Deployment configuration for Docusaurus v2 microsite * Fix ssh setup for deploying to GH pages * Use different GH action to deploy site Co-authored-by: Adam Fraser <adam.fraser@gmail.com> * Include 1.x Api docs in site generation (#5659) * Fix method name in Hub's documentation (#5618) * Update zio-interop-reactivestreams to 1.3.7 (#5619) * Implement ZStream#zipAllSortedByKeyWith (#5571) * implement zstream#mergesortedbykey * rename * add variants * Update sbt-scalafix to 0.9.31 (#5625) * Update zio-aws-core, zio-aws-ec2, ... to 3.17.40.1 (#5626) * Update scalafmt-core to 3.0.4 (#5635) * Update scalafmt-core to 3.0.4 * Reformat with scalafmt 3.0.4 * Update cats-effect to 2.5.4 (#5639) * Update cats-effect to 3.2.9 (#5641) * improve documentation (#5594) * Update zio-config-magnolia, ... to 1.0.9 (#5645) * Update zio-config-magnolia, ... to 1.0.10 (#5647) * Upstream Shared Layers To ZIOApp (#5643) * shared layers * fix typo * fix compilation error * fix test * fix version specific issue * rename * generalize * Implement ZSink and ZTransducer Unwrap Operators (#5640) * implement unwrap * deprecate ZSink.managed * reimplement managed * fix test * handle empty pull (#5651) * Remove obsolete file Add generation of Version 1.x API docs * Fix typo in createSite script * Handling api 1.x doc correctly * Update .gitignore to ignore all generated api docs * Reconfigure footer for multiversioned links to ScalaDoc Co-authored-by: Dejan Mijić <dejan.mjc@gmail.com> Co-authored-by: Scala Steward <43047562+scala-steward@users.noreply.github.com> Co-authored-by: Adam Fraser <adam.fraser@gmail.com> * Docs 2.x (#5676) * Fix method name in Hub's documentation (#5618) * Update zio-interop-reactivestreams to 1.3.7 (#5619) * Implement ZStream#zipAllSortedByKeyWith (#5571) * implement zstream#mergesortedbykey * rename * add variants * Update sbt-scalafix to 0.9.31 (#5625) * Update zio-aws-core, zio-aws-ec2, ... to 3.17.40.1 (#5626) * Update scalafmt-core to 3.0.4 (#5635) * Update scalafmt-core to 3.0.4 * Reformat with scalafmt 3.0.4 * Update cats-effect to 2.5.4 (#5639) * Update cats-effect to 3.2.9 (#5641) * improve documentation (#5594) * Update zio-config-magnolia, ... to 1.0.9 (#5645) * Update zio-config-magnolia, ... to 1.0.10 (#5647) * Upstream Shared Layers To ZIOApp (#5643) * shared layers * fix typo * fix compilation error * fix test * fix version specific issue * rename * generalize * Implement ZSink and ZTransducer Unwrap Operators (#5640) * implement unwrap * deprecate ZSink.managed * reimplement managed * fix test * handle empty pull (#5651) * Remove obsolete file Add generation of Version 1.x API docs * Fix typo in createSite script * Handling api 1.x doc correctly * Update .gitignore to ignore all generated api docs * Reconfigure footer for multiversioned links to ScalaDoc * Gunzip channel (#5222) * Introduce Gunzip that uses ZChannel * minor cleanup * Update to recent 2.x changes * Fix some deprecations Co-authored-by: Daniel Vigovszky <daniel.vigovszky@gmail.com> * Implement iso/utf decoders (#5437) * implement ZSink#iso decoders * implement ZStream#mkString * implement iso8859_1 decode and utfDecode * Update to latest 2.x version and some cleanup * Removed broken scaladoc links Co-authored-by: Daniel Vigovszky <daniel.vigovszky@gmail.com> * Fix typo in splitChunksN (#5667) * Implement ZStream.fromBlockingIterator (#5174) Co-authored-by: Daniel Vigovszky <daniel.vigovszky@gmail.com> * Add ZStream.fromFile and others (#5175) * Add ZStream.fromFile and others * Fix some deprecations * Use different ports for socket tests than in the non-experimental tests Co-authored-by: Daniel Vigovszky <daniel.vigovszky@gmail.com> * Implement ZChannel.mergeAllWith (#5172) * Implement ZChannel.mergeAllWith * Ignore flaky finalizer ordering tests temporarily * Change sample count of zipAllSortedByKeyExecWith Co-authored-by: Daniel Vigovszky <daniel.vigovszky@gmail.com> * Port ZStream#collectType to the new encoding (#5190) * Add ZStream#collectType (#5058) * Fixing issue #5057 - ZStream collectType operator * Fixing Issue #5057 - Moving extension method to ZStream companion object * Add ZStream#collectType to the new encoding * Format * testM => test Co-authored-by: Remi Guittaut <remi.guittaut@gmail.com> Co-authored-by: Daniel Vigovszky <daniel.vigovszky@gmail.com> * Readd Netifly image fix Social Image reference and description Attempt to fix indexing Co-authored-by: Dejan Mijić <dejan.mjc@gmail.com> Co-authored-by: Scala Steward <43047562+scala-steward@users.noreply.github.com> Co-authored-by: Adam Fraser <adam.fraser@gmail.com> Co-authored-by: Kaur Matas <33095685+kmatasflp@users.noreply.github.com> Co-authored-by: Daniel Vigovszky <daniel.vigovszky@gmail.com> Co-authored-by: Paul Daniels <paul@leadiq.com> Co-authored-by: Luis Martinez <luis3m.23@gmail.com> Co-authored-by: Itamar Ravid <iravid@users.noreply.github.com> Co-authored-by: Remi Guittaut <remi.guittaut@gmail.com> * rename routes. * building documentation locally. * introduction. * rename about route on version2-only config. * enable edit button. * editing with github editor. * add step by step images. * improve the 'editing documentation locally' section. * giving feedback. * toolchain section. * document final step on sending pull request. Co-authored-by: Andreas Gies <andreas@wayofquality.de> Co-authored-by: Adam Fraser <adam.fraser@gmail.com> Co-authored-by: Dejan Mijić <dejan.mjc@gmail.com> Co-authored-by: Scala Steward <43047562+scala-steward@users.noreply.github.com> Co-authored-by: Kaur Matas <33095685+kmatasflp@users.noreply.github.com> Co-authored-by: Daniel Vigovszky <daniel.vigovszky@gmail.com> Co-authored-by: Paul Daniels <paul@leadiq.com> Co-authored-by: Luis Martinez <luis3m.23@gmail.com> Co-authored-by: Itamar Ravid <iravid@users.noreply.github.com> Co-authored-by: Remi Guittaut <remi.guittaut@gmail.com> * Add accessor method for Clock.localDateTime (#5661) * JVM metrics + DefaultJvmMetricsExporter ZIOApp (#5582) * Migrated Promeheus-syle JVM metrics from zio-zmx * Fixed Scala version specific deprecation warnings * A ZIOApp that collects the default JVM metrics * Deleted JvmMetricsVersionSpecific, using silencer instead * Simplified collectMetrics with forkManaged * All JVM metric collectors expose layer and ZIOApp interface * Configurable schedule * Fix for Scala 3 * Update util-core to 21.9.0 (#5700) * Use Smaller Generator For Property Based Tests (#5699) * Update zio-zmx to 0.0.9 (#5701) * Update rezilience to 0.7.0 (#5702) * Update scalafmt-core to 3.0.6 (#5708) * Update maven-compat, maven-embedder to 3.8.3 (#5710) * Update zio-aws-core, zio-aws-ec2, ... to 3.17.42.6 (#5712) * Removes ensuringFirst from ZStream (#5717) * Fix Exit value propagation for Channels (#5718) * remove deprecated use of security manager * Revert "remove deprecated use of security manager" This reverts commit d9e50ff1c51b8f167da1e72ba4f8e113632bd2d3. * Preserve Scope of Forked Fibers in ZStream#interruptWhen (#5720) * transplant * remove unused variable * remove deprecated use of security manager * generalize (#5715) * Document some missing sections on the STM data type (#5711) * trandom service. * document thub data type. * document zthub. * index trandom and zthub in the introduction page. * providing/injecting trandom layer to the stm effect. * zstm type aliases. * formatting. * import trandom. * remove extra mdoc modifier. * Implement ZIOAspect.disableLogging (#5723) * implement disablelogging * remove deprecated method * Update http4s-blaze-client, ... to 0.23.5 (#5735) * Update zio-aws-core, zio-aws-ec2, ... to 3.17.42.7 (#5740) * Update sbt-scalajs, scalajs-compiler, ... to 1.7.1 (#5738) * implement tomanagedauto (#5727) * Update zio-aws-core, zio-aws-ec2, ... to 3.17.42.9 (#5746) * Update caliban, caliban-zio-http to 1.2.0 (#5748) * Update zio-aws-core, zio-aws-ec2, ... to 3.17.56.1 (#5747) * Execution Tracing (#5744) * initial work * remove unused import * scala 3 * fix documentation * update getref to take a trace element * implement custom extractor * format * resolve scala 2.11 compilation issue * format * fix scala 3 compatibility issue * fix one more error * increase timeout * address review comments * Bring Back ZIOApp.Proxy (#5745) * bring back proxy * format * feat: catchNonFatal (#5741) * feat: catchNonFatal * fix: rename and use platform.fatal * fix: test "dies if fatal" only on JVM, as JS does not have fatal ones * Update core/shared/src/main/scala/zio/ZIO.scala Co-authored-by: Luis Martinez <luis3m.23@gmail.com> * Mima exclude Co-authored-by: Luis Martinez <luis3m.23@gmail.com> * Add collectAll and foreach to ZLayer (#5756) This makes it easier to build ZLayers that dynamically instantiate collections of subsystems. The signatures align with ZIO's equivalent methods. * feat: flesh out runtime stats (#5751) * feat: flesh out RuntimeStats * fix: UIO.succeed * Update fs2-core to 2.5.10 (#5757) * Update reactor-core to 3.4.11 (#5758) * fix signature (#5755) * deprecate (#5759) * Propagate Tracing Information (#5750) * initial work * fix tests * fix scala 3 * fix timeout * remove unnecessary traces from zref * disable automatic traces * ZPool (#5761) * pool work * pool implementation and tests * Scaladoc * merge * fixes * More fixes * Scaladoc * Warnings * Moor the doc comments * Add missing traces * generalize (#5734) * Fix the @mockable macro to handle inheritance (#5737) * Implement Random.scalaRandom (#5731) * implement scalarandom * format * format * Update Documentation of Running a ZIO Effect (#5730) * fix warning on deprecation of zio.App trait. * command-line arguments. * use ZIOAppDefault instead of zio.App * introduce args method. * move zio app related stuff to its own page. * move zio app related stuff to its own page. * add zioapp page to the sidebars. * index zioapp page. * composing zio applications. * hooking into the runtime system. * customized runtime. * document RuntimeConfigAspect. * more info on runtimeconfig aspect. * add a hook for the first example. * HasMany Documentation (#5716) * initial work. * example of providing multiple instance of the same interface. * rename (#5724) * ZState Documentation (#5704) * initial work. * a note about the fiberref behaviour of zstate. * Update http4s-blaze-client, ... to 0.23.6 (#5764) * Compositional Concurrency (#5664) * compositional concurrency * optimize * format * format * tracing * update documentation * Rename ZIOAppArgs#args to ZIOAppArgs#getArgs (#5733) * rename * update documentation * update documentation Co-authored-by: John A. De Goes <john@degoes.net> * add article section for zio-telemetry (#5705) * Add ZTransducer.groupAdjacentBy (#5767) * Add ZTransducer.groupAdjacentBy * Use NonEmptyChunk in result of ZTransducer.groupAdjacentBy * Switch from appended to :+ so it compiles on 2.11 as well * remove scalafix (#5766) * Implement Executor#submitAndYield (#5725) * implement executor#submitandyield * remove deprecated method * remove scala steward (#5765) * chore(deps): update node.js to v14.18.1 (#5760) Co-authored-by: Renovate Bot <bot@renovateapp.com> * Support Propagating FiberRef Values Across Fiber Boundaries (#5752) * implement getfiberrefs and setfiberrefs * address review comments * tracing * update documentation * Update zio-aws-core, zio-aws-ec2, ... to 3.17.58.1 (#5769) * Fix Compilation Error On ZIO 2 Branch (#5770) * fix compilation error * fix deprecation warnings * use ZIOApp.Proxy to compose apps. (#5773) * Introduction to ZIO Aspects (#5749) * short introduction to zio aspects. * fix mdoc failure. * fix trace unapply method (#5774) * Scala 3 Tracing (#5775) * scala3 * propagate tracing information * implement tmap#updatewith (#5776) * Implement Scheduler#asScheduledExecutorService (#5040) * implement asScheduledExecutorService * fix documentation * remove unused import * fix serialization issue * fix platform specific issues * blocking * cleanup * add scalafix ZIO 2 upgrade rules (#5739) * Documentation of Logging and Debugging Functionality (#5729) * document logging section. # Conflicts: # docs/datatypes/core/zio/zio.md * document debugging section. * Improve Performance Of Chunk (#4634) * initial work * delete arrayIterator * chore(deps): update actions/checkout action to v2.3.5 (#5781) Co-authored-by: Renovate Bot <bot@renovateapp.com> * add tamer to community (#5709) * add tamer to community * Address review * wrong code to compile * copy paste from scalameta.org https://scalameta.org/mdoc/docs/modifiers.html#compile-only * add tamer to the community page Notably this adds confluent as a resolver: only clients are pulled. Clients are licenced under Apache 2.0 so there should be no problem. Furthermore some adaptation are made since circe seems to be in the classpath, making implicit resolution ambiguous. * Implement Default Supervisor (#4736) * initial work * make opt in * make runtimeconfigaspect * Implement ChunkIterator (#5783) * implement chunkiterator * optimize * fix compiler crash * fix compilation error * fix benchmarks * fix warning * Ignore Build Metadata on ZIO Versions (#5788) * ignore build metadata. * ignore snapshot releases. * initial work (#5787) * Align parameters with docs comment (#5470) (#5795) * Readd helper methods to create histogram buckets with linear / exponential growing boundaries (#5778) * Adding helper methods to create histogram buckets * Correcting compile issues * Added the Boundaries object and added it to the user facing API * Moving Histogram Boundaries to Companion object of Histogram * Update method names, correct documentation * rename one more method and handle the last bucket value in one place only. * Update to Scala 3.1.0 (#5793) * Scala 3.1 * Normalize Scala directory names * Scala 3.0.2 * move to standard Scala directories * Scala 3.1.0 * fix ci.yml * fix docs. wrong import class (ZIOApp) while using ZIOAppDefault. (#5799) * Get latest 2.x version directly from git * Extractinbg bash script to quick test site generation * Extract script to check Site generation upon push * Readd file that was deleted accidentally * Optimise checkSite script * Run tests on 8 as the main Java version (#5813) * Scala Native 0.4.1 (#5812) * Fix zio-test-scalacheck publishing (#5814) * Stop publishing examples (#5816) * Remove type parameters from STM types list (#5817) * Add more Scalafix rules (#5806) * add more rules * more rules * add parN renaming matcher * refine parN renaming * add Gen.any -> Gen.withoutAny conversions * +Rule for App->ZIOAppDefault and removing runtime. Not sure if removing the runtime is safe/desirable * +Rule for TestConfig->Has[TestConfig] Also start using missed Live_Old instance * +Partial implementation of Duration refactor. It's weirdly jamming _root_ before the output for some reason. * +TestSystem => Has[TestSystem] conversion Also identify different package depths as the reason Duration can't be ScalaFixed :( * +Annotations => Has[Annotations] conversion Also convert multiple *.Service usages. * +TestLogger conversion * +TestConsole conversion * +TestRandom conversion * rm untrustworthy rules Co-authored-by: Bill Frasure <bill.frasure@gmail.com> * Update The Migration Guide to Reflect Recent Changes (#5792) * write a step-by-step guide for migration using scalafix. * compositional concurrency. * lazy evaluation of zio parameters. * fix mdoc compilation error. * table of deprecation methods. * remove extra line. * add guideline section for library authors. * capturing parameters that are referenced more that once. * add a section about compile time execution tracing. * Update docs/howto/migrate/migration-guide.md Co-authored-by: Adam Fraser <adam.fraser@gmail.com> * Update docs/howto/migrate/migration-guide.md Co-authored-by: Adam Fraser <adam.fraser@gmail.com> * clarify the first step and add a link to the migration status of zio 2.x ecosystem. * add another note. Co-authored-by: Adam Fraser <adam.fraser@gmail.com> * Make sure all tags are fetched before assembling the site * Remove the leading "v" from the artifact reference * More Migrations, mostly drawn from working on interop-cats upgrade (#5820) - checkNM => checkN - checkAllM -> checkAll - interrupted -> isInterrupted - Fiber.Id -> FiberId - unoption -> unsome - lockExecutionContext -> onExecutionContext - on -> onExecutionContext - Executor - RuntimeConfig Add zio.Cause scope * cleanup (#5822) * chore(deps): update node.js to v16 (#5828) Co-authored-by: Renovate Bot <bot@renovateapp.com> * Perform Permit Acquisition Interruptibly (#5826) * perform permit acquisition interruptibly * format * format * generalize chunk#flatten (#5832) * Additional ScalaFix rules from interop-cats migration (#5827) - asEC to asExecutionContext - fromFunction => access - fromFunctionM => accessManaged - Many ZSTM/STM renames - Many Schedule renames +zio.Chunk scope rm more Blocking imports. * ZIO Test Mock: Fix `atLeast` and add exactly bounded expectations (#5834) * Remove dead code state == Saturated is handled by first case. * Simplify composed `Expectation[R]` creation state Usage of `exists` instead of `forall` to take into account Saturated state. * Fix `atLeast` buggy behavior when chained Now `atLeast` can be evaluated when Satisfied and Saturated when next expectation evaluation succeeds. * Add exactly bounded expectations Added handy exactly bounded expectations, just like other mocking frameworks out there. * chore(deps): update node.js to v16.13.0 (#5833) Co-authored-by: Renovate Bot <bot@renovateapp.com> * ZPool: Support Resources with Dependencies (#5830) * support resources with dependencies * fix type inference issue * ZPool Documentation (#5824) * Chunk.fromIterable should work with Iterables traversing only once (#5836) * Change/update Gitpod configs (#5839) * set extensions to default to latest * use coursier as default manager install scala sbt scalafix scalafmt ammonite and bloop * add ohmyzsh (adds proper fonts for zsh shell) * Remove redundant `once` combinator for `Expectation[R]` (#5840) * fix null rendering w/ PrettyPrint (#5842) * Fix test output formatting (#5841) * Update README.md (#5843) * All existing stream test uncommented/reviewed (#5669) * Uncommented all ZStream tests and marked TODOs * Removed TODO comment * checkM => check * Moved fromInputStream test to platform specific * Format * Format * One finalizer ordering issue remains * Finalizer ordering issue fixed * Reenabled some ignored tests * Remove debug prints * fix tests * remove debug statement * fix interruptwhen test * fix zipwithlatest succeed test * fix zipwithlatest implementation * reduce test size * reduce test size Co-authored-by: Adam Fraser <adam.fraser@gmail.com> * Fix ZStream#broadcast Test (#5846) * fix test * cleanup * on => onExecutionContext (#5845) * ZStream 2: bimap -> mapBoth (#5858) * Massive overhaul of tracing for ZIO 2.0 (#5844) * Initial refactor to tracing * more changes to tracing and rendering * Update benchmarks * Remove tracing config * dedupe * Delete relics of a bygone era * Fix lint * lint * fix test * fix more errors * Fix docs * Fix warning * Delete brittle tests * Exclude dotty from Chunk.empty serialization * Profiling (#5794) * initial work * address review comments * format * fix compilation error * fix compilation error * fix warning * fix scala 211 issue * fix another warning * Attempt to fix ZSink utfDecode (#5811) * Attempt to fix ZSink utfEncode * Removed println * Refactoring to address a couple of PR comments * A better fix * Fixing build * Fixing build * Refactor Cause (#5873) * initial work * format * update documentation * don't run serialization tests on scala 3 * try using lazy val * Remove Scalafix artifacts (#5893) * Fixed #5860 - ZIO Streams 2.0: implement when/whenZIO (#5884) * Fixed #5860 - ZIO Streams 2.0: implement when/whenZIO * fix linting * bring over test cases * Fixed #5863 - ZIOStream 2.0 from javaStream (#5895) * Refactor FiberId (#5881) * initial work * fix typo * fix tests * fix js specific issue * tailrec * rename * address review comments * preserve information on interruptors * Implement ConcurrentMap (#5898) * Add CyclicBarrier (#5901) * Add CyclicBarrier * Fix unrelated code * Woops, it should cycle of course haha * Feedback * Woops * And avoid deadlock Co-authored-by: Regis Kuckaertz <regiskuckaertz@users.noreply.github.com> * Add Scala 3 to crossScalaVersions and remove bintray.com (#5897) * #5859 Add retry combinator to ZStream 2.x (#5905) * add retry combinator to ZStream 2.x * code formatting * #5887 - ZSink.foreach(Chunk) should emit Nothing (#5913) * Add ZSink.fromQueue, ZSink.fromHub, ZSink.fromQueueWithShutdown and ZSink.fromHubWithShutdown to Streams 2.0 (#5886) * wip add ZSink.fromQueue to Streams 2.0 * add fromQueueWithShutdown, fromHub and fromHubWithShutdown to Stream 2.0 * #5823 - Add ConcurrentSet (#5876) * #5823 - Add ConcurrentSet * Add remove method * Refactor ConcurrentSet according to suggestions * Add tests * Remove Scala Java conversion * Update stale contributing docs (#5920) * Export internal runtime metrics to new metrics subsystem (#5912) * export runtime metrics to zio metrics * Lazy val * Update metric name * Add CountdownLatch (#5915) Co-authored-by: Regis Kuckaertz <regiskuckaertz@users.noreply.github.com> * Small fix to make ZSink.fromQueue, ZSink.fromHub, ZSink.fromQueueWithShutdown, ZSink.fromHubWithShutdown return Nothing as leftover type (#5927) * Implement the fromInputStream constructors (#5936) * Make shared fromInputStream (#5862) * Cleanup (#5862) * Add fromInputStream ctors, deprecate fromReaderEffect * 5857 re-add and deprecate timeoutError*, into*, fold*, foreach* methods (#5940) * Add ZPipeline.groupByAdjacent (#5944) * Add ZPipeline.groupByAdjacent * compare adjacent keys * Feedback Co-authored-by: Regis Kuckaertz <regiskuckaertz@users.noreply.github.com> * #5917 Improve regex deconstructing trace (#5931) * #5917 Improve regex deconstructing trace * #5917 Clean up code * #5917 Clean up code * remove unused import * Adjust code to let compiler infer the type It should fix a problem for 2.11 and 2.12. * Do some Uncle Bob in code * Get rid of erasure issue for 2.11 Additionally, simplify a code. * Add concurrent set methods (#5921) * #5823 - Add ConcurrentSet * Add remove method * Refactor ConcurrentSet according to suggestions * Add tests * Remove Scala Java conversion * add concurrent set methods * improve atomicity * Update core/shared/src/main/scala/zio/concurrent/ConcurrentSet.scala Co-authored-by: Regis Kuckaertz <629976+regiskuckaertz@users.noreply.github.com> * fix Consumer scala.js issue Co-authored-by: Aleksandar Skrbic <skrbic.alexa@gmail.com> Co-authored-by: Regis Kuckaertz <629976+regiskuckaertz@users.noreply.github.com> * Update contributing.md (#5929) * Move groupAdjacentBy in ZStream (#5952) Co-authored-by: Regis Kuckaertz <regiskuckaertz@users.noreply.github.com> * Add ZStream.branchAfter and pipeline (#5951) * Add ZStream.branchAfter and pipeline * Add pipeline * Restore via Co-authored-by: Regis Kuckaertz <regiskuckaertz@users.noreply.github.com> * add injectSome warning when not given a type (#5902) * Implement serviceWith and serviceWithStream (#5935) * Implementing serviceWith and serviceWithStream Migrating the implementation of serviceWith and serviceWithStream from ZIO Streams 1.0 into ZIO Streams 2.0. * Throwaway Files Please do not include this change set. * Revert "Throwaway Files" This reverts commit 156dac511424f60c625a73b4df059c7c8a244f6c. * Adding "serviceWith*" Tests Adding tests for ZIO Streams 2.0 "serviceWith" and "serviceWithStream". I used this post by Kazuki Moriyama (https://kazchimo.com/2021/06/07/zstream-companion-object-api/) as a reference. Both Daniel Vigovszky (https://github.com/vigoo) and Terry L (https://github.com/ithinkicancode) helped me with this contribution. * Fixing Formatting ran `sbt fmt`. also made the sequence of `trait` and `val` declarations are consistent between the two tests. * Update ZStreamSpec.scala Updating the test so it doesn't cause issues during checks. * #5849 Create test suite for Cause.prettyPrint (#5949) * #5849 Create test suite for Cause.prettyPrint * #5849 adjust test check * #5849 clean up code * #5849 fix formatting * #5849 add number of occurrences check * #5849 add debug mode * #5849 use By-name arg to prevent unnecessary evaluation * #5849 get rid of boilerplate for debug mode * Add possibility to feed UUIDs to TestRandom (#5950) * Add possibility to feed UUIDs to TestRandom. * minor rename * Add adpulse.io to list of adopters (#5957) * Fix Stack Traces (#5956) * fix stack traces * turn off debug mode * Make Recursive Functions Stack Safe (#5904) * Feature/5882 (#5958) * Move currentForkScopeOverride to fiber refs * Move currentExecutor into fiber ref * Fix test * Remove dead code * move environment to fiber ref * Shrink stack by 32 bits * Dead comment * Constructor cleanup * Fix test * Fix bug in shift optimization * fix NPE * Remove all curZio * Update two tests for new lock semantics * Reduce non-flakiness * Generalize Pipelines (#5906) * initial work * resolve version specific issues * add tests * remove groupadjactby for now * fix scala 3 compiler crash * remove some other newly added operators for now * delete stream aspect * implement more operators * generalize branchafter * add back some tests * fix compilation error * add pipeline version of branchafter * remove unused import * delete test * disable automatic tracing * Clean tracing (#5966) * Remove captureTrace from user-code by filling trace in runtime system * clean * Replace UIO[Unit] with UIO[Any] (#5963) * Replace UIO[Unit] with UIO[Any] * Fix compilation issue * Bug/5948 (#5964) * make stack concurrent read safe * improve test * Prefer Unit to Any (#5967) * Always return Unit * Add method definition guidelines * Shared layers between tests. (#5932) * WIP Shared layers between tests. Need to correct exit behavior. * Address PR feedback * Mark "propagates correct error with subsequent mapZIOPar call" as flaky * Pass ZEnv.live into ZIOSpec execution path * Fight with Scala 3 Layers/Has * Fix linking errors by avoiding failing cast in js/ZTestRunner * Still fighting with 3.0 layer * Continue to debug Scala 3 layers * Fix Layers in Scala 3 * Cause Cleanup (#5970) * implement stack safe fold * implement flatmap * Add splitLines on ZPipeline (#5969) * Add splitLines on ZPipeline * replace pipe with match * issue #5877: Backport some improvements to supervisor (#5942) * issue #5877: Backport some improvements to supervisor * SupervisorSpec - removed unused imports * silencing compile warnings * fixing flakiness * fixing scala js compilation * fmt * removing unused import * Fix mock generation for methods that return ZStream (#5962) * Implement RuntimeConfigFlags (#5972) * implement runtime config flags * rename * Upgrade Scala Version (#5976) * upgrade scala version * fix deprecation warnings * fix one more deprecation warning * make all cause operators stack safe (#5979) * #5849 Improve stack trace tests (#5977) * #5849 add Fiber ID check in a stacktrace * #5849 Add stacktrace existence check * #5849 adjust checks * Cleanup Folder Structure (#5975) * cleanup folder structure * remove unused imports * Make Cause#traced Additive (#5973) * make cause#traced additive * fix implementation * update generator * fix flaky test (#5981) * Get rid of flipCauseEither in streams (#5983) * clarify semantics (#5984) * Fix *> and <* operators (#5985) * delete flipcauseeither (#5986) * Add JVM-specific ZSink.outputFromStream and ZSink.outputFromStreamManaged in experimental (#5899) * Add test for non-experimental ZSink#fromOutputStream * Add fromOutputStream and fromOutputStreamManaged for ZSink experimental * Fix charset in toString() in tests * Fix compilation errors, add empty ZSinkPlatformSpecificConstructors for other platforms * Fix formatting * Simplify traits * Added ConcurrentMap methods (#5933) * WIP: .is SmartAssertions (#5988) * is/as smart assertions * begin as smart assertion * implement .as for assertTrue for Scala 3 fix formatting * add cause/exit .as assertions * Implement ZChannel.fromHubManaged (#5987) * implement zchannel.fromhubmanaged * fix compilation error * implement gen#resize (#5992) * Fix race condition in fromOutputStreamWriter (#5872) Because the input and output streams are piped together, when the output stream is closed, the input stream completes. Due to the semantics of `drainFork` that would sometimes cause the output stream writer to be interrupted before completing the error channel promise. But in fact we don't need a separate error channel, we just need to make sure the input stream reader waits for the output stream writer to complete. * initial work (#5995) * Removing `SourceLocation`, consolidating everything through `ZTraceElement` (#5910) * transplant (#5998) * Improve `.is` with custom assertions, subtype, and anything (#5996) * custom assertions assert true * renames and doc strings * Cleanup of RTS (#5999) * Begin cleanup of runtime system * More cleanup * Cleanup * implement test aspect runtimeconfig (#5997) * fix: Zref.Atomic visibility on Scala 2.11 (#6000) On Scala 2.11, using `ZRef.unsafeMake` is not possible even from packages in zio.* and fails with an error like the following: ```scala sbt:zio> coreJVM / compile [info] compiling 1 Scala source to /home/zimon/zio/zio/core/jvm/target/scala-2.11/classes ... [error] /home/zimon/zio/zio/core/shared/src/main/scala/zio/test/test.scala:6:13: Symbol 'type zio.Ref.Atomic' is missing from the classpath. [error] This symbol is required by 'method zio.ZRef.unsafeMake'. [error] Make sure that type Atomic is in your classpath and check for conflicting dependencies with `-Ylog-classpath`. [error] A full rebuild may help if 'ZRef.class' was compiled against an incompatible version of zio.Ref. [error] val ref = ZRef.unsafeMake(1) [error] ^ [error] one error found [error] (coreJVM / Compile / compileIncremental) Compilation failed [error] Total time: 0 s, completed Nov 4, 2021, 7:43:01 PM ``` This appears to be due to the type alias `Ref ` in the return type. * Added benchmarks for Chunk methods inherited from IndexedSeq (#5971) * Do Not Read Ahead In ZChannel#mergeWith (#6001) * refactor singleproducerasyncinput * fix compilation error * fix version specific issue * chore(deps): update actions/checkout action to v2.4.0 (#5982) Co-authored-by: Renovate Bot <bot@renovateapp.com> * Implement `ZSink#raceBoth` (#5922) * Implement ZSink#raceBoth * Make `ZSink#raceBoth` use `ZHub` * Add dynamic Hub capacity to `ZSink#raceBoth` * Catch Logging Failures (#5928) * catch logging failures * format * report fatal exceptions * add splitOnChunk on ZStream (#6002) * add splitOnChunk on ZStream * less squigles * use take instead of slice * add some extra comment to splitlines * add splitOn to ZPipeline (#6006) * Port Fix To ZStream#peel To Channel Encoding (#6005) * refine * fix scala 3 version specific issue * further refine type signature * forkdaemon (#6004) * move to syntax class (#6007) * Port fixes and improvements from ZIO Streams 1 (#6003) * Resolves #5865: ZIO 2.0 ZSink.zipWithPar (#5954) * Exposing the compression channels as pipelines (#5879) * Exposing the compression channels as pipelines, WIP * Copy test from #4681 * Fix merge * Fixes and tests * Reimplemented text decoders as ZPipelines. (#5990) * Reimplemented text encoders as ZPipelines. * Implemented utfDecode and utf8Decode; added unit tests. * Implemented usASCIIDecode and iso_8859_1Decode * Bug fixes * Fixing build * Fixing build * Fixing JS tests * Fixing JS test * Fixing JS test * Added encoders for ZIO Streams. (#5782) * Added encoders for ZIO Streams. * Added a lot more unit tests. * Made things more consistent and added more tests. * Merged with latest from feature branch * Added encoders as ZPipelines. * Implemented `ZSink#fromFile` (#5885) * Implemented `ZSink#fromFile` * Fixed merge conflict * Made it more performant. * implement racewith (#6008) * Fixed flaky encoder tests. (#6015) * Fixed flaky encoder tests. * Fixing build * fix compilation error (#6019) * Fix Compilation Error (#6020) * fix compilation error * format * remove unused import * corrected the official installation to use zio-logging (#6022) * Delete ZTrace#prettyPrint, use Cause#prettyPrint instead (#5853) (#5909) * Delete ZTrace#prettyPrint, use Cause#prettyPrint instead (#5853) * User Cause#fail instead of removed Cause#traced * Auto-docstring wrapping at 80 char line width (#6013) * auto-doctstring wrapping at 80 char line width * fix errant formatting * initial work (#6023) * ZIO Streams 2 (#6011) * Delete ZIO Streams 1 * Moved ZIO Streams 2 out of experimental * Rename packages * Fix imports * Format * Restored some deleted files * Fix zio-test * Removed unused imports * Fix mdoc and format * Fix typo * Fix accessible macro * Fix zio-test tests * Fix macros tests * Fix docs * Fix docs sidebar * Rename test suites * fix pipeline documentation * update documentation * ZPipeline.mapError and ZPipeline.mapZIO * Increase timeout for ZPipeline JVM test suite * Rename via(function) to viaFunction * Increase ZPipeline JVM test suite timeout Co-authored-by: Adam Fraser <adam.fraser@gmail.com> * fix flaky test (#6017) * fix zstream#schedule (#6018) * fix flaky test (#6027) * unify platform specific files (#6028) * Strip spec type ascriptions from legacy tests and convert a few to the new style (#5991) * First translation of Spec in the wild. Aiming at #5968 Needs these steps for a pleasant ScalaFixExperience: - import zio.test.environment.TestEnvironment - ZIOBaseSpec => ZIOSpecDefault - Insert this inside body of Spec override def layer: ZLayer[Has[ZIOAppArgs], Any, TestEnvironment] = zio.ZEnv.live >>> TestEnvironment.live // TODO Confirm this default value First step towards DefaultRunnableSpec scalaFix rule Isolate rule. Work on inserting new default layer in ZIOSpecDefault. Currently, I can only drop it immediately beside the ZIOSpecDefault token, not inside the body. Put default `layer` inside ZIOSpecDefault. Not sure if this is a good move. Is definitely simpler to implement than a ScalaFix rule that will be sure to insert this inside each subtype of ZIOSpecDefault Make alernate ZIOBase2Spec Work on converting all core Specs, but back off for the time being while I figure out the deadlock Convert several Specs to new type, and flag those that cause problems Update several more Specs +Notes Rename things to highlight old Specs and minimize code churn Convert several more tests Fix build errors Convert most remaining tests. Stream Specs are the bulk of the remaining files. * Convert most Specs to new style. Fighting with RuntimeConfig * ongoing work * Working towards ZIOSpec only. Disabled some things for the moment to see what CI thinks about the current state of affairs. * Useless commit to check CI again * rm one more spec * Disable ZPipelineSpec for now * Checkpoint before merge * Try to use old tests for ZStreamSpec. It's still failing now :/ * Still trying to diagnose stream failures * Giving up for the night * Fix JS linking errors. Cleanup some output. * Fighting with Dotty * Fix broken layer construction * Small layer cleanup to trigger CI * Remove old Spec style completely * Fix newly-added concurrent tests * Experiment with Sequential spec execution * Start isolating test running behavior to identify resource issues * Construct larger suites/specs dynamically in FrameworkSpec * More troubleshooting & Sequential attempts * rm unused import * More profiling * Experiment with de-duping test execution * Ignore 1 test to see how CI behaves * Remove almost everything but spec type ascriptions Co-authored-by: Adam Fraser <adam.fraser@gmail.com> * Make sure the create site scripts are run on PRs, publishing will not run upon PRs * Tweaking website config * Marking the 2.0 docs as work in progress * Adding version 2 specific index file to make the checkSite script work for CI * Fixing checkSite logic Co-authored-by: Scala Steward <43047562+scala-steward@users.noreply.github.com> Co-authored-by: Dejan Mijić <dejan.mjc@gmail.com> Co-authored-by: Adam Fraser <adam.fraser@gmail.com> Co-authored-by: zeal18 <lezhoev@gmail.com> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Milad Khajavi <khajavi@gmail.com> Co-authored-by: Kaur Matas <33095685+kmatasflp@users.noreply.github.com> Co-authored-by: Daniel Vigovszky <daniel.vigovszky@gmail.com> Co-authored-by: Paul Daniels <paul@leadiq.com> Co-authored-by: Luis Martinez <luis3m.23@gmail.com> Co-authored-by: Itamar Ravid <iravid@users.noreply.github.com> Co-authored-by: Remi Guittaut <remi.guittaut@gmail.com> Co-authored-by: Jisoo Park <jisoo.park@doomoolmori.com> Co-authored-by: Nikolay Artamonov <nartamonov@gmail.com> Co-authored-by: Simon Schenk <simon.schenk@ziverge.com> Co-authored-by: Jan Ypma <jan@ypmania.nl> Co-authored-by: John A. De Goes <john@degoes.net> Co-authored-by: Sloane Sturzenegger <sloanesturz@users.noreply.github.com> Co-authored-by: David Larsson <dave.larsson@gmail.com> Co-authored-by: Kit Langton <kit.langton@gmail.com> Co-authored-by: Andrea Passaglia <gurghet@gmail.com> Co-authored-by: Fehér Vilmos <jupposessho@gmail.com> Co-authored-by: Ondra Pelech <ondra.pelech@gmail.com> Co-authored-by: Keyno <kofujiw@gmail.com> Co-authored-by: Bill Frasure <bill.frasure@gmail.com> Co-authored-by: Alan Artigao Carreño <a.artigao@stuart.com> Co-authored-by: Sergey Rublev <alzo@alzo.space> Co-authored-by: Thijs Broersen <ThijsBroersen@users.noreply.github.com> Co-authored-by: Yelena Bunina <yelenabun@gmail.com> Co-authored-by: Terry L <8069171+ithinkicancode@users.noreply.github.com> Co-authored-by: Navid Jalali <nvd.eth0@gmail.com> Co-authored-by: Barnabás Oláh <7964844+stsatlantis@users.noreply.github.com> Co-authored-by: Regis Kuckaertz <629976+regiskuckaertz@users.noreply.github.com> Co-authored-by: Regis Kuckaertz <regiskuckaertz@users.noreply.github.com> Co-authored-by: Artem <artem.k.ekb@gmail.com> Co-authored-by: Kaur Matas <33095685+kmatasfp@users.noreply.github.com> Co-authored-by: Aleksandar Skrbic <skrbic.alexa@gmail.com> Co-authored-by: Akhtiam Sakaev <akhtiam.sakaev@gmail.com> Co-authored-by: Marcin Szałomski <baldram@users.noreply.github.com> Co-authored-by: Bruce Eckel <BruceTEckel@gmail.com> Co-authored-by: Paul Jung <paul@codereactor.com> Co-authored-by: Edvin Lundberg <edvinlun@kth.se> Co-authored-by: dpovey <dean.povey@ppcsamurai.com> Co-authored-by: Dmitry Karlinsky <dmitryka@wix.com> Co-authored-by: Bulat <lb6557@gmail.com> Co-authored-by: Michael <grouzen.hexy@gmail.com> Co-authored-by: Olive Iosello <67493878+oliveiosello@users.noreply.github.com> Co-authored-by: Georgi Krastev <joro.kr.21@gmail.com> Co-authored-by: Igal Tabachnik <hmemcpy@gmail.com> Co-authored-by: Ethan Edmond <eedmond@uccs.edu> Co-authored-by: Erik Timmers <e.timmers@gmail.com> Co-authored-by: Dmitry Martynov <domartynov@gmail.com> Co-authored-by: Sarath Kallatt Sivasankaran <kssarath2005@gmail.com> Co-authored-by: Zdeněk Hřebíček <10925068+zhrebicek@users.noreply.github.com>
2 года назад История
README.md

ZIO Logo

Project Stage CI Release Snapshot Issues
[Project stage]Badge-Stage-Page CI [Release Artifacts]Link-SonatypeReleases [Snapshot Artifacts]Link-SonatypeSnapshots [Average time to resolve an issue]Link-IsItMaintained
Scaladoc Scaladex Discord Twitter Gitpod
Scaladoc [Badge-Scaladex-page]Link-Scaladex-page [Badge-Discord]Link-Discord [Badge-Twitter]Link-Twitter Gitpod ready-to-code

Welcome to ZIO

ZIO is a zero-dependency Scala library for asynchronous and concurrent programming.

Powered by highly-scalable, non-blocking fibers that never waste or leak resources, ZIO lets you build scalable, resilient, and reactive applications that meet the needs of your business.

  • High-performance. Build scalable applications with 100x the performance of Scala’s Future.
  • Type-safe. Use the full power of the Scala compiler to catch bugs at compile time.
  • Concurrent. Easily build concurrent apps without deadlocks, race conditions, or complexity.
  • Asynchronous. Write sequential code that looks the same whether it’s asynchronous or synchronous.
  • Resource-safe. Build apps that never leak resources (including threads!), even when they fail.
  • Testable. Inject test services into your app for fast, deterministic, and type-safe testing.
  • Resilient. Build apps that never lose errors, and which respond to failure locally and flexibly.
  • Functional. Rapidly compose solutions to complex problems from simple building blocks.

To learn more about ZIO, see the following references:


Adopters

Following is a partial list of companies happily using ZIO in production to craft concurrent applications.

Want to see your company here? Submit a PR!

Sponsors

[Ziverge]Link-Ziverge

Ziverge is a leading contributor to ZIO.

[Scalac]Link-Scalac

Scalac sponsors ZIO Hackathons and contributes work to multiple projects in ZIO ecosystem.

[Septimal Mind]Link-SeptimalMind

Septimal Mind sponsors work on ZIO Tracing and continuous maintenance.

[SoftwareMill]Link-SoftwareMill

SoftwareMill generously provides ZIO with paid-for CircleCI build infrastructure.

[YourKit]Link-YourKit

YourKit generously provides use of their monitoring and profiling tools to maximize the performance of ZIO applications.


Learn More on the ZIO Homepage


Code of Conduct

See the Code of Conduct


Support

Come chat with us on [Badge-Discord]Link-Discord.


Legal

Copyright 2017 - 2020 John A. De Goes and the ZIO Contributors. All rights reserved.

Описание

ZIO — A type-safe, composable library for async and concurrent programming in Scala

Конвейеры
0 успешных
0 с ошибкой