![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
thai-address-database
Advanced tools
Thai Address Database for managing addresses in applications.
ฐานข้อมูลที่อยู่ในไทย ไม่ต้องใช้ Server Side!
database และ function preprocess() จาก ตั้นฉบับ version 1.5.1
yarn add thai-address-database
<template>
<div id="app">
<input v-model="q">
<ul>
<li v-for="item in result">
{{item.district}} » {{item.amphoe}} » {{item.province}} » {{item.zipcode}}
</li>
</ul>
</div>
</template>
<script>
import { searchAddressByDistrict } from 'thai-address-database'
export default {
name: 'app',
data () {
return {
q: ''
}
},
computed: {
result () {
return searchAddressByDistrict(this.q)
}
}
}
</script>
ใน /database/raw_database มีไฟล์ฐานข้อมูลที่เป็น excel ชื่อว่า database.xlxs สามารถอัปเดทฐานข้อมูลได้ในนี้โดยเมื่ออัปเดตเรียบร้อยก็รันคำสั่ง
npm run migrate
ตัว script จะแปลงไฟล์ database.xlsx ไปเป็น /database/db.json ให้ (ยังไม่ support geodb)
ปล.ข้อควรระวังคือ file excel จะต้องเป็น xlxs เสมอ
npm run deploy
FAQs
Thai Address Database for managing addresses in applications.
The npm package thai-address-database receives a total of 263 weekly downloads. As such, thai-address-database popularity was classified as not popular.
We found that thai-address-database demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.