Questions tagged [deprecated]

Deprecation is a status applied to software features or language terms to indicate that they should be avoided, typically because they have been superseded. Use this tag for questions about deprecated features or how to deprecate features yourself (e.g. using annotations).

Filter by
Sorted by
Tagged with
-1 votes
1 answer
60 views

"npm install" on react app shows deprecateds warnings

If I delete the folder node_modules and try to recreate it using npm install, I get lot of deprecated warnings. Attached all warning messages. The problem is not related to a specific computer, I ...
Y.S.'s user avatar
  • 159
0 votes
0 answers
32 views

What package can be used to get Microsoft.AspNetCore.Authentication.AuthenticationHandler<T> in a class library?

I have a class library targeting .NET Standard 2.0 which contains custom authentication logic for ASP.NET (Core+) web applications. For example, it has an implementation of AuthenticationHandler along ...
Mark Embling's user avatar
  • 12.5k
0 votes
0 answers
20 views

Replacing deprecated FILTER_SANITIZE_STRING to prevent SQL injections [duplicate]

I've just updated my PHP version from 8.0.26 to 8.2.0 and I know have to deal with the deprecated FILTER_SANITIZE_STRING constant. I was using it this way to filter some text inputs in a form in order ...
Nyusuka C037's user avatar
0 votes
1 answer
34 views

Inherited CombinedStream object causing segmentation fault

all. I am using a slightly-modified version of the class defined at https://stackoverflow.com/a/1761027/2909854 which allows me to combine streams so that anything sent to the combined stream goes to ...
nabelekt's user avatar
-1 votes
0 answers
21 views

Errors appearing after replacing WebSecurityConfigurerAdapter

i've been following an online course on creating a spring boot project, in security part he used in the file "SecurityConfiguration" WebSecurityConfigurerAdapter and when he ran his app it ...
JeGonise Mohammed Amine's user avatar
-1 votes
0 answers
19 views

Deprecated SLServiceTypeTwitter in iOS 11.0

