# \#deprecation

**URL:** https://discourse.julialang.org/tag/deprecation/180.md

[Latest](https://discourse.julialang.org/latest.md) · [Categories](https://discourse.julialang.org/categories.md) · [Tags](https://discourse.julialang.org/tags.md)

---

## [Expose \`Base.depwarn(...; force=false)\` in \`@deprecate\`](https://discourse.julialang.org/t/expose-base-depwarn-force-false-in-deprecate/129383)

<div class="topic-metadata">

**Author:** [@drbergman](https://discourse.julialang.org/u/drbergman)\
**Replies:** 0\
**Last updated:** [May 27, 2025, 2:31pm UTC](https://discourse.julialang.org/t/expose-base-depwarn-force-false-in-deprecate/129383 "2025-05-27T14:31:41Z")

</div>

Following up on the conversation in Why is \`depwarn=no\` by default? Would it be possible to expose the force kwarg of Base.depwarn in the @deprecate call? I just opened a PR in DeprecateKeywords.jl that uses the followin…

---

## [Wrapping kw-based Parameters.jl constructor, for deprecation](https://discourse.julialang.org/t/wrapping-kw-based-parameters-jl-constructor-for-deprecation/122909)

<div class="topic-metadata">

**Author:** [@Ken\_Williams](https://discourse.julialang.org/u/Ken_Williams)\
**Replies:** 4\
**Last updated:** [December 3, 2024, 6:21pm UTC](https://discourse.julialang.org/t/wrapping-kw-based-parameters-jl-constructor-for-deprecation/122909 "2024-12-03T18:21:14Z")

</div>

I have a config object like this: using Parameters @with\_kw mutable struct Config "Param 1" param1::Float64 # ... several other items ... "Whether to iterate randomly." use\_random::Bool = false en…

---

## [Juliahub packages feature request: detect and mark deprecated or archived packages](https://discourse.julialang.org/t/juliahub-packages-feature-request-detect-and-mark-deprecated-or-archived-packages/97370)

<div class="topic-metadata">

**Author:** [@nsajko](https://discourse.julialang.org/u/nsajko)\
**Replies:** 2\
**Last updated:** [April 12, 2023, 7:01am UTC](https://discourse.julialang.org/t/juliahub-packages-feature-request-detect-and-mark-deprecated-or-archived-packages/97370 "2023-04-12T07:01:52Z")

</div>

Perhaps there should be a feature to mark your package as deprecated on Juliahub? Once a package’s source code repository get’s archived, I think it would make sense for this fact to be prominently displayed on Juli…

---

## [Ask Pkg to resolve oldest possible versions for dependencies](https://discourse.julialang.org/t/ask-pkg-to-resolve-oldest-possible-versions-for-dependencies/93585)

<div class="topic-metadata">

**Author:** [@Krastanov](https://discourse.julialang.org/u/Krastanov)\
**Replies:** 0\
**Last updated:** [January 26, 2023, 4:26pm UTC](https://discourse.julialang.org/t/ask-pkg-to-resolve-oldest-possible-versions-for-dependencies/93585 "2023-01-26T16:26:48Z")

</div>

The compat for many of my packages looks like LibraryA = 0.1,0.2,0.3,0.4,0.5,0.6. I am starting to worry that I have inadvertently started relying on features introduced on a latter version that I simply did not notice a…

---

## [Why is \`depwarn=no\` by default?](https://discourse.julialang.org/t/why-is-depwarn-no-by-default/51094)

<div class="topic-metadata">

**Author:** [@heliosdrm](https://discourse.julialang.org/u/heliosdrm)\
**Replies:** 11\
**Last updated:** [December 2, 2020, 7:49pm UTC](https://discourse.julialang.org/t/why-is-depwarn-no-by-default/51094 "2020-12-02T19:49:51Z")

</div>

This is reported as a change in Julia 1.5. I wonder what motivated it, since deprecation warnings are so useful to adapt your code to suggested good practice, and anticipate future breaking changes.

---

## [Haskey is deprecated, use Target instead](https://discourse.julialang.org/t/haskey-is-deprecated-use-target-instead/42273)

<div class="topic-metadata">

**Author:** [@deveshjawla](https://discourse.julialang.org/u/deveshjawla)\
**Replies:** 1\
**Last updated:** [June 29, 2020, 11:28pm UTC](https://discourse.julialang.org/t/haskey-is-deprecated-use-target-instead/42273 "2020-06-29T23:28:23Z")

</div>

I get this warning ever since I added CUDA.jl. How to make sense of a warning in Julia?

---

## [Deprecate method of extended function](https://discourse.julialang.org/t/deprecate-method-of-extended-function/21491)

<div class="topic-metadata">

**Author:** [@carstenbauer](https://discourse.julialang.org/u/carstenbauer)\
**Replies:** 2\
**Last updated:** [March 5, 2019, 2:59pm UTC](https://discourse.julialang.org/t/deprecate-method-of-extended-function/21491 "2019-03-05T14:59:56Z")

</div>

Say I have the following dummy module module MyModule struct MyType end Base.length(m::MyType) = 5 export length end What I want to do is @deprecate the length function in favor of a different function, say mylengt…

---

## [Where to PR unlisted deprecations?](https://discourse.julialang.org/t/where-to-pr-unlisted-deprecations/16190)

<div class="topic-metadata">

**Author:** [@anon32405968](https://discourse.julialang.org/u/anon32405968)\
**Replies:** 1\
**Last updated:** [October 12, 2018, 10:08am UTC](https://discourse.julialang.org/t/where-to-pr-unlisted-deprecations/16190 "2018-10-12T10:08:33Z")

</div>

Upgrading my package to Julia 1.0 I noticed two deprecations: conv: Which Julia 0.7 kindly told me had now moved to DSP.jl and readdlm: Again, Julia 0.7 told me that readdlm is deprecated and moved to the library Deli…

---

## [Disable depwarn globally?](https://discourse.julialang.org/t/disable-depwarn-globally/14649)

<div class="topic-metadata">

**Author:** [@jminardi](https://discourse.julialang.org/u/jminardi)\
**Replies:** 4\
**Last updated:** [September 13, 2018, 2:18pm UTC](https://discourse.julialang.org/t/disable-depwarn-globally/14649 "2018-09-13T14:18:14Z")

</div>

I have a julia script installed in my /usr/local/bin/ directory that starts with #! /usr/bin/env julia Is there any way for me to disable depreciation warnings in this situation? Simply passing --depwarn=no in the sheba…

---

## [How do I deprecate a package?](https://discourse.julialang.org/t/how-do-i-deprecate-a-package/14129)

<div class="topic-metadata">

**Author:** [@helgee](https://discourse.julialang.org/u/helgee)\
**Replies:** 5\
**Last updated:** [August 27, 2018, 2:47pm UTC](https://discourse.julialang.org/t/how-do-i-deprecate-a-package/14129 "2018-08-27T14:47:40Z")

</div>

I have decided that it does not make sense anymore to maintain Dopri.jl. All use cases are covered (much better) by the DifferentialEquations.jl ecosystem. How do I deprecate the package? So far I have: Put a notice o…

---

## [Deprecated csv prefix](https://discourse.julialang.org/t/deprecated-csv-prefix/7616)

<div class="topic-metadata">

**Author:** [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Replies:** 4\
**Last updated:** [December 8, 2017, 10:22pm UTC](https://discourse.julialang.org/t/deprecated-csv-prefix/7616 "2017-12-08T22:22:19Z")

</div>

Hi, Can you please clarify the newer syntax? csv""" x, y, z 1, 2, 3 """ @csv\_str and the csv"“” syntax are deprecated. Use CSV.read(IOBuffer(…)) from the CSV package instead. Why the csv prefix was deprecated, coul…

---

## [Boolean indexing deprecated?](https://discourse.julialang.org/t/boolean-indexing-deprecated/7299)

<div class="topic-metadata">

**Author:** [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Replies:** 2\
**Last updated:** [November 25, 2017, 2:27am UTC](https://discourse.julialang.org/t/boolean-indexing-deprecated/7299 "2017-11-25T02:27:31Z")

</div>

From the NEWS.md file: Using Bool values directly as indices is now deprecated and will be an error in the future. Convert them to Int before indexing if you intend to access index 1 for true and 0 for false. Does th…
