From 5d2dd233cfffa7e2cf1a1b8d25b29317cff5e0ea Mon Sep 17 00:00:00 2001 From: trick77 Date: Wed, 25 Feb 2026 19:17:24 +0000 Subject: [PATCH] Remove MIGRATION.md and its references in README.md The migration from asn-ip to as-ip-blocks is long complete. https://claude.ai/code/session_015xhzZuqNdgwkt4bdps5C3f --- MIGRATION.md | 107 --------------------------------------------------- README.md | 5 +-- 2 files changed, 1 insertion(+), 111 deletions(-) delete mode 100644 MIGRATION.md diff --git a/MIGRATION.md b/MIGRATION.md deleted file mode 100644 index f6b628ad55e3..000000000000 --- a/MIGRATION.md +++ /dev/null @@ -1,107 +0,0 @@ -# Migration guide - -This repository will be renamed from **asn-ip** to **as-ip-blocks**. - -## Migration steps - -1. If only consuming plaintext files: just update the download URL, no code changes needed -2. Update repository URLs in your code from `ipverse/asn-ip` to `ipverse/as-ip-blocks` -3. If parsing JSON: handle the `metadata` nested object and `subnets` → `prefixes` rename - -## What's changing - -### Repository name -- Old: `ipverse/asn-ip` -- New: `ipverse/as-ip-blocks` - -### File structure - -The file structure remains the same: -``` -as/1/aggregated.json -as/1/ipv4-aggregated.txt -as/1/ipv6-aggregated.txt -``` - -### JSON format - -**Old:** -```json -{ - "asn": 1, - "handle": "LVLT-1", - "description": "Level 3 Parent LLC", - "subnets": { - "ipv4": [ - "177.75.88.0/24", - "177.75.90.0/24" - ], - "ipv6": [] - } -} -``` - -**New:** -```json -{ - "asn": 1, - "metadata": { - "handle": "LVLT-1", - "description": "Level 3 Parent LLC", - "countryCode": "US", - "country": "United States", - "origin": "authoritative" - }, - "prefixes": { - "ipv4": [ - "177.75.88.0/24", - "177.75.90.0/24" - ], - "ipv6": [] - } -} -``` - -**Changes:** -- `subnets` renamed to `prefixes` -- `handle`, `description` now nested under `metadata` object -- Added `countryCode` field in metadata (ISO 3166-1 alpha-2 code or `null`) -- Added `country` field in metadata (country name in English or `null`) -- Added `origin` field in metadata (values: `authoritative`, `inferred`, `overlaid`, `none`) - -### Plaintext format - -The plaintext format remains the same with separate IPv4 and IPv6 files: - -ipv4-aggregated.txt: -``` -# AS1 (LVLT-1) -# Level 3 Parent LLC -# -177.75.88.0/24 -177.75.90.0/24 -``` - -ipv6-aggregated.txt: -``` -# AS1 (LVLT-1) -# Level 3 Parent LLC -# -2a01:1234::/32 -``` - -### URL changes - -**Old:** -``` -https://raw.githubusercontent.com/ipverse/asn-ip/master/as/1/aggregated.json -https://raw.githubusercontent.com/ipverse/asn-ip/master/as/1/ipv4-aggregated.txt -https://raw.githubusercontent.com/ipverse/asn-ip/master/as/1/ipv6-aggregated.txt -``` - -**New:** -``` -https://raw.githubusercontent.com/ipverse/as-ip-blocks/master/as/1/aggregated.json -https://raw.githubusercontent.com/ipverse/as-ip-blocks/master/as/1/ipv4-aggregated.txt -https://raw.githubusercontent.com/ipverse/as-ip-blocks/master/as/1/ipv6-aggregated.txt -``` \ No newline at end of file diff --git a/README.md b/README.md index 7962b7317cd5..b4874bcfbe94 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,5 @@ # as-ip-blocks (formerly asn-ip) -> **📢 New and improved:** This repo has been upgraded with a clearer name (`as-ip-blocks`) and enhanced JSON format. -> Check out [MIGRATION.md](MIGRATION.md) for the quick changes needed (plaintext files are unchanged). - ## 🔍 Try it online Look up any AS or IP prefix at **[Lens by ipverse](https://lens.ipverse.net)** to explore announced prefixes and metadata. @@ -24,7 +21,7 @@ Git history lets you see how an AS's announcements change over time. - **2026-01-17**: Added bulk download archive in [releases](https://github.com/ipverse/as-ip-blocks/releases/latest) - **2026-01-08**: AS directories are now removed if no prefixes have been announced in the last 90 days. Historical metadata for removed AS may still be available in [as-metadata](https://github.com/ipverse/as-metadata). - **2026-01-05**: Removed `lastAnnounced` field to reduce git delta size. This field is still available in [as-metadata](https://github.com/ipverse/as-metadata). -- **2026-01-03**: Repository renamed to `as-ip-blocks`, JSON format changed (`subnets` → `prefixes`, metadata nested). See [MIGRATION.md](MIGRATION.md) for details. +- **2026-01-03**: Repository renamed to `as-ip-blocks`, JSON format changed (`subnets` → `prefixes`, metadata nested). - 2025-08-03: Removed opinionated handle cleanup - 2023-09-03: Removed PEM certificates from description field