Skip to content

Commit

Permalink
chore: Rename to package:libcoder (#129)
Browse files Browse the repository at this point in the history
`coder` was "too similar" to an abandoned package name..
  • Loading branch information
dnys1 authored May 8, 2024
1 parent 019c983 commit 1f0b541
Show file tree
Hide file tree
Showing 21 changed files with 27 additions and 27 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/coder.yaml → .github/workflows/libcoder.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: coder
name: libcoder
on:
pull_request:
paths:
- ".github/workflows/coder.yaml"
- "packages/coder/**"
- ".github/workflows/libcoder.yaml"
- "packages/libcoder/**"

# Prevent duplicate runs due to Graphite
# https://graphite.dev/docs/troubleshooting#why-are-my-actions-running-twice
Expand All @@ -23,14 +23,14 @@ jobs:
with:
cache: true
- name: Get Packages
working-directory: packages/coder
working-directory: packages/libcoder
run: dart pub get
- name: Analyze
working-directory: packages/coder
working-directory: packages/libcoder
run: dart analyze
- name: Format
working-directory: packages/coder
working-directory: packages/libcoder
run: dart format --set-exit-if-changed .
- name: Test
working-directory: packages/coder
working-directory: packages/libcoder
run: dart test
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:coder/coder.dart';
import 'package:libcoder/libcoder.dart';

final class MyClass {
MyClass({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ library;

import 'dart:collection';

import 'package:coder/src/decoder.dart';
import 'package:coder/src/encoder.dart';
import 'package:coder/src/form_data/form_data_coder.dart';
import 'package:coder/src/form_fields/form_fields_coder.dart';
import 'package:coder/src/json/json_coder.dart';
import 'package:coder/src/typeref.dart';
import 'package:libcoder/src/decoder.dart';
import 'package:libcoder/src/encoder.dart';
import 'package:libcoder/src/form_data/form_data_coder.dart';
import 'package:libcoder/src/form_fields/form_fields_coder.dart';
import 'package:libcoder/src/json/json_coder.dart';
import 'package:libcoder/src/typeref.dart';

export 'src/coder.dart';
export 'src/decoder.dart';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:coder/coder.dart';
import 'package:libcoder/libcoder.dart';

abstract mixin class Coder<V extends Object?> {
Encoder<V> get encoder;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:coder/coder.dart';
import 'package:libcoder/libcoder.dart';

abstract mixin class Decoder<V extends Object?> {
const Decoder();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:coder/coder.dart';
import 'package:libcoder/libcoder.dart';

abstract mixin class Encoder<V extends Object?> {
const Encoder();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import 'package:coder/coder.dart';
import 'package:coder/src/form_data/form_data_encoder.dart';
import 'package:libcoder/libcoder.dart';
import 'package:libcoder/src/form_data/form_data_encoder.dart';

final class FormDataCoder with Coder<String> {
FormDataCoder({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:coder/coder.dart';
import 'package:libcoder/libcoder.dart';

final class FormDataEncoder extends Encoder<String> {
FormDataEncoder({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:coder/coder.dart';
import 'package:libcoder/libcoder.dart';

final class FormFieldsCoder with Coder<Object> {
FormFieldsCoder({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:coder/coder.dart';
import 'package:libcoder/libcoder.dart';

final class FormFieldsEncoder extends Encoder<Object> {
FormFieldsEncoder({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:coder/coder.dart';
import 'package:libcoder/libcoder.dart';

final class JsonCoder with Coder<Object?> {
JsonCoder({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:coder/coder.dart';
import 'package:libcoder/libcoder.dart';

final class JsonDecoder extends Decoder<Object?> {
JsonDecoder({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:coder/coder.dart';
import 'package:libcoder/libcoder.dart';

final class JsonEncoder extends Encoder<Object?> {
JsonEncoder({
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: coder
name: libcoder
description: A general-purpose serialization framework for Dart.
repository: https://github.com/celest-dev/celest/tree/main/packages/coder
version: 0.0.1
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:coder/coder.dart';
import 'package:libcoder/libcoder.dart';
import 'package:test/test.dart';

final class MyClass {
Expand Down

0 comments on commit 1f0b541

Please sign in to comment.