{"id":16086894,"url":"https://github.com/olekscode/deprecationvisitor","last_synced_at":"2026-01-19T12:33:07.704Z","repository":{"id":88081375,"uuid":"381719006","full_name":"olekscode/DeprecationVisitor","owner":"olekscode","description":"A visitor for collecting deprecations from Pharo methods","archived":false,"fork":false,"pushed_at":"2021-09-06T13:53:14.000Z","size":22,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-05T14:43:49.298Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Smalltalk","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/olekscode.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-06-30T13:52:43.000Z","updated_at":"2021-09-06T13:53:17.000Z","dependencies_parsed_at":"2023-05-18T05:00:13.884Z","dependency_job_id":null,"html_url":"https://github.com/olekscode/DeprecationVisitor","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/olekscode/DeprecationVisitor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olekscode%2FDeprecationVisitor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olekscode%2FDeprecationVisitor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olekscode%2FDeprecationVisitor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olekscode%2FDeprecationVisitor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/olekscode","download_url":"https://codeload.github.com/olekscode/DeprecationVisitor/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olekscode%2FDeprecationVisitor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28567896,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-19T08:53:44.001Z","status":"ssl_error","status_checked_at":"2026-01-19T08:52:40.245Z","response_time":67,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-09T13:25:54.669Z","updated_at":"2026-01-19T12:33:07.687Z","avatar_url":"https://github.com/olekscode.png","language":"Smalltalk","readme":"# DeprecationVisitor\n\n[![Build status](https://github.com/olekscode/DeprecationVisitor/workflows/CI/badge.svg)](https://github.com/olekscode/DeprecationVisitor/actions/workflows/test.yml)\n[![Coverage Status](https://coveralls.io/repos/github/olekscode/DeprecationVisitor/badge.svg?branch=master)](https://coveralls.io/github/olekscode/DeprecationVisitor?branch=master)\n[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/olekscode/DeprecationVisitor/master/LICENSE)\n\nA simple visitor that can collect deprecations from Pharo methods. Developed for research purposes, to analyse method deprecations in Pharo images. `DeprecationModel` is a static version of `Deprecation` which stores all the information about the deprecation such as message, date, version, etc., but does not require a dynamic execution context.\n\n## How to install it?\n\nTo install `DeprecationVisitor`, go to the Playground (Ctrl+OW) in your [Pharo](https://pharo.org/) image and execute the following Metacello script (select it and press Do-it button or Ctrl+D):\n\n```Smalltalk\nMetacello new\n  baseline: 'DeprecationVisitor';\n  repository: 'github://olekscode/DeprecationVisitor/src';\n  load.\n```\n\n## How to depend on it?\n\nIf you want to add a dependency on `DeprecationVisitor` to your project, include the following lines into your baseline method:\n\n```Smalltalk\nspec\n  baseline: 'DeprecationVisitor'\n  with: [ spec repository: 'github://olekscode/DeprecationVisitor/src' ].\n```\n\nIf you are new to baselines and Metacello, check out the [Baselines](https://github.com/pharo-open-documentation/pharo-wiki/blob/master/General/Baselines.md) tutorial on Pharo Wiki.\n\n## How to use it?\n\nConsider that you have a deprecated method:\n\n```Smalltalk\nFFIStructure \u003e\u003e address\n    self\n        deprecated: 'Use #getHandle'\n        on: '27 October 2015'\n        in: 'Pharo5'\n        transformWith: '`@rec address' -\u003e '`@rec getHandle'.\n\t\n    ^ self getHandle\n```\n\n`DeprecationVisitor` can be used to collect all deprecations from a given method:\n\n```Smalltalk\nvisitor := DeprecationVisitor new.\nmethod := FFIStructure \u003e\u003e #address.\nmethod ast acceptVisitor: visitor.\nvisitor deprecations. \"an OrderedCollection(a DeprecationModel)\"\n```\n\nThe collected deprecation will be equivalent to the following one:\n\n```Smalltalk\nDeprecationModel new\n    message: 'Use #getHandle';\n    date: '27 October 2015';\n    version: 'Pharo5';\n    transformationRule: (TransformationRule\n        antecedent: '`@rec address'\n\tconsequent: '`@rec getHandle').\n```\n\nA simple example of collecting all method deprecations from a Pharo image:\n\n```Smalltalk\nmethods := Smalltalk image packages flatCollect: [ :package | package methods ].\n\nvisitor := DeprecationVisitor new.\n\nmethods do: [ :method |\n    method ast acceptVisitor: visitor ].\n\nvisitor deprecations.\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Folekscode%2Fdeprecationvisitor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Folekscode%2Fdeprecationvisitor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Folekscode%2Fdeprecationvisitor/lists"}