Giter Club home page Giter Club logo

vcard4-ts's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

vcard4-ts's Issues

Better support for property groups

Two approaches

  1. Have an extra groups?: Record<string, PartialVCard>; property on vCards, which includes the grouped properties. Then, user code could decide whether it wants
  • Items ungrouped: Just use the pre-existing structure, ignoring group field in properties, or
  • Items grouped: Read through groups and then ignore all values which have a group field
  1. Have a groupVCard() function, which groups all entries by group name (and those without, into ungrouped) into a Record<string, PartialVCard>

I am currently favoring 2, as groups are rarely used and most consumers will not want to bother about it. This also reduces code size for group-agnostic consumers.

Implement RFC6715: OMA CAB extensions

RFC6715 defines the Open Mobile Alliance Converged Address Book extensions:

Properties

  • EXPERTISE, cardinality *, single text value
  • HOBBY, cardinality *, single text value
  • INTEREST, cardinality *, single text value
  • ORG-DIRECTORY, cardinality *, a single URI value

Parameters

  • INDEX, strictly positive integer representing UI ordering of the value (may contradict PREF ordering)
  • LEVEL, one of beginner, average, expert, high, medium, low

Nag PARAM_UNESCAPED_COMMA for comma-separated TYPE value list

According to the spec, the line TEL;TYPE="work,fax";PREF=1:+45 1234 1234 is a valid result to represent "type parameter values specified as a parameter list (e.g., TYPE=text;TYPE=voice) or as a list (e.g., TYPE="text,voice")".

However, vcard4-ts logs this nag:

{
  "key":"PARAM_UNESCAPED_COMMA",
  "description": "Unescaped comma in parameter value",
  "isError": false,
  "attributes": {
    "property": "TEL",
    "parameter": "TYPE",
    "line": "TEL;TYPE=\"work,fax\";PREF=1:+45 1234 1234"
  }
}

Am I misunderstanding something, or can I safely ignore this nag?

Implement RFC6474 Place of Birth, Place and Date of Death

RFC6474 defines the following additional properties:

  • BIRTHPLACE, cardinality *1, single text (or URI) value
  • DEATHPLACE, cardinality *1, single text (or URI) value
  • DEATHDATE, cardinality *1, single date-and-or-time (or text) value

Observation about vCard format: There is no possibility to have multilingual place names or death date descriptions, as this would require * cardinality (which would in turn cause confusions, as most humans are only ever born once and die once). For multilingual representations, something like a CONTENTS[fr]=Schaffhouse parameter would be useful (using CONTENTS, as the more natural VALUE defines the data type of the VALUE).

Consider publishing a dual packaged module?

I'm trying to use this package inside oclif, but I'm hitting this error. Essentially it doesn't support loading es modules. Despite the fact that this module is TypeScript and my code is TypeScript, the modules won't play nice.

I don't fully understand the ins and outs. I guess that you're only publishing an ESM module which is the latest and greatest, and oclif is using some older module loading strategy which won't play nice.

Question, would you be open to publishing a dual build module? For inspiration, I've been able to import tsdav without issue in oclif.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.