{"id":13509677,"url":"https://github.com/whitfin/deppie","last_synced_at":"2025-04-19T14:08:13.882Z","repository":{"id":57489271,"uuid":"60964327","full_name":"whitfin/deppie","owner":"whitfin","description":"Elixir's coolest deprecation logger","archived":false,"fork":false,"pushed_at":"2018-10-08T22:29:46.000Z","size":9,"stargazers_count":12,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-12T18:44:48.225Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Elixir","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/whitfin.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}},"created_at":"2016-06-12T11:43:34.000Z","updated_at":"2024-12-27T23:08:10.000Z","dependencies_parsed_at":"2022-08-29T22:11:50.288Z","dependency_job_id":null,"html_url":"https://github.com/whitfin/deppie","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whitfin%2Fdeppie","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whitfin%2Fdeppie/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whitfin%2Fdeppie/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whitfin%2Fdeppie/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/whitfin","download_url":"https://codeload.github.com/whitfin/deppie/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246157603,"owners_count":20732644,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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-08-01T02:01:11.333Z","updated_at":"2025-03-30T13:32:40.409Z","avatar_url":"https://github.com/whitfin.png","language":"Elixir","funding_links":[],"categories":["Utilities"],"sub_categories":[],"readme":"# Deppie\n\nDeppie is a minimal deprecation logger for Elixir. The intent is to provide a very fast way to emit a deprecation message the first time a function is called. It's not meant to be fancy, it's just meant to work.\n\n## Why Deppie?\n\nEver written a library and had to deprecate a function? That's why.\n\nIt's a pain in a stateless language to keep track of when you have/haven't logged a warning, so Deppie removes that pain in an easy way, without impacting the application flow. The typical overhead of a `Deppie.once/1` call is under a microsecond.\n\nOriginally this module was going to be named `Deprecation`, but that's pretty long to type ;)\n\n## Installation\n\nDeppie is available on Hex, so add it as a dependency to your `mix.exs`:\n\n```elixir\ndef deps do\n  [{:deppie, \"~\u003e 1.1\"}]\nend\n```\n\n## Usage\n\nIt's super-duper easy to work with Deppie, as there are currently only two exposed functions; `warn/1` and `once/1`.\n\n```elixir\n# `Deppie.warn/1` just emits a basic deprecation notice\niex(1)\u003e Deppie.warn(\"MyModule.my_function/1 is deprecated!\")\n12:48:14.037 [warn]  Deprecation Notice: MyModule.my_function/1 is deprecated!\n:ok\n# `Deppie.once/1` will only emit a message once during the life of an application\niex(2)\u003e Deppie.once(\"MyModule.my_function/1 is deprecated!\")\n12:48:22.965 [warn]  Deprecation Notice: MyModule.my_function/1 is deprecated!\n:ok\n# Second time it's called, nothing happens!\niex(3)\u003e Deppie.once(\"MyModule.my_function/1 is deprecated!\")\n:ok\n```\n\nIf this library becomes popular, I might add bonus features like binary formatting - but for now the two functions above should be sufficient.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwhitfin%2Fdeppie","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwhitfin%2Fdeppie","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwhitfin%2Fdeppie/lists"}