I have not been able to find how to replace the deprecated SLServiceTypeTwitter to compose a tweet - it still works in iOS 16.4, surprisingly: SLComposeViewController *tweetSheet = [...
Hahnemann's user avatar
  • 4,286
-1 votes
0 answers
23 views

'init(isActive:destination:label:)' was deprecated in iOS 16.0: use NavigationLink(value:label:) inside a NavigationStack or NavigationSplitView

import SwiftUI struct AddRecipeView: View { @EnvironmentObject var recipesVM: RecipesViewModel @State private var name: String = "" @State private var selectedCategory: Category = Category....
Erik Sikh's user avatar
-1 votes
0 answers
30 views

Mark all properties/methods of a Class/Struct/Protocol as deprecated

Say that instead of marking every method as deprecated like this: class A { @available(*, deprecated) var property1: String? @available(*, deprecated) func method1() {} @available(*...
aguilarpgc's user avatar
  • 1,179
0 votes
0 answers
37 views

element.setcapture() is deprecated Vue.js

I am making a Vue.js project with the google books API. Everything was fine until this error came out of nowhere : element.setcapture() is deprecated. use element.setpointercapture() instead For more ...
Lauriane's user avatar
-1 votes
0 answers
34 views

Deprecation message - Mercure, Api platform on @type attributes

I have a warning message when I would publish a private update on Mercure through an Api Platform: User Deprecated: Since api-platform/core 3.1: Having mercure.include_type (always include @type in ...
system7's user avatar
  • 128
-1 votes
0 answers
78 views

Long(long) in Long has been deprecated and marked for removal when trying to sort files by modified date [duplicate]

I am new to Java and trying to write a program to sort the list of files in a directory by both created date and modified date. I tried some examples from web search, but none of them seems to be ...
Rajni's user avatar
  • 25
0 votes
0 answers
23 views

Suppress Hibernate deprecated messages in a Log4j2 properties file

I am trying to get rid of these error messages appearing in our logs / console out: [WARN ] [2023-05-09 11:19:46.567] [deprecation.createCriteria:1832] - HHH90000022: Hibernate's legacy org.hibernate....
Gotyb's user avatar
  • 1
-6 votes
3 answers
210 views

Is lodash/fp deprecated?

I've not found evidence, but a relatively recent comment claims that lodash/fp is deprecated. I was therefore wondering if I'm just bad at searching.
Enlico's user avatar
  • 22.4k
2 votes
2 answers
96 views

Why Date class does not support Internationalization?

I was going through the different ways that we can get Date and Time in java, while reading the documentation could not understand what the below quote mean. Unfortunately, the API for these ...
Leveling_up's user avatar
0 votes
0 answers
27 views

Camel BeanIO Replacement

I know that after 3.16 version of camel BeanIO becomes deprecated and removed from camel. I cannot seem to find a replacement. I have seen some people write their own code to replace it but I am ...
user3865325's user avatar
3 votes
1 answer
814 views

i get resolve as strikethrough in my angular 15 generated project. how can i solve this?

I'm really new to angular and this is the first project I'm creating. what I need to do here is create an add-editClient component and use the angular resolve method to get data from the backend which ...
codinggirl23's user avatar
1 vote
2 answers
36 views

Replace create_function with empty $args for PHP 8

I'm having trouble rewriting this line of code that contains create_function() in preparation for updating to PHP 8+. The line of code to replace is: add_action('widgets_init', create_function('', '...
jeffimperial's user avatar
1 vote
2 answers
108 views

How to make PHPUnit explain deprecations and warnings?

I'm just learning how to use PHPUnit. I'm running it from the command line, and among the results I get OK, but there are issues! Tests: 5, Assertions: 15, Warnings: 2, Deprecations: 5. I can't work ...
Jodes's user avatar
  • 1
0 votes
0 answers
30 views

How can I use Either.shouldBeRight matcher in recent versions of kotest?

I have a project using kotest-assertions-arrow v1.0.3. I have a code using shouldBeRight: obj.shouldBeRight { value -> assertThat(value.blahblahblah, equalTo(xyz)) } shouldBeRight ...
Sixro's user avatar
  • 392
1 vote
0 answers
188 views

here-api maptileservice is deprecated and will be removed soon

we have some references to here map tile v2.1 and the H.service.Platform.createDefaultLayers function is telling us the MapTileService and traffic.Service classes are deprecated and will be removed ...
ianw's user avatar
  • 11
0 votes
0 answers
17 views

Old LOCKFILE warning on github repo - I cant clone

I have been tasked to work on a website. The site was built in React and calls on most of the content from WordPress. I got the credentials to the host, WordPress, and the github repo. I tried to ...
fluva74's user avatar
  • 21
1 vote
1 answer
52 views

Programmatically emit a deprecation in older versions for dynamic properties

In PHP 8.2, dynamic properties are deprecated. I am currently developing on PHP 8.1 and would like the code also to work on PHP 8.2. Near the bottom of the linked page it says: It is possible to ...
AdamS's user avatar
  • 209
1 vote
1 answer
53 views

How should I update my code to avoid these "function is deprecated" warnings when compiling my CoreAudio program?

I've got a MacOS/X program that uses CoreAudio to do sound output. It works fine, but whenever I compile it, the compiler emits the "XXX is deprecated" warnings shown below. My question is, ...
Jeremy Friesner's user avatar
0 votes
0 answers
51 views

Moving accessibility focus to another component

On my project I want to move the accessibility (f.e. VoiceOver) focus on a different component, but I can't find any good, well documented, approach. The use-case is that after clicking the button I ...
Robert_'s user avatar
1 vote
1 answer
114 views

Gzip compression for client/server over GRPC

I am trying to pin down a functional not deprecated not experimental solution to compressing payloads over GRPC. It seems updated documentation of this is hard to come by. Can anyone point me to ...
amlwwalker's user avatar
  • 3,152
0 votes
1 answer
40 views

How to prevent deprecated flutter widgets suggestions in vs code?

I want to disable suggestions for widgets that are marked as deprecated by flutter. I've turned off he show deprecated suggestions in vs code but doesn't seem to work. It would be helpful to narrow ...
kartik's user avatar
  • 69
0 votes
0 answers
24 views

How to use a .ttf file in HTML deprecated <font> tag

I downloaded a font called Roboto-Thin.ttf and I referenced using <link rel="preload" href="Roboto-Thin.ttf" type="font/ttf" as="font" /> It worked, ...
Bogdan Floareș's user avatar
-2 votes
1 answer
35 views

What is startActivityForResult deprecated solution for bottomNavigationView item selected?

1 I want to pick image from a selected item (in that case, it is R.id.status ) from bottom navigation view and show the image in a recyclerview named statusList. How can I do this if ...
Mr. X's user avatar
  • 1
1 vote
0 answers
38 views

Getting error "deprecated name" and expression expected. ts(1109)

I am getting errors in my react component. I am a very beginner at react. It shows that the name is deprecated and the expression expecting (;). I am following a video in which everything is going ...
Mahelaka Mansoori's user avatar
2 votes
1 answer
253 views

Issue with 'ViewPropTypes.styles' after upgrading expo from 45 to 46 and 'fixing' deprecated-props

I have just upgraded expo from 45 to 46 to run on my physical device (apparently this update is need for the expo app). Both of this issues came up: I have found many solutions for the deprecated ...
Nilton Schumacher F's user avatar
0 votes
0 answers
85 views

Wi-Fi Security Protocol in Kotlin

How can I get the security protocol of the wifi that an android device connected by using kotlin? I want to get whether Wi-Fi encryption protocol is "WEP", "WPA", "WPA2" ...
Berk's user avatar
  • 1
-1 votes
1 answer
39 views

Deprecated ViewPropTypes react native

I am trying the solution here and defined my babel.config.js as follows: const path = require('path'); module.exports = { presets: ['module:metro-react-native-babel-preset'], plugins: [ [ ...
Ali Yar Khan's user avatar
  • 1,203
1 vote
0 answers
68 views

Build failed due to deprecated Android v1 embedding even after upgrading pre 1.12 Android projects

I'm trying to run a project that's posted on GitHub(https://github.com/Ronak99/FoodDelivery-App-UI) and it's built with Flutter. Initially, the code didn't run at all, but after upgrading Flutter, I ...
Shivansh pachauri's user avatar
0 votes
1 answer
287 views

Jenkins deprecated and warning plugins

After upgrading Jenkins to the jenkins/jenkins:2.394-jdk11 version I have some warnings and deprecated plugins. What is the best way to resolve this kind of issues. Find Alternatives Uninstall them ...
Vahan Ghazaryan's user avatar
0 votes
0 answers
70 views

Trying to run/debug a CSS and HTML file with localhost on VSC but getting message "crbug/1173575, non-JS module files deprecated"

I am trying to run/debug an HTML + CSS file via Localhost in Visual Studio Code, but all I get in Chrome is: localhost refused to connect. ERR_CONNECTION_REFUSED and in VSC is says crbug/1173575, non-...
printAmerigo's user avatar
0 votes
1 answer
61 views

How does this old zoom and pan d3js code translate to d3js.v7?

// set the dimensions and margins of the graph var margin = {top: 10, right: 30, bottom: 30, left: 60}, width = 460 - margin.left - margin.right, height = 400 - margin.top - margin.bottom; // ...
Saad Sahir's user avatar
0 votes
1 answer
49 views

What's the alternative for AMQP remoting?

We're using Spring AMQP in order to make RPC calls using Rabbitmq but AMQP remoting is removed in spring 6. What's the alternative for it? Thanks
behizz's user avatar
  • 37
0 votes
0 answers
9 views

TensorFlow 2: from deprecated RNNCellDropoutWrapper to keras.layers.RNN

I am trying to migrate a code to tensorflow 2. I have this line of code: cell = SimpleRNNCell(self.num_hidden) cell = tf.nn.RNNCellDropoutWrapper(cell, output_keep_prob=0.2) In TF2 documentation, ...
TOP1's user avatar
  • 71
0 votes
0 answers
103 views

Value of type 'Text' has no member 'lineHeightMultiple' error message

I want to decrease line height for Text elements in my SwiftUI project. I use the following code and it works fine: Text("Hello world!\nHello world!")._lineHeightMultiple(0.83) The problem ...
Nikita Tepliakov's user avatar
1 vote
0 answers
125 views

@tensorflow/tfjs-react-native still uses @react-native-community/async-storage which has been deprecated

Error message: Unable to resolve "@react-native-community/async-storage" from "node_modules/@tensorflow/tfjs-react-native/dist/async_storage_io.js" package.json { "name&...
Pragati Bhattad's user avatar
2 votes
1 answer
197 views

How can I check if haptic feedback enabled in system on Android 13 or higher?

I'm trying to get if haptic feedback enabled in System Settings, i.e. globally on a device. I don't need to set this setting, just read. We do it this way on Android 12 or lower: Settings.System....
Dmitry Semenov's user avatar
1 vote
1 answer
107 views

TypeError: 'decimal.Decimal' object cannot be interpreted as an integer

I am running this code to convert the sample_time variables to datetime. However, I am receiving this error: TypeError: 'decimal.Decimal' object cannot be interpreted as an integer. How can I rectify ...
Christopher McHugh's user avatar
0 votes
1 answer
66 views

What replaced $this->html( 'headelement' ); in mediawiki skins?

I have a mediawiki skin I set up some years ago. It is a simple fixed-width skin. I recently updated mediawiki, and now the skin does not work. I get the error below, which I understand -- that ...
bblackmoor's user avatar
3 votes
0 answers
81 views

Deprecating function in external API

I'm using an external proprietary library API which has marked in their documentation various functions as deprecated but have not provided any features (compile flags, macros etc) to flag use of the ...
Shellshock's user avatar
0 votes
1 answer
60 views

FutureWarning: 'BeautifulTable.__getitem__' has been deprecated in 'v1.0.0' and will be removed in 'v1.2.0'. Use 'BeautifulTable.{columns|rows}[key]'

This is my first question on StackOverflow. I am very nervous. I am new to programming, and doing my best to learn and improve. I am currently working on a project using Beautiful Table. However, when ...
Piko's user avatar
  • 1
0 votes
0 answers
14 views

Modify package dependencies right after installation in python

I have been developing my own python package which has been working nicely until Python v3.10. This last Python version only works with numpy>=v1.20. However, starting from numpy v1.20, numpy.int ...
Super Biscuit's user avatar
1 vote
0 answers
68 views

Updating react-native packages still gives 'deprecated ViewPropTypes' error

I am working on upgrading a react-native application from v0.60 to v0.70. I have updated all the packages to the latest but after building the app successfully, I am getting a white screen when the ...
UnclearEntity's user avatar
0 votes
1 answer
36 views

Replicate deprecated NavigationLink behaviour within a NavigationStack

I'm in the midst of moving my app from iOS 15 to iOS 16. In my app ( iOS 15 ) I have a LogOn View (sysPassView) that automatically pops on first entry into my Navigation View using the following code: ...
SamCodes's user avatar
16 votes
3 answers
2k views

Validate phone authentication without showing the Recaptcha on Android in February 2023 (Firebase)

I developed an app with Flutter and Firebase that uses the phone authentication feature for Android and IOS. Everything works as expected except that the recaptcha is showing for Android. To solve ...
Mark Alexander's user avatar
0 votes
0 answers
32 views

Is there a way to get irradiance data using pvlib despite being deprecated?

I am trying to access forecasted irradiance data using pvlib through the following code: needed libraries import pvlib import pandas as pd import datetime from pvlib.forecast import GFS, NAM, NDFD, ...
Marvin Valentin's user avatar

1
2 3 4 5
50